diff --git a/pom.xml b/pom.xml index 78d6758b..9aa31583 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,7 @@ UTF-8 UTF-8 17 + 8.0.33 3.0.1 2.1.0 0.15.0 @@ -60,6 +61,7 @@ 4.5.0 4.6.0 4.6.0 + 4.6.0 @@ -96,6 +98,12 @@ + + mysql + mysql-connector-java + ${mysql.version} + + org.springframework.boot @@ -315,6 +323,12 @@ ${revision} + + org.ruoyi + ruoyi-chat-api + ${revision} + + org.ruoyi ruoyi-system-api diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml index f4b1eb80..bec0540d 100644 --- a/ruoyi-common/pom.xml +++ b/ruoyi-common/pom.xml @@ -2,13 +2,20 @@ + 4.0.0 ruoyi-ai org.ruoyi ${revision} ../pom.xml - 4.0.0 + + ruoyi-common + pom + + + common 通用模块 + ruoyi-common-bom @@ -32,16 +39,6 @@ ruoyi-common-encrypt ruoyi-common-tenant ruoyi-common-chat - ruoyi-common-pay - ruoyi-common-wechat - ruoyi-common-live - ruoyi-common - pom - - - common 通用模块 - - diff --git a/ruoyi-common/ruoyi-common-bom/pom.xml b/ruoyi-common/ruoyi-common-bom/pom.xml index a7d9e117..bd1847fd 100644 --- a/ruoyi-common/ruoyi-common-bom/pom.xml +++ b/ruoyi-common/ruoyi-common-bom/pom.xml @@ -159,25 +159,12 @@ ${revision} - - - org.ruoyi - ruoyi-common-wechat - ${revision} - - org.ruoyi ruoyi-chat ${revision} - - - org.ruoyi - ruoyi-common-pay - ${revision} - diff --git a/ruoyi-common/ruoyi-common-chat/pom.xml b/ruoyi-common/ruoyi-common-chat/pom.xml index 63a5fb94..b701e53b 100644 --- a/ruoyi-common/ruoyi-common-chat/pom.xml +++ b/ruoyi-common/ruoyi-common-chat/pom.xml @@ -18,6 +18,10 @@ 2.9.0 + 1.0.0-beta.12 + release-V4-2.3.0 + 2.7.5 + 0.5.0 @@ -26,38 +30,22 @@ ruoyi-common-core + - mysql - mysql-connector-java - 8.0.33 + org.ruoyi + ruoyi-common-json + + + + + org.ruoyi + ruoyi-common-redis com.azure azure-ai-openai - 1.0.0-beta.12 - - - - io.github.ollama4j - ollama4j - 1.0.79 - - - - - org.ruoyi - ruoyi-common-json - 1.0.0 - - - - org.ruoyi - ruoyi-common-redis - - - org.ruoyi - ruoyi-common-satoken + ${azure.version} @@ -79,13 +67,7 @@ com.knuddels jtokkit - 0.5.0 - - - - cn.hutool - hutool-all - 5.8.12 + ${jtokkit.version} @@ -102,13 +84,14 @@ cn.bigmodel.openapi oapi-java-sdk - release-V4-2.3.0 + ${chatglm.version} + com.squareup.okhttp okhttp - 2.7.5 - compile + ${okhttp.version} + diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/properties/WebSocketProperties.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/properties/WebSocketProperties.java index eb36cc77..7567fc9e 100644 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/properties/WebSocketProperties.java +++ b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/properties/WebSocketProperties.java @@ -12,6 +12,9 @@ import org.springframework.boot.context.properties.ConfigurationProperties; @Data public class WebSocketProperties { + /** + * 是否开启 + */ private Boolean enabled; /** diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/ConsoleEventSourceListenerV2.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/ConsoleEventSourceListenerV2.java deleted file mode 100644 index 21bb3d5b..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/ConsoleEventSourceListenerV2.java +++ /dev/null @@ -1,73 +0,0 @@ -package org.ruoyi.common.chat.demo; - -import cn.hutool.json.JSONUtil; - -import lombok.Getter; -import lombok.SneakyThrows; -import lombok.extern.slf4j.Slf4j; -import okhttp3.Response; -import okhttp3.ResponseBody; -import okhttp3.sse.EventSource; -import okhttp3.sse.EventSourceListener; -import org.ruoyi.common.chat.entity.chat.ChatCompletionResponse; - -import java.util.Objects; -import java.util.concurrent.CountDownLatch; - -/** - * 描述: sse - * - * @author https:www.unfbx.com - * 2023-06-15 - */ -@Slf4j -public class ConsoleEventSourceListenerV2 extends EventSourceListener { - @Getter - String args = ""; - final CountDownLatch countDownLatch; - - public ConsoleEventSourceListenerV2(CountDownLatch countDownLatch) { - this.countDownLatch = countDownLatch; - } - - @Override - public void onOpen(EventSource eventSource, Response response) { - log.info("OpenAI建立sse连接..."); - } - - @Override - public void onEvent(EventSource eventSource, String id, String type, String data) { - log.info("OpenAI返回数据:{}", data); - if (data.equals("[DONE]")) { - log.info("OpenAI返回数据结束了"); - countDownLatch.countDown(); - return; - } - ChatCompletionResponse chatCompletionResponse = JSONUtil.toBean(data, ChatCompletionResponse.class); - if(Objects.nonNull(chatCompletionResponse.getChoices().get(0).getDelta().getFunctionCall())){ - args += chatCompletionResponse.getChoices().get(0).getDelta().getFunctionCall().getArguments(); - } - } - - @Override - public void onClosed(EventSource eventSource) { - log.info("OpenAI关闭sse连接..."); - } - - @SneakyThrows - @Override - public void onFailure(EventSource eventSource, Throwable t, Response response) { - if(Objects.isNull(response)){ - log.error("OpenAI sse连接异常:{}", t); - eventSource.cancel(); - return; - } - ResponseBody body = response.body(); - if (Objects.nonNull(body)) { - log.error("OpenAI sse连接异常data:{},异常:{}", body.string(), t); - } else { - log.error("OpenAI sse连接异常data:{},异常:{}", response, t); - } - eventSource.cancel(); - } -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/ConsoleEventSourceListenerV3.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/ConsoleEventSourceListenerV3.java deleted file mode 100644 index 22661efe..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/ConsoleEventSourceListenerV3.java +++ /dev/null @@ -1,92 +0,0 @@ -package org.ruoyi.common.chat.demo; - -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.json.JSONUtil; -import lombok.Getter; -import lombok.SneakyThrows; -import lombok.extern.slf4j.Slf4j; -import okhttp3.Response; -import okhttp3.ResponseBody; -import okhttp3.sse.EventSource; -import okhttp3.sse.EventSourceListener; -import org.ruoyi.common.chat.entity.chat.ChatCompletionResponse; -import org.ruoyi.common.chat.entity.chat.Message; -import org.ruoyi.common.chat.entity.chat.tool.ToolCallFunction; -import org.ruoyi.common.chat.entity.chat.tool.ToolCalls; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import java.util.concurrent.CountDownLatch; - -/** - * 描述: demo测试实现类,仅供思路参考 - * - * @author https:www.unfbx.com - * 2023-11-12 - */ -@Slf4j -public class ConsoleEventSourceListenerV3 extends EventSourceListener { - @Getter - List choices = new ArrayList<>(); - @Getter - ToolCalls toolCalls = new ToolCalls(); - @Getter - ToolCallFunction toolCallFunction = ToolCallFunction.builder().name("").arguments("").build(); - final CountDownLatch countDownLatch; - - public ConsoleEventSourceListenerV3(CountDownLatch countDownLatch) { - this.countDownLatch = countDownLatch; - } - - @Override - public void onOpen(EventSource eventSource, Response response) { - log.info("OpenAI建立sse连接..."); - } - - @Override - public void onEvent(EventSource eventSource, String id, String type, String data) { - log.info("OpenAI返回数据:{}", data); - if (data.equals("[DONE]")) { - log.info("OpenAI返回数据结束了"); - return; - } - ChatCompletionResponse chatCompletionResponse = JSONUtil.toBean(data, ChatCompletionResponse.class); - Message delta = chatCompletionResponse.getChoices().get(0).getDelta(); - if (CollectionUtil.isNotEmpty(delta.getToolCalls())) { - choices.addAll(delta.getToolCalls()); - } - } - - @Override - public void onClosed(EventSource eventSource) { - if(CollectionUtil.isNotEmpty(choices)){ - toolCalls.setId(choices.get(0).getId()); - toolCalls.setType(choices.get(0).getType()); - choices.forEach(e -> { - toolCallFunction.setName(e.getFunction().getName()); - toolCallFunction.setArguments(toolCallFunction.getArguments() + e.getFunction().getArguments()); - toolCalls.setFunction(toolCallFunction); - }); - } - log.info("OpenAI关闭sse连接..."); - countDownLatch.countDown(); - } - - @SneakyThrows - @Override - public void onFailure(EventSource eventSource, Throwable t, Response response) { - if(Objects.isNull(response)){ - log.error("OpenAI sse连接异常:{}", t); - eventSource.cancel(); - return; - } - ResponseBody body = response.body(); - if (Objects.nonNull(body)) { - log.error("OpenAI sse连接异常data:{},异常:{}", body.string(), t); - } else { - log.error("OpenAI sse连接异常data:{},异常:{}", response, t); - } - eventSource.cancel(); - } -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/PluginTest.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/PluginTest.java deleted file mode 100644 index eeda6d4b..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/PluginTest.java +++ /dev/null @@ -1,417 +0,0 @@ -package org.ruoyi.common.chat.demo; - -import cn.hutool.json.JSONUtil; -import com.alibaba.fastjson.JSONObject; -import lombok.Builder; -import lombok.Data; -import lombok.extern.slf4j.Slf4j; -import okhttp3.OkHttpClient; -import okhttp3.logging.HttpLoggingInterceptor; -import org.junit.Before; -import org.junit.Test; -import org.ruoyi.common.chat.entity.chat.*; -import org.ruoyi.common.chat.entity.chat.tool.ToolCallFunction; -import org.ruoyi.common.chat.entity.chat.tool.ToolCalls; -import org.ruoyi.common.chat.entity.chat.tool.Tools; -import org.ruoyi.common.chat.entity.chat.tool.ToolsFunction; -import org.ruoyi.common.chat.openai.OpenAiClient; -import org.ruoyi.common.chat.openai.OpenAiStreamClient; -import org.ruoyi.common.chat.openai.function.KeyRandomStrategy; -import org.ruoyi.common.chat.openai.interceptor.DynamicKeyOpenAiAuthInterceptor; -import org.ruoyi.common.chat.openai.interceptor.OpenAILogger; -import org.ruoyi.common.chat.openai.interceptor.OpenAiResponseInterceptor; -import org.ruoyi.common.chat.openai.plugin.PluginAbstract; -import org.ruoyi.common.chat.plugin.CmdPlugin; -import org.ruoyi.common.chat.plugin.CmdReq; -import org.ruoyi.common.chat.sse.ConsoleEventSourceListener; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; - -/** - * 描述: - * - * @author ageerle@163.com - * date 2025/3/8 - */ -@Slf4j -public class PluginTest { - - private OpenAiClient openAiClient; - private OpenAiStreamClient openAiStreamClient; - - @Before - public void before() { - //可以为null -// Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 7890)); - HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(new OpenAILogger()); - //!!!!千万别再生产或者测试环境打开BODY级别日志!!!! - //!!!生产或者测试环境建议设置为这三种级别:NONE,BASIC,HEADERS,!!! - httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.HEADERS); - OkHttpClient okHttpClient = new OkHttpClient - .Builder() -// .proxy(proxy) - .addInterceptor(httpLoggingInterceptor) - .addInterceptor(new OpenAiResponseInterceptor()) - .connectTimeout(10, TimeUnit.SECONDS) - .writeTimeout(30, TimeUnit.SECONDS) - .readTimeout(30, TimeUnit.SECONDS) - .build(); - openAiClient = OpenAiClient.builder() - //支持多key传入,请求时候随机选择 - .apiKey(Arrays.asList("sk-xx")) - //自定义key的获取策略:默认KeyRandomStrategy - //.keyStrategy(new KeyRandomStrategy()) - .keyStrategy(new KeyRandomStrategy()) - .okHttpClient(okHttpClient) - //自己做了代理就传代理地址,没有可不不传,(关注公众号回复:openai ,获取免费的测试代理地址) - .apiHost("https://api.pandarobot.chat/") - .build(); - - openAiStreamClient = OpenAiStreamClient.builder() - //支持多key传入,请求时候随机选择 - .apiKey(Arrays.asList("sk-xx")) - //自定义key的获取策略:默认KeyRandomStrategy - .keyStrategy(new KeyRandomStrategy()) - .authInterceptor(new DynamicKeyOpenAiAuthInterceptor()) - .okHttpClient(okHttpClient) - //自己做了代理就传代理地址,没有可不不传,(关注公众号回复:openai ,获取免费的测试代理地址) - .apiHost("https://api.pandarobot.chat/") - .build(); - } - - - @Test - public void chatFunction() { - //模型:GPT_3_5_TURBO_16K_0613 - Message message = Message.builder().role(Message.Role.USER).content("给我输出一个长度为2的中文词语,并解释下词语对应物品的用途").build(); - //属性一 - JSONObject wordLength = new JSONObject(); - wordLength.put("type", "number"); - wordLength.put("description", "词语的长度"); - //属性二 - JSONObject language = new JSONObject(); - language.put("type", "string"); - language.put("enum", Arrays.asList("zh", "en")); - language.put("description", "语言类型,例如:zh代表中文、en代表英语"); - //参数 - JSONObject properties = new JSONObject(); - properties.put("wordLength", wordLength); - properties.put("language", language); - - Parameters parameters = Parameters.builder() - .type("object") - .properties(properties) - .required(Collections.singletonList("wordLength")).build(); - Functions functions = Functions.builder() - .name("getOneWord") - .description("获取一个指定长度和语言类型的词语") - .parameters(parameters) - .build(); - - ChatCompletion chatCompletion = ChatCompletion - .builder() - .messages(Collections.singletonList(message)) - .functions(Collections.singletonList(functions)) - .functionCall("auto") - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - ChatCompletionResponse chatCompletionResponse = openAiClient.chatCompletion(chatCompletion); - - ChatChoice chatChoice = chatCompletionResponse.getChoices().get(0); - log.info("构造的方法值:{}", chatChoice.getMessage().getFunctionCall()); - log.info("构造的方法名称:{}", chatChoice.getMessage().getFunctionCall().getName()); - log.info("构造的方法参数:{}", chatChoice.getMessage().getFunctionCall().getArguments()); - WordParam wordParam = JSONUtil.toBean(chatChoice.getMessage().getFunctionCall().getArguments(), WordParam.class); - String oneWord = getOneWord(wordParam); - - FunctionCall functionCall = FunctionCall.builder() - .arguments(chatChoice.getMessage().getFunctionCall().getArguments()) - .name("getOneWord") - .build(); - Message message2 = Message.builder().role(Message.Role.ASSISTANT).content("方法参数").functionCall(functionCall).build(); - String content - = "{ " + - "\"wordLength\": \"3\", " + - "\"language\": \"zh\", " + - "\"word\": \"" + oneWord + "\"," + - "\"用途\": [\"直接吃\", \"做沙拉\", \"售卖\"]" + - "}"; - Message message3 = Message.builder().role(Message.Role.FUNCTION).name("getOneWord").content(content).build(); - List messageList = Arrays.asList(message, message2, message3); - ChatCompletion chatCompletionV2 = ChatCompletion - .builder() - .messages(messageList) - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - ChatCompletionResponse chatCompletionResponseV2 = openAiClient.chatCompletion(chatCompletionV2); - log.info("自定义的方法返回值:{}",chatCompletionResponseV2.getChoices().get(0).getMessage().getContent()); - } - - - @Test - public void plugin() { - CmdPlugin plugin = new CmdPlugin(CmdReq.class); - // 插件名称 - plugin.setName("命令行工具"); - // 方法名称 - plugin.setFunction("openCmd"); - // 方法说明 - plugin.setDescription("提供一个命令行指令,比如<记事本>,指令使用中文,以function返回结果为准"); - - PluginAbstract.Arg arg = new PluginAbstract.Arg(); - // 参数名称 - arg.setName("cmd"); - // 参数说明 - arg.setDescription("命令行指令"); - // 参数类型 - arg.setType("string"); - arg.setRequired(true); - plugin.setArgs(Collections.singletonList(arg)); - - Message message2 = Message.builder().role(Message.Role.USER).content("帮我打开计算器,结合上下文判断指令是否执行成功,只用回复成功或者失败").build(); - List messages = new ArrayList<>(); - messages.add(message2); - //有四个重载方法,都可以使用 - ChatCompletionResponse response = openAiClient.chatCompletionWithPlugin(messages,"gpt-4o-mini",plugin); - log.info("自定义的方法返回值:{}", response.getChoices().get(0).getMessage().getContent()); - } - - /** - * 自定义返回数据格式 - */ - @Test - public void diyReturnDataModelChat() { - Message message = Message.builder().role(Message.Role.USER).content("随机输出10个单词,使用json输出").build(); - ChatCompletion chatCompletion = ChatCompletion - .builder() - .messages(Collections.singletonList(message)) - .responseFormat(ResponseFormat.builder().type(ResponseFormat.Type.JSON_OBJECT.getName()).build()) - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - ChatCompletionResponse chatCompletionResponse = openAiClient.chatCompletion(chatCompletion); - chatCompletionResponse.getChoices().forEach(e -> System.out.println(e.getMessage())); - } - - @Test - public void streamPlugin() { - WeatherPlugin plugin = new WeatherPlugin(WeatherReq.class); - plugin.setName("知心天气"); - plugin.setFunction("getLocationWeather"); - plugin.setDescription("提供一个地址,方法将会获取该地址的天气的实时温度信息。"); - PluginAbstract.Arg arg = new PluginAbstract.Arg(); - arg.setName("location"); - arg.setDescription("地名"); - arg.setType("string"); - arg.setRequired(true); - plugin.setArgs(Collections.singletonList(arg)); - -// Message message1 = Message.builder().role(Message.Role.USER).content("秦始皇统一了哪六国。").build(); - Message message2 = Message.builder().role(Message.Role.USER).content("获取上海市的天气现在多少度,然后再给出3个推荐的户外运动。").build(); - List messages = new ArrayList<>(); -// messages.add(message1); - messages.add(message2); - //默认模型:GPT_3_5_TURBO_16K_0613 - //有四个重载方法,都可以使用 - openAiStreamClient.streamChatCompletionWithPlugin(messages, ChatCompletion.Model.GPT_4_1106_PREVIEW.getName(), new ConsoleEventSourceListener(), plugin); - CountDownLatch countDownLatch = new CountDownLatch(1); - try { - countDownLatch.await(); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - - /** - * tools使用示例 - */ - @Test - public void toolsChat() { - Message message = Message.builder().role(Message.Role.USER).content("给我输出一个长度为2的中文词语,并解释下词语对应物品的用途").build(); - //属性一 - JSONObject wordLength = new JSONObject(); - wordLength.put("type", "number"); - wordLength.put("description", "词语的长度"); - //属性二 - JSONObject language = new JSONObject(); - language.put("type", "string"); - language.put("enum", Arrays.asList("zh", "en")); - language.put("description", "语言类型,例如:zh代表中文、en代表英语"); - //参数 - JSONObject properties = new JSONObject(); - properties.put("wordLength", wordLength); - properties.put("language", language); - Parameters parameters = Parameters.builder() - .type("object") - .properties(properties) - .required(Collections.singletonList("wordLength")).build(); - Tools tools = Tools.builder() - .type(Tools.Type.FUNCTION.getName()) - .function(ToolsFunction.builder().name("getOneWord").description("获取一个指定长度和语言类型的词语").parameters(parameters).build()) - .build(); - - ChatCompletion chatCompletion = ChatCompletion - .builder() - .messages(Collections.singletonList(message)) - .tools(Collections.singletonList(tools)) - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - ChatCompletionResponse chatCompletionResponse = openAiClient.chatCompletion(chatCompletion); - - ChatChoice chatChoice = chatCompletionResponse.getChoices().get(0); - log.info("构造的方法值:{}", chatChoice.getMessage().getToolCalls()); - - ToolCalls openAiReturnToolCalls = chatChoice.getMessage().getToolCalls().get(0); - WordParam wordParam = JSONUtil.toBean(openAiReturnToolCalls.getFunction().getArguments(), WordParam.class); - String oneWord = getOneWord(wordParam); - - - ToolCallFunction tcf = ToolCallFunction.builder().name("getOneWord").arguments(openAiReturnToolCalls.getFunction().getArguments()).build(); - ToolCalls tc = ToolCalls.builder().id(openAiReturnToolCalls.getId()).type(ToolCalls.Type.FUNCTION.getName()).function(tcf).build(); - //构造tool call - Message message2 = Message.builder().role(Message.Role.ASSISTANT).content("方法参数").toolCalls(Collections.singletonList(tc)).build(); - String content - = "{ " + - "\"wordLength\": \"3\", " + - "\"language\": \"zh\", " + - "\"word\": \"" + oneWord + "\"," + - "\"用途\": [\"直接吃\", \"做沙拉\", \"售卖\"]" + - "}"; - Message message3 = Message.builder().toolCallId(openAiReturnToolCalls.getId()).role(Message.Role.TOOL).name("getOneWord").content(content).build(); - List messageList = Arrays.asList(message, message2, message3); - ChatCompletion chatCompletionV2 = ChatCompletion - .builder() - .messages(messageList) - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - ChatCompletionResponse chatCompletionResponseV2 = openAiClient.chatCompletion(chatCompletionV2); - log.info("自定义的方法返回值:{}", chatCompletionResponseV2.getChoices().get(0).getMessage().getContent()); - - } - - /** - * tools流式输出使用示例 - */ - @Test - public void streamToolsChat() { - - CountDownLatch countDownLatch = new CountDownLatch(1); - ConsoleEventSourceListenerV3 eventSourceListener = new ConsoleEventSourceListenerV3(countDownLatch); - - Message message = Message.builder().role(Message.Role.USER).content("给我输出一个长度为2的中文词语,并解释下词语对应物品的用途").build(); - //属性一 - JSONObject wordLength = new JSONObject(); - wordLength.put("type", "number"); - wordLength.put("description", "词语的长度"); - //属性二 - JSONObject language = new JSONObject(); - language.put("type", "string"); - language.put("enum", Arrays.asList("zh", "en")); - language.put("description", "语言类型,例如:zh代表中文、en代表英语"); - //参数 - JSONObject properties = new JSONObject(); - properties.put("wordLength", wordLength); - properties.put("language", language); - Parameters parameters = Parameters.builder() - .type("object") - .properties(properties) - .required(Collections.singletonList("wordLength")).build(); - Tools tools = Tools.builder() - .type(Tools.Type.FUNCTION.getName()) - .function(ToolsFunction.builder().name("getOneWord").description("获取一个指定长度和语言类型的词语").parameters(parameters).build()) - .build(); - - ChatCompletion chatCompletion = ChatCompletion - .builder() - .messages(Collections.singletonList(message)) - .tools(Collections.singletonList(tools)) - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - openAiStreamClient.streamChatCompletion(chatCompletion, eventSourceListener); - - try { - countDownLatch.await(); - } catch (InterruptedException e) { - e.printStackTrace(); - } - - ToolCalls openAiReturnToolCalls = eventSourceListener.getToolCalls(); - WordParam wordParam = JSONUtil.toBean(openAiReturnToolCalls.getFunction().getArguments(), WordParam.class); - String oneWord = getOneWord(wordParam); - - - ToolCallFunction tcf = ToolCallFunction.builder().name("getOneWord").arguments(openAiReturnToolCalls.getFunction().getArguments()).build(); - ToolCalls tc = ToolCalls.builder().id(openAiReturnToolCalls.getId()).type(ToolCalls.Type.FUNCTION.getName()).function(tcf).build(); - //构造tool call - Message message2 = Message.builder().role(Message.Role.ASSISTANT).content("方法参数").toolCalls(Collections.singletonList(tc)).build(); - String content - = "{ " + - "\"wordLength\": \"3\", " + - "\"language\": \"zh\", " + - "\"word\": \"" + oneWord + "\"," + - "\"用途\": [\"直接吃\", \"做沙拉\", \"售卖\"]" + - "}"; - Message message3 = Message.builder().toolCallId(openAiReturnToolCalls.getId()).role(Message.Role.TOOL).name("getOneWord").content(content).build(); - List messageList = Arrays.asList(message, message2, message3); - ChatCompletion chatCompletionV2 = ChatCompletion - .builder() - .messages(messageList) - .model(ChatCompletion.Model.GPT_4_1106_PREVIEW.getName()) - .build(); - - - CountDownLatch countDownLatch1 = new CountDownLatch(1); - openAiStreamClient.streamChatCompletion(chatCompletionV2, new ConsoleEventSourceListenerV3(countDownLatch)); - try { - countDownLatch1.await(); - } catch (InterruptedException e) { - e.printStackTrace(); - } - try { - countDownLatch1.await(); - } catch (InterruptedException e) { - e.printStackTrace(); - } - - } - - - @Data - @Builder - static class WordParam { - private int wordLength; - @Builder.Default - private String language = "zh"; - } - - - /** - * 获取一个词语(根据语言和字符长度查询) - * @param wordParam - * @return - */ - public String getOneWord(WordParam wordParam) { - - List zh = Arrays.asList("大香蕉", "哈密瓜", "苹果"); - List en = Arrays.asList("apple", "banana", "cantaloupe"); - if (wordParam.getLanguage().equals("zh")) { - for (String e : zh) { - if (e.length() == wordParam.getWordLength()) { - return e; - } - } - } - if (wordParam.getLanguage().equals("en")) { - for (String e : en) { - if (e.length() == wordParam.getWordLength()) { - return e; - } - } - } - return "西瓜"; - } -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherPlugin.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherPlugin.java deleted file mode 100644 index 787e5983..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherPlugin.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.ruoyi.common.chat.demo; - - -import org.ruoyi.common.chat.openai.plugin.PluginAbstract; - -public class WeatherPlugin extends PluginAbstract { - - public WeatherPlugin(Class r) { - super(r); - } - - @Override - public WeatherResp func(WeatherReq args) { - WeatherResp weatherResp = new WeatherResp(); - weatherResp.setTemp("25到28摄氏度"); - weatherResp.setLevel(3); - return weatherResp; - } - - @Override - public String content(WeatherResp weatherResp) { - return "当前天气温度:" + weatherResp.getTemp() + ",风力等级:" + weatherResp.getLevel(); - } -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherReq.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherReq.java deleted file mode 100644 index b0670e5b..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherReq.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.common.chat.demo; - - -import lombok.Data; -import org.ruoyi.common.chat.openai.plugin.PluginParam; - -@Data -public class WeatherReq extends PluginParam { - /** - * 城市 - */ - private String location; -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherResp.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherResp.java deleted file mode 100644 index 360c56c8..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WeatherResp.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.ruoyi.common.chat.demo; - -import lombok.Data; - -@Data -public class WeatherResp { - /** - * 温度 - */ - private String temp; - /** - * 风力等级 - */ - private Integer level; -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WebSearchToolsTest.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WebSearchToolsTest.java deleted file mode 100644 index 34871f5c..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/demo/WebSearchToolsTest.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.ruoyi.common.chat.demo; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.zhipu.oapi.ClientV4; -import com.zhipu.oapi.Constants; -import com.zhipu.oapi.service.v4.tools.*; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicReference; - - -import com.zhipu.oapi.service.v4.model.*; -import io.reactivex.Flowable; - -import java.util.HashMap; -import java.util.Map; - - -public class WebSearchToolsTest { - - private final static Logger logger = LoggerFactory.getLogger(WebSearchToolsTest.class); - private static final String API_SECRET_KEY = "xx"; - - private static final ClientV4 client = new ClientV4.Builder(API_SECRET_KEY) - .networkConfig(300, 100, 100, 100, TimeUnit.SECONDS) - .connectionPool(new okhttp3.ConnectionPool(8, 1, TimeUnit.SECONDS)) - .build(); - private static final ObjectMapper mapper = new ObjectMapper(); - // 请自定义自己的业务id - private static final String requestIdTemplate = "mycompany-%d"; - - - @Test - public void test1() throws JsonProcessingException { - -// json 转换 ArrayList - String jsonString = "[\n" + - " {\n" + - " \"content\": \"今天武汉天气怎么样\",\n" + - " \"role\": \"user\"\n" + - " }\n" + - " ]"; - - ArrayList messages = new ObjectMapper().readValue(jsonString, new TypeReference>() { - }); - - - String requestId = String.format(requestIdTemplate, System.currentTimeMillis()); - WebSearchParamsRequest chatCompletionRequest = WebSearchParamsRequest.builder() - .model("web-search-pro") - .stream(Boolean.TRUE) - .messages(messages) - .requestId(requestId) - .build(); - WebSearchApiResponse webSearchApiResponse = client.webSearchProStreamingInvoke(chatCompletionRequest); - if (webSearchApiResponse.isSuccess()) { - AtomicBoolean isFirst = new AtomicBoolean(true); - List choices = new ArrayList<>(); - AtomicReference lastAccumulator = new AtomicReference<>(); - - webSearchApiResponse.getFlowable().map(result -> result) - .doOnNext(accumulator -> { - { - if (isFirst.getAndSet(false)) { - logger.info("Response: "); - } - ChoiceDelta delta = accumulator.getChoices().get(0).getDelta(); - if (delta != null && delta.getToolCalls() != null) { - logger.info("tool_calls: {}", mapper.writeValueAsString(delta.getToolCalls())); - } - choices.add(delta); - lastAccumulator.set(accumulator); - - } - }) - .doOnComplete(() -> System.out.println("Stream completed.")) - .doOnError(throwable -> System.err.println("Error: " + throwable)) // Handle errors - .blockingSubscribe();// Use blockingSubscribe instead of blockingGet() - - WebSearchPro chatMessageAccumulator = lastAccumulator.get(); - - webSearchApiResponse.setFlowable(null);// 打印前置空 - webSearchApiResponse.setData(chatMessageAccumulator); - } - logger.info("model output: {}", mapper.writeValueAsString(webSearchApiResponse)); - client.getConfig().getHttpClient().dispatcher().executorService().shutdown(); - - client.getConfig().getHttpClient().connectionPool().evictAll(); - // List all active threads - for (Thread t : Thread.getAllStackTraces().keySet()) { - logger.info("Thread: " + t.getName() + " State: " + t.getState()); - } - - } - - - @Test - public void test2() throws JsonProcessingException { - -// json 转换 ArrayList - String jsonString = "[\n" + - " {\n" + - " \"content\": \"今天天气怎么样\",\n" + - " \"role\": \"user\"\n" + - " }\n" + - " ]"; - - ArrayList messages = new ObjectMapper().readValue(jsonString, new TypeReference>() { - }); - - - String requestId = String.format(requestIdTemplate, System.currentTimeMillis()); - WebSearchParamsRequest chatCompletionRequest = WebSearchParamsRequest.builder() - .model("web-search-pro") - .stream(Boolean.FALSE) - .messages(messages) - .requestId(requestId) - .build(); - WebSearchApiResponse webSearchApiResponse = client.invokeWebSearchPro(chatCompletionRequest); - - logger.info("model output: {}", mapper.writeValueAsString(webSearchApiResponse)); - - } - - - @Test - public void testFunctionSSE() throws JsonProcessingException { - List messages = new ArrayList<>(); - ChatMessage chatMessage = new ChatMessage(ChatMessageRole.USER.value(), "成都到北京要多久,天气如何"); - messages.add(chatMessage); - String requestId = String.format(requestIdTemplate, System.currentTimeMillis()); - // 函数调用参数构建部分 - List chatToolList = new ArrayList<>(); - ChatTool chatTool = new ChatTool(); - - chatTool.setType(ChatToolType.FUNCTION.value()); - ChatFunctionParameters chatFunctionParameters = new ChatFunctionParameters(); - chatFunctionParameters.setType("object"); - Map properties = new HashMap<>(); - properties.put("location", new HashMap() {{ - put("type", "string"); - put("description", "城市,如:北京"); - }}); - properties.put("unit", new HashMap() {{ - put("type", "string"); - put("enum", new ArrayList() {{ - add("celsius"); - add("fahrenheit"); - }}); - }}); - chatFunctionParameters.setProperties(properties); - ChatFunction chatFunction = ChatFunction.builder() - .name("get_weather") - .description("Get the current weather of a location") - .parameters(chatFunctionParameters) - .build(); - chatTool.setFunction(chatFunction); - chatToolList.add(chatTool); - HashMap extraJson = new HashMap<>(); - extraJson.put("temperature", 0.5); - extraJson.put("max_tokens", 50); - - ChatCompletionRequest chatCompletionRequest = ChatCompletionRequest.builder() - .model(Constants.ModelChatGLM4) - .stream(Boolean.TRUE) - .messages(messages) - .requestId(requestId) - .tools(chatToolList) - .toolChoice("auto") - .extraJson(extraJson) - .build(); - ModelApiResponse sseModelApiResp = client.invokeModelApi(chatCompletionRequest); - if (sseModelApiResp.isSuccess()) { - AtomicBoolean isFirst = new AtomicBoolean(true); - List choices = new ArrayList<>(); - ChatMessageAccumulator chatMessageAccumulator = mapStreamToAccumulator(sseModelApiResp.getFlowable()) - .doOnNext(accumulator -> { - { - if (isFirst.getAndSet(false)) { - logger.info("Response: "); - } - if (accumulator.getDelta() != null && accumulator.getDelta().getTool_calls() != null) { - String jsonString = mapper.writeValueAsString(accumulator.getDelta().getTool_calls()); - logger.info("tool_calls: {}", jsonString); - } - if (accumulator.getDelta() != null && accumulator.getDelta().getContent() != null) { - logger.info(accumulator.getDelta().getContent()); - } - choices.add(accumulator.getChoice()); - } - }) - .doOnComplete(System.out::println) - .lastElement() - .blockingGet(); - - - ModelData data = new ModelData(); - data.setChoices(choices); - data.setUsage(chatMessageAccumulator.getUsage()); - data.setId(chatMessageAccumulator.getId()); - data.setCreated(chatMessageAccumulator.getCreated()); - data.setRequestId(chatCompletionRequest.getRequestId()); - sseModelApiResp.setFlowable(null);// 打印前置空 - sseModelApiResp.setData(data); - } - logger.info("model output: {}", mapper.writeValueAsString(sseModelApiResp)); - } - - public static Flowable mapStreamToAccumulator(Flowable flowable) { - return flowable.map(chunk -> { - return new ChatMessageAccumulator(chunk.getChoices().get(0).getDelta(), null, chunk.getChoices().get(0), chunk.getUsage(), chunk.getCreated(), chunk.getId()); - }); - } - -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/domain/request/ChatRequest.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/domain/request/ChatRequest.java deleted file mode 100644 index 65f76fff..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/domain/request/ChatRequest.java +++ /dev/null @@ -1,75 +0,0 @@ -package org.ruoyi.common.chat.domain.request; - -import org.ruoyi.common.chat.entity.chat.Message; -import jakarta.validation.constraints.NotEmpty; -import lombok.Data; - -import java.util.List; - -/** - * 描述: - * - * @author https:www.unfbx.com - * @sine 2023-04-08 - */ -@Data -public class ChatRequest { - - - private String frequency_penalty; - - private String max_tokens; - - @NotEmpty(message = "对话消息不能为空") - List messages; - - @NotEmpty(message = "传入的模型不能为空") - private String model; - - private String presence_penalty; - - private String stream; - - private double temperature; - - private double top_p = 1; - - /** - * 知识库id - */ - private String kid; - - private String userId; - - /** - * 1 联网搜索 - */ - private int chat_type; - - /** - * 应用ID - */ - private String appId; -// - -// -// /** -// * gpt的默认设置 -// */ -// private String systemMessage = ""; -// -// -// -// private double temperature = 0.2; -// -// /** -// * 上下文的条数 -// */ -// private Integer contentNumber = 10; -// -// /** -// * 是否携带上下文 -// */ -// private Boolean usingContext = Boolean.TRUE; - -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/domain/request/Dall3Request.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/domain/request/Dall3Request.java deleted file mode 100644 index df220566..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/domain/request/Dall3Request.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.ruoyi.common.chat.domain.request; - -import jakarta.validation.constraints.NotEmpty; -import lombok.Data; - -/** - * 描述: - * - * @author https:www.unfbx.com - * @sine 2023-04-08 - */ -@Data -public class Dall3Request { - - @NotEmpty(message = "传入的模型不能为空") - private String model; - - @NotEmpty(message = "提示词不能为空") - private String prompt; - - /** 图片大小 */ - @NotEmpty(message = "图片大小不能为空") - private String size ; - - /** 图片质量 */ - @NotEmpty(message = "图片质量不能为空") - private String quality; - - /** 图片风格 */ - @NotEmpty(message = "图片风格不能为空") - private String style; - -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/handler/PlusWebSocketHandler.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/handler/PlusWebSocketHandler.java index 00de76e7..5f94b47b 100644 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/handler/PlusWebSocketHandler.java +++ b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/handler/PlusWebSocketHandler.java @@ -2,7 +2,6 @@ package org.ruoyi.common.chat.handler; import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONUtil; -import com.alibaba.fastjson2.JSONObject; import lombok.extern.slf4j.Slf4j; import org.ruoyi.common.chat.config.LocalCache; import org.ruoyi.common.chat.entity.chat.ChatCompletion; @@ -12,7 +11,6 @@ import org.ruoyi.common.chat.listener.WebSocketEventListener; import org.ruoyi.common.chat.openai.OpenAiStreamClient; import org.ruoyi.common.chat.utils.WebSocketUtils; import org.ruoyi.common.core.utils.SpringUtils; -import org.springframework.beans.factory.annotation.Value; import org.springframework.web.socket.*; import org.springframework.web.socket.handler.AbstractWebSocketHandler; diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/localModels/LocalModelsofitClient.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/localModels/LocalModelsofitClient.java deleted file mode 100644 index 606a7c25..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/localModels/LocalModelsofitClient.java +++ /dev/null @@ -1,198 +0,0 @@ -package org.ruoyi.common.chat.localModels; - -import io.micrometer.common.util.StringUtils; -import lombok.extern.slf4j.Slf4j; -import okhttp3.OkHttpClient; -import org.ruoyi.common.chat.entity.models.LocalModelsSearchRequest; -import org.ruoyi.common.chat.entity.models.LocalModelsSearchResponse; -import org.springframework.stereotype.Service; -import retrofit2.Call; -import retrofit2.Callback; -import retrofit2.Response; -import retrofit2.Retrofit; -import retrofit2.converter.jackson.JacksonConverterFactory; - -import java.util.List; -import java.util.concurrent.CountDownLatch; - -@Slf4j -@Service -public class LocalModelsofitClient { - private static final String BASE_URL = "http://127.0.0.1:5000"; // Flask 服务的 URL - private static Retrofit retrofit = null; - - // 获取 Retrofit 实例 - public static Retrofit getRetrofitInstance() { - if (retrofit == null) { - OkHttpClient client = new OkHttpClient.Builder() - .build(); - - retrofit = new Retrofit.Builder() - .baseUrl(BASE_URL) - .client(client) - .addConverterFactory(JacksonConverterFactory.create()) // 使用 Jackson 处理 JSON 转换 - .build(); - } - return retrofit; - } - - /** - * 向 Flask 服务发送文本向量化请求 - * - * @param queries 查询文本列表 - * @param modelName 模型名称 - * @param delimiter 文本分隔符 - * @param topK 返回的结果数 - * @param blockSize 文本块大小 - * @param overlapChars 重叠字符数 - * @return 返回计算得到的 Top K 嵌入向量列表 - */ - - public static List> getTopKEmbeddings( - List queries, - String modelName, - String delimiter, - int topK, - int blockSize, - int overlapChars) { - - modelName = (!StringUtils.isEmpty(modelName)) ? modelName : "msmarco-distilbert-base-tas-b"; // 默认模型名称 - delimiter = (!StringUtils.isEmpty(delimiter) ) ? delimiter : "."; // 默认分隔符 - topK = (topK > 0) ? topK : 3; // 默认返回 3 个结果 - blockSize = (blockSize > 0) ? blockSize : 500; // 默认文本块大小为 500 - overlapChars = (overlapChars > 0) ? overlapChars : 50; // 默认重叠字符数为 50 - - // 创建 Retrofit 实例 - Retrofit retrofit = getRetrofitInstance(); - - // 创建 SearchService 接口 - SearchService service = retrofit.create(SearchService.class); - - // 创建请求对象 LocalModelsSearchRequest - LocalModelsSearchRequest request = new LocalModelsSearchRequest( - queries, // 查询文本列表 - modelName, // 模型名称 - delimiter, // 文本分隔符 - topK, // 返回的结果数 - blockSize, // 文本块大小 - overlapChars // 重叠字符数 - ); - - final CountDownLatch latch = new CountDownLatch(1); // 创建一个 CountDownLatch - final List>[] topKEmbeddings = new List[]{null}; // 使用数组来存储结果(因为 Java 不支持直接修改 List) - - // 发起异步请求 - service.vectorize(request).enqueue(new Callback() { - @Override - public void onResponse(Call call, Response response) { - if (response.isSuccessful()) { - LocalModelsSearchResponse searchResponse = response.body(); - if (searchResponse != null) { - topKEmbeddings[0] = searchResponse.getTopKEmbeddings().get(0); // 获取结果 - log.info("Successfully retrieved embeddings"); - } else { - log.error("Response body is null"); - } - } else { - log.error("Request failed. HTTP error code: " + response.code()); - } - latch.countDown(); // 请求完成,减少计数 - } - - @Override - public void onFailure(Call call, Throwable t) { - t.printStackTrace(); - log.error("Request failed: ", t); - latch.countDown(); // 请求失败,减少计数 - } - }); - - try { - latch.await(); // 等待请求完成 - } catch (InterruptedException e) { - e.printStackTrace(); - } - - return topKEmbeddings[0]; // 返回结果 - } - -// public static void main(String[] args) { -// // 示例调用 -// List queries = Arrays.asList("What is artificial intelligence?", "AI is transforming industries."); -// String modelName = "msmarco-distilbert-base-tas-b"; -// String delimiter = "."; -// int topK = 3; -// int blockSize = 500; -// int overlapChars = 50; -// -// List> topKEmbeddings = getTopKEmbeddings(queries, modelName, delimiter, topK, blockSize, overlapChars); -// -// // 打印结果 -// if (topKEmbeddings != null) { -// System.out.println("Top K embeddings: "); -// for (List embedding : topKEmbeddings) { -// System.out.println(embedding); -// } -// } else { -// System.out.println("No embeddings returned."); -// } -// } - - -// public static void main(String[] args) { -// // 创建 Retrofit 实例 -// Retrofit retrofit = LocalModelsofitClient.getRetrofitInstance(); -// -// // 创建 SearchService 接口 -// SearchService service = retrofit.create(SearchService.class); -// -// // 创建请求对象 LocalModelsSearchRequest -// LocalModelsSearchRequest request = new LocalModelsSearchRequest( -// Arrays.asList("What is artificial intelligence?", "AI is transforming industries."), // 查询文本列表 -// "msmarco-distilbert-base-tas-b", // 模型名称 -// ".", // 分隔符 -// 3, // 返回的结果数 -// 500, // 文本块大小 -// 50 // 重叠字符数 -// ); -// -// // 发起请求 -// service.vectorize(request).enqueue(new Callback() { -// @Override -// public void onResponse(Call call, Response response) { -// if (response.isSuccessful()) { -// LocalModelsSearchResponse searchResponse = response.body(); -// System.out.println("Response Body: " + response.body()); // Print the whole response body for debugging -// -// if (searchResponse != null) { -// // If the response is not null, process it. -// // Example: Extract the embeddings and print them -// List>> topKEmbeddings = searchResponse.getTopKEmbeddings(); -// if (topKEmbeddings != null) { -// // Print the Top K embeddings -// -// } else { -// System.err.println("Top K embeddings are null"); -// } -// -// // If there is more information you want to process, handle it here -// -// } else { -// System.err.println("Response body is null"); -// } -// } else { -// System.err.println("Request failed. HTTP error code: " + response.code()); -// log.error("Failed to retrieve data. HTTP error code: " + response.code()); -// } -// } -// -// @Override -// public void onFailure(Call call, Throwable t) { -// // 请求失败,打印错误 -// t.printStackTrace(); -// log.error("Request failed: ", t); -// } -// }); -// } - -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/localModels/SearchService.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/localModels/SearchService.java deleted file mode 100644 index 3fa131e5..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/localModels/SearchService.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.ruoyi.common.chat.localModels; - - - -import org.ruoyi.common.chat.entity.models.LocalModelsSearchRequest; -import org.ruoyi.common.chat.entity.models.LocalModelsSearchResponse; -import retrofit2.Call; -import retrofit2.http.Body; -import retrofit2.http.POST; -/** - * @program: RUOYIAI - * @ClassName SearchService - * @description: 请求模型 - * @author: hejh - * @create: 2025-03-15 17:27 - * @Version 1.0 - **/ - - -public interface SearchService { - @POST("/vectorize") // 与 Flask 服务中的路由匹配 - Call vectorize(@Body LocalModelsSearchRequest request); -} - - diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/plugin/CmdPlugin.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/plugin/CmdPlugin.java deleted file mode 100644 index 428d6e0e..00000000 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/plugin/CmdPlugin.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.ruoyi.common.chat.plugin; - -import org.ruoyi.common.chat.openai.plugin.PluginAbstract; - -import java.io.IOException; - -public class CmdPlugin extends PluginAbstract { - - public CmdPlugin(Class r) { - super(r); - } - - @Override - public CmdResp func(CmdReq args) { - try { - if("计算器".equals(args.getCmd())){ - Runtime.getRuntime().exec("calc"); - }else if("记事本".equals(args.getCmd())){ - Runtime.getRuntime().exec("notepad"); - }else if("命令行".equals(args.getCmd())){ - String [] cmd={"cmd","/C","start copy exel exe2"}; - Runtime.getRuntime().exec(cmd); - } - } catch (IOException e) { - throw new RuntimeException("指令执行失败"); - } - CmdResp resp = new CmdResp(); - resp.setResult(args.getCmd()+"指令执行成功!"); - return resp; - } - - @Override - public String content(CmdResp resp) { - return resp.getResult(); - } -} diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/request/ChatRequest.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/request/ChatRequest.java index 3b0af00a..45385266 100644 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/request/ChatRequest.java +++ b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/request/ChatRequest.java @@ -2,31 +2,39 @@ package org.ruoyi.common.chat.request; import jakarta.validation.constraints.NotEmpty; import lombok.Data; -import org.ruoyi.common.chat.entity.chat.Content; import org.ruoyi.common.chat.entity.chat.Message; import java.util.List; /** - * 描述: + * 描述:对话请求对象 * - * @author https:www.unfbx.com + * @author ageerle * @sine 2023-04-08 */ @Data public class ChatRequest { - @NotEmpty(message = "传入的模型不能为空") - private String model; - @NotEmpty(message = "对话消息不能为空") List messages; - List imageContent; + @NotEmpty(message = "传入的模型不能为空") + private String model; + /** + * 提示词 + */ private String prompt; - private String userId; + /** + * 是否开启流式对话 + */ + private Boolean stream = Boolean.TRUE; + + /** + * 是否开启联网搜索(0关闭 1开启) + */ + private Boolean search = Boolean.FALSE; /** * 知识库id @@ -34,13 +42,14 @@ public class ChatRequest { private String kid; /** - * gpt的默认设置 + * 用户id */ - private String systemMessage = ""; + private String userId; - private double top_p = 1; - - private double temperature = 0.2; + /** + * 应用ID + */ + private String appId; /** * 上下文的条数 @@ -52,4 +61,5 @@ public class ChatRequest { */ private Boolean usingContext = Boolean.TRUE; + } diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/ConsoleEventSourceListener.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/ConsoleEventSourceListener.java index c05fa19f..e02b2655 100644 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/ConsoleEventSourceListener.java +++ b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/ConsoleEventSourceListener.java @@ -28,7 +28,6 @@ public class ConsoleEventSourceListener extends EventSourceListener { log.info("OpenAI返回数据:{}", data); if ("[DONE]".equals(data)) { log.info("OpenAI返回数据结束了"); - return; } } diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/PluginListener.java b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/PluginListener.java index 6701a251..8b9d4a4f 100644 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/PluginListener.java +++ b/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/sse/PluginListener.java @@ -8,7 +8,6 @@ import okhttp3.ResponseBody; import okhttp3.sse.EventSource; import okhttp3.sse.EventSourceListener; import org.jetbrains.annotations.NotNull; -import org.ruoyi.common.chat.constant.OpenAIConst; import org.ruoyi.common.chat.entity.chat.ChatCompletion; import org.ruoyi.common.chat.entity.chat.ChatCompletionResponse; import org.ruoyi.common.chat.entity.chat.FunctionCall; diff --git a/ruoyi-common/ruoyi-common-core/pom.xml b/ruoyi-common/ruoyi-common-core/pom.xml index fe3897d0..3a8dcaae 100644 --- a/ruoyi-common/ruoyi-common-core/pom.xml +++ b/ruoyi-common/ruoyi-common-core/pom.xml @@ -51,7 +51,7 @@ cn.hutool hutool-all - 5.8.24 + ${hutool.version} @@ -59,18 +59,6 @@ lombok - - com.github.binarywang - weixin-java-cp - ${weixin-java-miniapp.version} - - - - com.github.binarywang - weixin-java-cp - ${weixin-java-cp.version} - - org.springframework.boot @@ -94,6 +82,11 @@ ip2region + + com.github.binarywang + weixin-java-cp + ${weixin-java-cp.version} + com.github.binarywang diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/pom.xml deleted file mode 100644 index 76af3458..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - 4.0.0 - - - org.ruoyi - live-chat-client-commons - ${revision} - ../pom.xml - - - live-chat-client-commons-base - ordinaryroad-live-chat-client-commons-base - - - UTF-8 - - - - - com.fasterxml.jackson.core - jackson-databind - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/constant/Constants.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/constant/Constants.java deleted file mode 100644 index faf4a699..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/constant/Constants.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.constant; - -/** - * @author mjz - * @date 2023/8/26 - */ -public class Constants { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/exception/BaseException.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/exception/BaseException.java deleted file mode 100644 index 71248e7e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/exception/BaseException.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.exception; - -/** - * @author mjz - * @date 2023/9/5 - */ -public class BaseException extends RuntimeException { - - public BaseException() { - } - - public BaseException(String message) { - super(message); - } - - public BaseException(String message, Throwable cause) { - super(message, cause); - } - - public BaseException(Throwable cause) { - super(cause); - } - - public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { - super(message, cause, enableSuppression, writableStackTrace); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IBaseConnectionListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IBaseConnectionListener.java deleted file mode 100644 index 4398cf9b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IBaseConnectionListener.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -/** - * 连接回调 - * - * @author mjz - * @date 2023/8/26 - */ -public interface IBaseConnectionListener { - - /** - * 连接建立成功 - */ - default void onConnected(T t) { - // ignore - } - - /** - * 连接建立失败 - * - * @param t - */ - default void onConnectFailed(T t) { - // ignore - } - - /** - * 连接断开 - * - * @param t - */ - default void onDisconnected(T t) { - // ignore - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IBaseMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IBaseMsgListener.java deleted file mode 100644 index 7230d9dd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IBaseMsgListener.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseCmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; - -/** - * Base消息回调 - * - * @author mjz - * @date 2023/8/26 - */ -public interface IBaseMsgListener> { - - /** - * 收到消息(所有消息) - * - * @param msg IMsg - */ - default void onMsg(T t, IMsg msg) { - this.onMsg(msg); - } - - default void onMsg(IMsg msg) { - // ignore - } - - /** - * 收到cmd消息(所有cmd) - * - * @param cmd CmdEnum - * @param cmdMsg BaseCmdMsg - */ - default void onCmdMsg(T t, CmdEnum cmd, ICmdMsg cmdMsg) { - this.onCmdMsg(cmd, cmdMsg); - } - - default void onCmdMsg(CmdEnum cmd, ICmdMsg cmdMsg) { - // ignore - } - - /** - * 收到其他cmd消息(存在Enum,但Listener没有对应的回调) - * - * @param cmd CmdEnum - * @param cmdMsg BaseCmdMsg - */ - default void onOtherCmdMsg(T t, CmdEnum cmd, ICmdMsg cmdMsg) { - this.onOtherCmdMsg(cmd, cmdMsg); - } - - default void onOtherCmdMsg(CmdEnum cmd, ICmdMsg cmdMsg) { - // ignore - } - - /** - * 收到未知cmd消息 - * - * @param cmdString 实际收到的cmd字符串 - * @param msg BaseMsg - */ - default void onUnknownCmd(T t, String cmdString, IMsg msg) { - this.onUnknownCmd(cmdString, msg); - } - - default void onUnknownCmd(String cmdString, IMsg msg) { - // ignore - } - - /** - * 收到cmd消息(所有cmd) - * - * @param cmd CmdEnum - * @param cmdMsg BaseCmdMsg - * @deprecated use {@link #onCmdMsg(T, Enum, ICmdMsg)} - */ - default void onCmdMsg(T t, CmdEnum cmd, BaseCmdMsg cmdMsg) { - this.onCmdMsg(cmd, cmdMsg); - } - - /** - * @deprecated use {@link #onCmdMsg(Enum, ICmdMsg)} - */ - default void onCmdMsg(CmdEnum cmd, BaseCmdMsg cmdMsg) { - // ignore - } - - /** - * 收到其他cmd消息(存在Enum,但Listener没有对应的回调) - * - * @param cmd CmdEnum - * @param cmdMsg BaseCmdMsg - * @deprecated use {@link #onOtherCmdMsg(T, Enum, ICmdMsg)} - */ - default void onOtherCmdMsg(T t, CmdEnum cmd, BaseCmdMsg cmdMsg) { - this.onOtherCmdMsg(cmd, cmdMsg); - } - - /** - * @deprecated use {@link #onOtherCmdMsg(Enum, ICmdMsg)} - */ - default void onOtherCmdMsg(CmdEnum cmd, BaseCmdMsg cmdMsg) { - // ignore - } - - /** - * 收到未知cmd消息 - * - * @param cmdString 实际收到的cmd字符串 - * @param msg BaseMsg - * @deprecated use {@link #onUnknownCmd(T, String, IMsg)} - */ - default void onUnknownCmd(T t, String cmdString, BaseMsg msg) { - this.onUnknownCmd(cmdString, msg); - } - - /** - * @deprecated use {@link #onUnknownCmd(String, IMsg)} - */ - default void onUnknownCmd(String cmdString, BaseMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IDanmuMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IDanmuMsgListener.java deleted file mode 100644 index 52b8dac1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IDanmuMsgListener.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -/** - * 弹幕消息回调 - * - * @author mjz - * @since 0.0.6 - */ -public interface IDanmuMsgListener { - - /** - * 收到弹幕 - */ - default void onDanmuMsg(T t, DanmuMsg msg) { - this.onDanmuMsg(msg); - } - - default void onDanmuMsg(DanmuMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IEnterRoomMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IEnterRoomMsgListener.java deleted file mode 100644 index 931f35f8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IEnterRoomMsgListener.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -/** - * 进入房间消息回调 - * - * @author mjz - * @date 2023/12/14 - * @since 0.0.16 - */ -public interface IEnterRoomMsgListener { - - /** - * 用户进入房间 - */ - default void onEnterRoomMsg(T t, EnterRoomMsg msg) { - this.onEnterRoomMsg(msg); - } - - default void onEnterRoomMsg(EnterRoomMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IGiftMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IGiftMsgListener.java deleted file mode 100644 index f486b961..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/IGiftMsgListener.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -/** - * 礼物消息回调 - * - * @author mjz - * @since 0.0.8 - */ -public interface IGiftMsgListener { - - - /** - * 收到礼物 - */ - default void onGiftMsg(T t, GiftMsg msg) { - this.onGiftMsg(msg); - } - - default void onGiftMsg(GiftMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/ILikeMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/ILikeMsgListener.java deleted file mode 100644 index 42cc886a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/ILikeMsgListener.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -/** - * 点赞消息回调 - * - * @author mjz - * @since 0.2.0 - */ -public interface ILikeMsgListener { - - /** - * 收到点赞 - */ - default void onLikeMsg(T t, LikeMsg msg) { - this.onLikeMsg(msg); - } - - default void onLikeMsg(LikeMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/ISuperChatMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/ISuperChatMsgListener.java deleted file mode 100644 index 1a70b60a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/listener/ISuperChatMsgListener.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.listener; - - -/** - * 醒目留言消息回调 - * - * @author mjz - * @date 2023/9/24 - * @since 0.0.11 - */ -public interface ISuperChatMsgListener { - - /** - * 收到醒目留言 - */ - default void onSuperChatMsg(T t, SuperChatMsg msg) { - this.onSuperChatMsg(msg); - } - - default void onSuperChatMsg(SuperChatMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/BaseCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/BaseCmdMsg.java deleted file mode 100644 index 734c4b6b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/BaseCmdMsg.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * @author mjz - * @date 2023/8/26 - */ -public abstract class BaseCmdMsg> extends BaseMsg - implements ICmdMsg { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/BaseMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/BaseMsg.java deleted file mode 100644 index 2135fa49..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/BaseMsg.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.DeserializationFeature; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.SerializationFeature; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/8/26 - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -public abstract class BaseMsg implements IMsg { - - public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper() - .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - - @Override - public String toString() { - try { - return OBJECT_MAPPER.writeValueAsString(this); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ICmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ICmdMsg.java deleted file mode 100644 index 7a0b2cf1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ICmdMsg.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * @author mjz - * @date 2023/10/2 - */ -public interface ICmdMsg> extends IMsg { - - String getCmd(); - - void setCmd(String cmd); - - CmdEnum getCmdEnum(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IDanmuMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IDanmuMsg.java deleted file mode 100644 index 7a4745c7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IDanmuMsg.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * @author mjz - * @date 2023/9/8 - */ -public interface IDanmuMsg extends IMsg { - - /** - * 粉丝牌名称 - */ - String getBadgeName(); - - /** - * 粉丝牌等级 - */ - byte getBadgeLevel(); - - /** - * 弹幕发送者id - */ - String getUid(); - - /** - * 弹幕发送者用户名 - */ - String getUsername(); - - /** - * 弹幕发送者头像地址 - * - * @since 0.0.11 - */ - default String getUserAvatar() { - return null; - } - - /** - * 弹幕内容 - */ - String getContent(); - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IEnterRoomMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IEnterRoomMsg.java deleted file mode 100644 index a914e63f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IEnterRoomMsg.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * 入房消息 - * - * @author mjz - * @date 2023/12/26 - * @since 0.0.16 - */ -public interface IEnterRoomMsg extends IMsg { - - /** - * 粉丝牌名称 - */ - String getBadgeName(); - - /** - * 粉丝牌等级 - */ - byte getBadgeLevel(); - - /** - * 用户id - */ - String getUid(); - - /** - * 用户名 - */ - String getUsername(); - - /** - * 头像地址 - */ - default String getUserAvatar() { - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IGiftMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IGiftMsg.java deleted file mode 100644 index 9b8d35d7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IGiftMsg.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * @author mjz - * @date 2023/9/8 - */ -public interface IGiftMsg extends IMsg { - - /** - * 粉丝牌名称 - */ - default String getBadgeName() { - return ""; - } - - /** - * 粉丝牌等级 - */ - default byte getBadgeLevel() { - return 0; - } - - /** - * 发送方id - */ - String getUid(); - - /** - * 发送方用户名 - */ - String getUsername(); - - /** - * 发送方头像地址 - * - * @since 0.0.11 - */ - default String getUserAvatar() { - return null; - } - - /** - * 礼物名称 - */ - String getGiftName(); - - /** - * 礼物图像地址 - */ - String getGiftImg(); - - /** - * 礼物id - */ - String getGiftId(); - - /** - * 礼物数量 - */ - int getGiftCount(); - - /** - * 单个礼物价格 - */ - int getGiftPrice(); - - /** - * 接收方id - */ - String getReceiveUid(); - - /** - * 接收方用户名 - */ - String getReceiveUsername(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ILikeMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ILikeMsg.java deleted file mode 100644 index c10fe97b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ILikeMsg.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * @author mjz - * @date 2024/1/31 - * @since 0.2.0 - */ -public interface ILikeMsg extends IMsg { - - /** - * 粉丝牌名称 - */ - default String getBadgeName(){ - return ""; - } - - /** - * 粉丝牌等级 - */ - default byte getBadgeLevel(){ - return 0; - } - - /** - * 点赞者id - */ - String getUid(); - - /** - * 点赞者用户名 - */ - String getUsername(); - - /** - * 点赞者头像地址 - */ - default String getUserAvatar() { - return null; - } - - /** - * 点赞数 - */ - default int getClickCount() { - return 1; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IMsg.java deleted file mode 100644 index c02a3367..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/IMsg.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -import java.io.Serializable; - -/** - * @author mjz - * @date 2023/8/26 - */ -public interface IMsg extends Serializable { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ISuperChatMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ISuperChatMsg.java deleted file mode 100644 index 58c94916..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-base/src/main/java/tech/ordinaryroad/live/chat/client/commons/base/msg/ISuperChatMsg.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.base.msg; - -/** - * 醒目留言 - * - * @author mjz - * @date 2023/9/22 - */ -public interface ISuperChatMsg extends IDanmuMsg { - - /** - * 醒目留言持续时间,单位秒 - */ - int getDuration(); - - @Override - default String getBadgeName() { - return ""; - } - - @Override - default byte getBadgeLevel() { - return 0; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/pom.xml deleted file mode 100644 index f25c8226..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - 4.0.0 - - - org.ruoyi - live-chat-client-commons - ${revision} - ../pom.xml - - jar - - live-chat-client-commons-client - live-chat-client-commons-client - - - UTF-8 - - - - - org.ruoyi - live-chat-client-commons-base - - - - org.ruoyi - live-chat-client-commons-util - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/BaseLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/BaseLiveChatClient.java deleted file mode 100644 index f442b9c8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/BaseLiveChatClient.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.client; - -import lombok.Getter; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.client.config.BaseLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; - -import java.beans.PropertyChangeListener; -import java.beans.PropertyChangeSupport; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; -import java.util.function.Consumer; - -/** - * @author mjz - * @date 2023/8/26 - */ -public abstract class BaseLiveChatClient< - Config extends BaseLiveChatClientConfig, - MsgListener extends IBaseMsgListener - > implements IBaseLiveChatClient { - - private final Config config; - @Getter - private volatile ClientStatusEnums status = ClientStatusEnums.NEW; - protected PropertyChangeSupport statusChangeSupport = new PropertyChangeSupport(status); - protected volatile boolean cancelReconnect = false; - protected final List msgListeners = Collections.synchronizedList(new ArrayList<>()); - - protected BaseLiveChatClient(Config config) { - this.config = config; - } - - public Config getConfig() { - return config; - } - - @Override - public void connect(Runnable success) { - this.connect(success, null); - } - - @Override - public void connect() { - this.connect(null, null); - } - - @Override - public void disconnect(boolean cancelReconnect) { - this.cancelReconnect = cancelReconnect; - this.disconnect(); - } - - @Override - public void send(Object msg) { - this.send(msg, null, null); - } - - @Override - public void send(Object msg, Runnable success) { - this.send(msg, success, null); - } - - @Override - public void send(Object msg, Consumer failed) { - this.send(msg, null, failed); - } - - @Override - public void sendDanmu(Object danmu) { - this.sendDanmu(danmu, null, null); - } - - @Override - public void sendDanmu(Object danmu, Runnable success) { - this.sendDanmu(danmu, success, null); - } - - @Override - public void sendDanmu(Object danmu, Consumer failed) { - this.sendDanmu(danmu, null, failed); - } - - @Override - public void clickLike(int count) { - this.clickLike(count, null, null); - } - - @Override - public void clickLike(int count, Runnable success) { - this.clickLike(count, success, null); - } - - @Override - public void clickLike(int count, Consumer failed) { - this.clickLike(count, null, failed); - } - - protected abstract void tryReconnect(); - - protected abstract String getWebSocketUriString(); - - /** - * 判断是否处于某个状态,或者处于后续状态 - * - * @param status {@link ClientStatusEnums} - * @return false: 还没有到达该状态 - */ - protected boolean checkStatus(ClientStatusEnums status) { - return this.status.getCode() >= Objects.requireNonNull(status).getCode(); - } - - protected void setStatus(ClientStatusEnums status) { - ClientStatusEnums oldStatus = this.status; - if (oldStatus != status) { - this.status = status; - this.statusChangeSupport.firePropertyChange("status", oldStatus, status); - } - } - - public void addStatusChangeListener(PropertyChangeListener listener) { - this.statusChangeSupport.addPropertyChangeListener(listener); - } - - public void removeStatusChangeListener(PropertyChangeListener listener) { - this.statusChangeSupport.removePropertyChangeListener(listener); - } - - @Override - public void destroy() { - for (PropertyChangeListener propertyChangeListener : this.statusChangeSupport.getPropertyChangeListeners()) { - this.statusChangeSupport.removePropertyChangeListener(propertyChangeListener); - } - this.msgListeners.clear(); - } - - @Override - public boolean addMsgListener(MsgListener msgListener) { - if (msgListener == null) { - return false; - } - return this.msgListeners.add(msgListener); - } - - @Override - public boolean addMsgListeners(List msgListeners) { - if (msgListeners == null || msgListeners.isEmpty()) { - return false; - } - return this.msgListeners.addAll(msgListeners); - } - - @Override - public boolean removeMsgListener(MsgListener msgListener) { - if (msgListener == null) { - return false; - } - return this.msgListeners.remove(msgListener); - } - - @Override - public boolean removeMsgListeners(List msgListeners) { - if (msgListeners == null || msgListeners.isEmpty()) { - return false; - } - return this.msgListeners.removeAll(msgListeners); - } - - @Override - public void removeAllMsgListeners() { - this.msgListeners.clear(); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/IBaseLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/IBaseLiveChatClient.java deleted file mode 100644 index 951b4bca..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/IBaseLiveChatClient.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.client; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; - -import java.util.List; -import java.util.function.Consumer; - -/** - * @author mjz - * @date 2023/9/5 - */ -public interface IBaseLiveChatClient> { - - void init(); - - boolean addMsgListener(MsgListener msgListener); - - boolean addMsgListeners(List msgListeners); - - boolean removeMsgListener(MsgListener msgListener); - - boolean removeMsgListeners(List msgListeners); - - void removeAllMsgListeners(); - - void connect(Runnable success, Consumer failed); - - void connect(Runnable success); - - void connect(); - - /** - * 手动断开连接 - * - * @param cancelReconnect 取消本次的自动重连(如果启用自动重连) - */ - void disconnect(boolean cancelReconnect); - - void disconnect(); - - void destroy(); - - void send(Object msg); - - void send(Object msg, Runnable success, Consumer failed); - - void send(Object msg, Runnable success); - - void send(Object msg, Consumer failed); - - /** - * 发送弹幕 - * - * @param danmu 弹幕内容 - * @since 0.0.6 - */ - void sendDanmu(Object danmu); - - /** - * 发送弹幕 - * - * @param danmu 弹幕内容 - * @since 0.0.6 - */ - void sendDanmu(Object danmu, Runnable success, Consumer failed); - - /** - * 发送弹幕 - * - * @param danmu 弹幕内容 - * @since 0.0.6 - */ - void sendDanmu(Object danmu, Runnable success); - - /** - * 发送弹幕 - * - * @param danmu 弹幕内容 - * @since 0.0.6 - */ - void sendDanmu(Object danmu, Consumer failed); - - /** - * 为直播间点赞 - * - * @since 0.2.0 - */ - void clickLike(int count); - - /** - * 为直播间点赞 - * - * @since 0.2.0 - */ - void clickLike(int count, Runnable success, Consumer failed); - - /** - * 为直播间点赞 - * - * @since 0.2.0 - */ - void clickLike(int count, Runnable success); - - /** - * 为直播间点赞 - * - * @since 0.2.0 - */ - void clickLike(int count, Consumer failed); - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/config/BaseLiveChatClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/config/BaseLiveChatClientConfig.java deleted file mode 100644 index 1fee0f74..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/config/BaseLiveChatClientConfig.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.client.config; - - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; - -import java.beans.PropertyChangeListener; -import java.beans.PropertyChangeSupport; - -/** - * 直播间弹幕客户端配置 - * - * @author mjz - * @date 2023/8/26 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public abstract class BaseLiveChatClientConfig { - - protected PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this); - public static final long DEFAULT_HEARTBEAT_INITIAL_DELAY = 15; - public static final long DEFAULT_HEARTBEAT_PERIOD = 25; - public static final long DEFAULT_MIN_SEND_DANMU_PERIOD = 3000L; - - private String websocketUri; - - /** - * 浏览器中的Cookie - */ - private String cookie; - - /** - * 直播间id - */ - private Object roomId; - - /** - * 是否启用自动重连 - */ - @Builder.Default - private boolean autoReconnect = Boolean.TRUE; - - /** - * 重试延迟时间(秒),默认5s后重试 - */ - @Builder.Default - private int reconnectDelay = 5; - - /** - * 首次发送心跳包的延迟时间(秒) - */ - @Builder.Default - private long heartbeatInitialDelay = DEFAULT_HEARTBEAT_INITIAL_DELAY; - - /** - * 心跳包发送周期(秒) - */ - @Builder.Default - private long heartbeatPeriod = DEFAULT_HEARTBEAT_PERIOD; - - /** - * 最小发送弹幕时间间隔(毫秒) - */ - @Builder.Default - private long minSendDanmuPeriod = DEFAULT_MIN_SEND_DANMU_PERIOD; - - public void setCookie(String cookie) { - String oldValue = this.cookie; - this.cookie = cookie; - this.propertyChangeSupport.firePropertyChange("cookie", oldValue, cookie); - } - - public void setRoomId(Object roomId) { - if (!(roomId instanceof Number || roomId instanceof String)) { - throw new BaseException("房间ID仅支持数字或字符串,所传参数类型:" + roomId.getClass() + "值:" + roomId); - } - Object oldValue = this.roomId; - this.roomId = roomId; - this.propertyChangeSupport.firePropertyChange("roomId", oldValue, roomId); - } - - public void setWebsocketUri(String websocketUri) { - String oldValue = this.websocketUri; - this.websocketUri = websocketUri; - this.propertyChangeSupport.firePropertyChange("websocketUri", oldValue, websocketUri); - } - - public void setMinSendDanmuPeriod(long minSendDanmuPeriod) { - long oldValue = this.minSendDanmuPeriod; - this.minSendDanmuPeriod = minSendDanmuPeriod; - this.propertyChangeSupport.firePropertyChange("minSendDanmuPeriod", oldValue, minSendDanmuPeriod); - } - - public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { - this.propertyChangeSupport.addPropertyChangeListener(propertyName, listener); - } - - public void addPropertyChangeListener(PropertyChangeListener listener) { - this.propertyChangeSupport.addPropertyChangeListener(listener); - } - - public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) { - this.propertyChangeSupport.removePropertyChangeListener(propertyName, listener); - } - - public void removePropertyChangeListener(PropertyChangeListener listener) { - this.propertyChangeSupport.removePropertyChangeListener(listener); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/enums/ClientStatusEnums.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/enums/ClientStatusEnums.java deleted file mode 100644 index 29d2c753..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-client/src/main/java/tech/ordinaryroad/live/chat/client/commons/client/enums/ClientStatusEnums.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.client.enums; - -/** - * @author mjz - * @date 2023/8/26 - */ -public enum ClientStatusEnums { - /** - * 新创建 - */ - NEW(0), - - /** - * 已初始化 - */ - INITIALIZED(1), - - /** - * 连接中 - */ - CONNECTING(100), - - /** - * 重新连接中 - */ - RECONNECTING(101), - - /** - * 已连接 - */ - CONNECTED(200), - - /** - * 连接失败 - */ - CONNECT_FAILED(401), - - /** - * 已断开连接 - */ - DISCONNECTED(400), - - /** - * 已销毁 - */ - DESTROYED(-1), - ; - - public int getCode() { - return code; - } - - ClientStatusEnums(int order) { - this.code = order; - } - - private final int code; - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/pom.xml deleted file mode 100644 index 190ca516..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/pom.xml +++ /dev/null @@ -1,25 +0,0 @@ - - 4.0.0 - - org.ruoyi - live-chat-client-commons - ${revision} - ../pom.xml - - jar - - live-chat-client-commons-util - live-chat-client-commons-util - - - UTF-8 - - - - - cn.hutool - hutool-all - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatCookieUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatCookieUtil.java deleted file mode 100644 index 9ec118fc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatCookieUtil.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.util; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.map.MapUtil; -import cn.hutool.core.util.StrUtil; - -import java.net.HttpCookie; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Supplier; -import java.util.stream.Collectors; - -/** - * @author mjz - * @date 2023/8/27 - */ -public class OrLiveChatCookieUtil { - - public static String toString(List cookies) { - if (CollUtil.isEmpty(cookies)) { - return StrUtil.EMPTY; - } - - return cookies.stream().map(httpCookie -> { - httpCookie.setVersion(0); - return httpCookie.toString(); - }).collect(Collectors.joining("; ")); - } - - public static Map parseCookieString(String cookies) { - Map map = new HashMap<>(); - if (StrUtil.isNotBlank(cookies) && !StrUtil.isNullOrUndefined(cookies)) { - try { - String[] split = cookies.split("; "); - for (String s : split) { - String[] split1 = s.split("="); - map.put(split1[0], split1[1]); - } - } catch (Exception e) { - throw new RuntimeException("cookie解析失败 " + cookies, e); - } - } - return map; - } - - public static String getCookieByName(Map cookieMap, String name, Supplier supplier) { - String str = MapUtil.getStr(cookieMap, name); - return str == null ? supplier.get() : str; - } - - public static String getCookieByName(String cookie, String name, Supplier supplier) { - String str = MapUtil.getStr(parseCookieString(cookie), name); - return str == null ? supplier.get() : str; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatNumberUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatNumberUtil.java deleted file mode 100644 index 969cf003..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatNumberUtil.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.util; - -import cn.hutool.core.util.NumberUtil; -import cn.hutool.core.util.StrUtil; - -/** - * @author mjz - * @date 2023/12/2 - */ -public class OrLiveChatNumberUtil extends NumberUtil { - - public static long parseLong(Object object){ - return NumberUtil.parseLong(StrUtil.toStringOrNull(object)); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatReflectUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatReflectUtil.java deleted file mode 100644 index a4d8a5dd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLiveChatReflectUtil.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.util; - -import cn.hutool.core.util.ReflectUtil; - -import java.lang.reflect.Method; - -/** - * @author mjz - * @date 2023/8/28 - */ -public class OrLiveChatReflectUtil extends ReflectUtil { - - public static Method getGetterMethod(Class objectClass, String key) { - Method method; - if (key.startsWith("is")) { - method = ReflectUtil.getMethodByNameIgnoreCase(objectClass, key); - if (method == null) { - ReflectUtil.getMethodByNameIgnoreCase(objectClass, "get" + key); - } - } else { - method = ReflectUtil.getMethodByNameIgnoreCase(objectClass, "get" + key); - } - return method; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLocalDateTimeUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLocalDateTimeUtil.java deleted file mode 100644 index b09cdedd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/live-chat-client-commons-util/src/main/java/tech/ordinaryroad/live/chat/client/commons/util/OrLocalDateTimeUtil.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.commons.util; - -import cn.hutool.core.date.LocalDateTimeUtil; - -import java.time.ZoneId; -import java.time.ZonedDateTime; - -/** - * @author mjz - * @date 2023/9/7 - */ -public class OrLocalDateTimeUtil extends LocalDateTimeUtil { - - public static ZoneId ZONE_ID_CTT = ZoneId.of(ZoneId.SHORT_IDS.get("CTT")); - - /** - * 获取中国标准时间的当前时间戳(毫秒) - */ - public static long zonedCurrentTimeMillis() { - ZonedDateTime now = ZonedDateTime.now(ZONE_ID_CTT); - return now.toEpochSecond() * 1000 + now.getNano() / 1_000_000; - } - - /** - * 获取中国标准时间的当前时间戳(秒) - */ - public static long zonedCurrentTimeSecs() { - return ZonedDateTime.now(ZONE_ID_CTT).toEpochSecond(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-commons/pom.xml deleted file mode 100644 index 84ba7804..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-commons/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - ruoyi-common-live - ${revision} - ../pom.xml - - - pom - - live-chat-client-commons - - - live-chat-client-commons-base - live-chat-client-commons-util - live-chat-client-commons-client - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/pom.xml deleted file mode 100644 index 9ea335d6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/pom.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - live-chat-client-servers - ${revision} - ../pom.xml - - - jar - - live-chat-client-servers-netty-client - live-chat-client-servers-netty - - - UTF-8 - - - - - org.ruoyi - live-chat-client-commons-client - - - - org.ruoyi - live-chat-client-servers-netty - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/base/BaseNettyClient.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/base/BaseNettyClient.java deleted file mode 100644 index c342b5bc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/base/BaseNettyClient.java +++ /dev/null @@ -1,349 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.client.base; - -import io.netty.bootstrap.Bootstrap; -import io.netty.channel.*; -import io.netty.channel.socket.SocketChannel; -import io.netty.channel.socket.nio.NioSocketChannel; -import io.netty.handler.codec.http.HttpClientCodec; -import io.netty.handler.codec.http.HttpObjectAggregator; -import io.netty.handler.ssl.SslContext; -import io.netty.handler.ssl.SslContextBuilder; -import io.netty.handler.stream.ChunkedWriteHandler; -import lombok.Getter; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.commons.client.BaseLiveChatClient; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; -import tech.ordinaryroad.live.chat.client.servers.netty.client.config.BaseNettyClientConfig; -import tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler; - -import javax.net.ssl.SSLException; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.concurrent.TimeUnit; -import java.util.function.Consumer; - -/** - * @author mjz - * @date 2023/8/26 - */ -@Slf4j -public abstract class BaseNettyClient - , - Msg extends IMsg, - MsgListener extends IBaseMsgListener, - ConnectionHandler extends BaseConnectionHandler, - BinaryFrameHandler extends BaseBinaryFrameHandler - > - extends BaseLiveChatClient { - - @Getter - private final EventLoopGroup workerGroup; - @Getter - private final Bootstrap bootstrap = new Bootstrap(); - private BinaryFrameHandler binaryFrameHandler; - private ConnectionHandler connectionHandler; - private IBaseConnectionListener connectionListener; - private Channel channel; - @Getter - private URI websocketUri; - protected IBaseConnectionListener clientConnectionListener; - /** - * 控制弹幕发送频率 - */ - private volatile long lastSendDanmuTimeInMillis; - - public abstract ConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener); - - public abstract BinaryFrameHandler initBinaryFrameHandler(); - - protected BaseNettyClient(Config config, EventLoopGroup workerGroup, IBaseConnectionListener connectionListener) { - super(config); - this.workerGroup = workerGroup; - this.connectionListener = connectionListener; - } - - public void onConnected(ConnectionHandler connectionHandler) { - this.setStatus(ClientStatusEnums.CONNECTED); - if (this.connectionListener != null) { - this.connectionListener.onConnected(connectionHandler); - } - } - - public void onConnectFailed(ConnectionHandler connectionHandler) { - this.setStatus(ClientStatusEnums.CONNECT_FAILED); - tryReconnect(); - if (this.connectionListener != null) { - this.connectionListener.onConnectFailed(connectionHandler); - } - } - - public void onDisconnected(ConnectionHandler connectionHandler) { - this.setStatus(ClientStatusEnums.DISCONNECTED); - tryReconnect(); - if (this.connectionListener != null) { - this.connectionListener.onDisconnected(connectionHandler); - } - } - - @Override - public void init() { - if (checkStatus(ClientStatusEnums.INITIALIZED)) { - return; - } - try { - this.websocketUri = new URI(getWebSocketUriString()); - SslContext sslCtx = SslContextBuilder.forClient().build(); - - this.clientConnectionListener = new IBaseConnectionListener() { - @Override - public void onConnected(ConnectionHandler connectionHandler) { - BaseNettyClient.this.onConnected(connectionHandler); - } - - @Override - public void onConnectFailed(ConnectionHandler connectionHandler) { - BaseNettyClient.this.onConnectFailed(connectionHandler); - } - - @Override - public void onDisconnected(ConnectionHandler connectionHandler) { - BaseNettyClient.this.onDisconnected(connectionHandler); - } - }; - this.binaryFrameHandler = this.initBinaryFrameHandler(); - this.connectionHandler = this.initConnectionHandler(this.clientConnectionListener); - - this.bootstrap.group(this.workerGroup) - // 创建Channel - .channel(NioSocketChannel.class) - .remoteAddress(this.websocketUri.getHost(), getInetPort()) - .option(ChannelOption.TCP_NODELAY, true) - .option(ChannelOption.SO_KEEPALIVE, true) - // Channel配置 - .handler(new ChannelInitializer() { - @Override - protected void initChannel(SocketChannel ch) { - // 责任链 - ChannelPipeline pipeline = ch.pipeline(); - - // 放到第一位 addFirst 支持wss链接服务端 - pipeline.addFirst(sslCtx.newHandler(ch.alloc(), BaseNettyClient.this.websocketUri.getHost(), getInetPort())); - - // 添加一个http的编解码器 - pipeline.addLast(new HttpClientCodec()); - // 添加一个用于支持大数据流的支持 - pipeline.addLast(new ChunkedWriteHandler()); - // 添加一个聚合器,这个聚合器主要是将HttpMessage聚合成FullHttpRequest/Response - pipeline.addLast(new HttpObjectAggregator(BaseNettyClient.this.getConfig().getAggregatorMaxContentLength())); - - // 连接处理器 - pipeline.addLast(BaseNettyClient.this.connectionHandler); - // 弹幕处理器 - pipeline.addLast(BaseNettyClient.this.binaryFrameHandler); - } - }); - this.setStatus(ClientStatusEnums.INITIALIZED); - } catch (URISyntaxException e) { - throw new BaseException(e); - } catch (SSLException e) { - throw new BaseException(e); - } - } - - private int getInetPort() { - int port = this.websocketUri.getPort(); - return port == -1 ? "wss".equalsIgnoreCase(websocketUri.getScheme()) ? 443 : 80 : port; - } - - @Override - public void connect(Runnable success, Consumer failed) { - if (this.cancelReconnect) { - this.cancelReconnect = false; - } - if (!checkStatus(ClientStatusEnums.INITIALIZED)) { - return; - } - if (getStatus() == ClientStatusEnums.CONNECTED) { - return; - } - if (getStatus() != ClientStatusEnums.RECONNECTING) { - this.setStatus(ClientStatusEnums.CONNECTING); - } - this.bootstrap.connect().addListener((ChannelFutureListener) connectFuture -> { - if (connectFuture.isSuccess()) { - if (log.isDebugEnabled()) { - log.debug("连接建立成功!"); - } - this.channel = connectFuture.channel(); - // 监听是否握手成功 - this.connectionHandler.getHandshakeFuture().addListener((ChannelFutureListener) handshakeFuture -> { - try { - connectionHandler.sendAuthRequest(channel); - if (success != null) { - success.run(); - } - } catch (Exception e) { - log.error("认证包发送失败,断开连接", e); - this.disconnect(); - } - }); - } else { - log.error("连接建立失败", connectFuture.cause()); - this.onConnectFailed(this.connectionHandler); - if (failed != null) { - failed.accept(connectFuture.cause()); - } - } - }); - } - - @Override - public void disconnect() { - if (this.channel == null) { - return; - } - this.channel.close(); - } - - @Override - protected void tryReconnect() { - if (this.cancelReconnect) { - this.cancelReconnect = false; - return; - } - if (!getConfig().isAutoReconnect()) { - return; - } - if (log.isWarnEnabled()) { - log.warn("{}s后将重新连接 {}", getConfig().getReconnectDelay(), getConfig().getRoomId()); - } - workerGroup.schedule(() -> { - this.setStatus(ClientStatusEnums.RECONNECTING); - this.connect(); - }, getConfig().getReconnectDelay(), TimeUnit.SECONDS); - } - - @Override - public void send(Object msg, Runnable success, Consumer failed) { - ChannelFuture future = this.channel.writeAndFlush(msg); - if (success != null || failed != null) { - future.addListener((ChannelFutureListener) channelFuture -> { - if (channelFuture.isSuccess()) { - if (success != null) { - success.run(); - } - } else { - if (failed != null) { - failed.accept(channelFuture.cause()); - } - } - }); - } - } - - @Override - public void destroy() { - super.destroy(); - - // 销毁时不需要重连 - this.cancelReconnect = true; - workerGroup.shutdownGracefully().addListener(future -> { - if (future.isSuccess()) { - this.setStatus(ClientStatusEnums.DESTROYED); - } else { - throw new BaseException("client销毁失败", future.cause()); - } - }); - } - - @Override - protected String getWebSocketUriString() { - return getConfig().getWebsocketUri(); - } - - @Override - protected void setStatus(ClientStatusEnums status) { - if (log.isDebugEnabled()) { - if (getStatus() != status) { - log.debug("{} 状态变化 {} => {}\n", getClass().getSimpleName(), getStatus(), status); - } - } - super.setStatus(status); - } - - @Override - public void sendDanmu(Object danmu, Runnable success, Consumer failed) { - throw new BaseException("暂未支持该功能"); - } - - @Override - public void clickLike(int count, Runnable success, Consumer failed) { - throw new BaseException("暂未支持该功能"); - } - - /** - * 发送弹幕前判断是否可以发送 - * - * @param checkConnected 是否检查Client连接状态 - */ - protected boolean checkCanSendDanmu(boolean checkConnected) { - if (checkConnected && getStatus() != ClientStatusEnums.CONNECTED) { - throw new BaseException("连接未建立,无法发送弹幕"); - } - if (System.currentTimeMillis() - this.lastSendDanmuTimeInMillis <= getConfig().getMinSendDanmuPeriod()) { - if (log.isWarnEnabled()) { - log.warn("发送弹幕频率过快,忽略该次发送"); - } - return false; - } - return true; - } - - protected boolean checkCanSendDanmu() { - return checkCanSendDanmu(true); - } - - /** - * 发送弹幕后调用该方法 - */ - protected void finishSendDanmu() { - this.lastSendDanmuTimeInMillis = System.currentTimeMillis(); - if (log.isDebugEnabled()) { - log.debug("弹幕发送完成"); - } - } - - public void iteratorMsgListeners(Consumer consumer) { - binaryFrameHandler.iteratorMsgListeners(consumer); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/config/BaseNettyClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/config/BaseNettyClientConfig.java deleted file mode 100644 index c0ebf52b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/config/BaseNettyClientConfig.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.client.config; - -import io.netty.handler.codec.http.HttpHeaders; -import io.netty.handler.codec.http.HttpObjectAggregator; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.commons.client.config.BaseLiveChatClientConfig; - -import java.net.URI; - -/** - * @author mjz - * @date 2023/8/26 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public abstract class BaseNettyClientConfig extends BaseLiveChatClientConfig { - - /** - * 聚合器允许的最大消息体长度,默认 64*1024 byte - * - * @see HttpObjectAggregator#HttpObjectAggregator(int) - */ - @Builder.Default - private int aggregatorMaxContentLength = 64 * 1024; - - /** - * WebSocketClientHandshaker最大消息体长度,默认 64*1024 byte - * - * @see WebSocketClientHandshakerFactory#newHandshaker(URI, WebSocketVersion, String, boolean, HttpHeaders, int) - */ - @Builder.Default - private int maxFramePayloadLength = 64 * 1024; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/handler/BaseNettyClientBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/handler/BaseNettyClientBinaryFrameHandler.java deleted file mode 100644 index 278ce3f4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/handler/BaseNettyClientBinaryFrameHandler.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.client.handler; - -import lombok.Getter; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; -import tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseBinaryFrameHandler; - -import java.util.List; - -/** - * BaseClientBinaryFrameHandler - * - * @author mjz - * @date 2023/8/30 - */ -public abstract class BaseNettyClientBinaryFrameHandler< - Client extends BaseNettyClient, - BinaryFrameHandler extends BaseBinaryFrameHandler, - CmdEnum extends Enum, - Msg extends IMsg, - MsgListener extends IBaseMsgListener> - extends BaseBinaryFrameHandler { - - @Getter - protected final Client client; - - public BaseNettyClientBinaryFrameHandler(List msgListeners, Client client, long roomId) { - super(msgListeners, roomId); - this.client = client; - } - - public BaseNettyClientBinaryFrameHandler(List msgListeners, Client client) { - super(msgListeners, client.getConfig().getRoomId()); - this.client = client; - } - - public BaseNettyClientBinaryFrameHandler(List msgListeners, long roomId) { - super(msgListeners, roomId); - this.client = null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/handler/BaseNettyClientConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/handler/BaseNettyClientConnectionHandler.java deleted file mode 100644 index a9903f17..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty-client/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/client/handler/BaseNettyClientConnectionHandler.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.client.handler; - -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import lombok.Getter; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; -import tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler; - -/** - * BaseClientConnectionHandler - * - * @author mjz - * @date 2023/8/27 - */ -public abstract class BaseNettyClientConnectionHandler< - Client extends BaseNettyClient, - ConnectionHandler extends BaseConnectionHandler> - extends BaseConnectionHandler { - - @Getter - protected final Client client; - - public BaseNettyClientConnectionHandler(WebSocketClientHandshaker handshaker, Client client, IBaseConnectionListener listener) { - super(handshaker, listener); - this.client = client; - } - - public BaseNettyClientConnectionHandler(WebSocketClientHandshaker handshaker, Client client) { - this(handshaker, client, null); - } - - public BaseNettyClientConnectionHandler(WebSocketClientHandshaker handshaker, IBaseConnectionListener listener) { - super(handshaker, listener); - this.client = null; - } - - public BaseNettyClientConnectionHandler(WebSocketClientHandshaker handshaker, long roomId) { - super(handshaker, null); - this.client = null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/pom.xml deleted file mode 100644 index 1e4259a9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - live-chat-client-servers - ${revision} - ../pom.xml - - jar - - live-chat-client-servers-netty - live-chat-client-servers-netty - - - UTF-8 - - - - - org.ruoyi - live-chat-client-commons-base - - - - io.netty - netty-all - - - - ch.qos.logback - logback-classic - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/frame/base/BaseBinaryWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/frame/base/BaseBinaryWebSocketFrame.java deleted file mode 100644 index 984960a0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/frame/base/BaseBinaryWebSocketFrame.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.frame.base; - -import io.netty.buffer.ByteBuf; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; - -/** - * @author mjz - * @date 2023/1/5 - */ -public abstract class BaseBinaryWebSocketFrame extends BinaryWebSocketFrame { - - public BaseBinaryWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/handler/base/BaseBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/handler/base/BaseBinaryFrameHandler.java deleted file mode 100644 index c7a683f3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/handler/base/BaseBinaryFrameHandler.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.handler.base; - -import com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException; -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandlerContext; -import io.netty.channel.SimpleChannelInboundHandler; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; -import lombok.Getter; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseCmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; - -import java.util.List; -import java.util.function.Consumer; - - -/** - * 消息处理器 - * - * @author mjz - * @date 2023/1/4 - */ -@Slf4j -public abstract class BaseBinaryFrameHandler< - T extends BaseBinaryFrameHandler, - CmdEnum extends Enum, - Msg extends IMsg, - MsgListener extends IBaseMsgListener - > extends SimpleChannelInboundHandler - implements IBaseMsgListener { - - @Getter - private final Object roomId; - protected final List msgListeners; - - public BaseBinaryFrameHandler(List msgListeners, Object roomId) { - this.msgListeners = msgListeners; - this.roomId = roomId; - if (this.msgListeners == null || this.msgListeners.isEmpty()) { - if (log.isDebugEnabled()) { - log.debug("listener not set"); - } - } - } - - /** - * 解码收到的二进制流 - * - * @param byteBuf ByteBuf - * @return List - */ - protected abstract List decode(ByteBuf byteBuf); - - @SuppressWarnings("unchecked") - protected void channelRead0(ChannelHandlerContext ctx, BinaryWebSocketFrame message) { - ByteBuf byteBuf = message.content(); - List msgList = this.decode(byteBuf); - if (msgList == null || msgList.isEmpty()) { - if (log.isDebugEnabled()) { - log.debug("msgList is empty"); - } - return; - } - for (Msg msg : msgList) { - this.onMsg((T) BaseBinaryFrameHandler.this, msg); - if (msg instanceof ICmdMsg) { - ICmdMsg cmdMsg = (ICmdMsg) msg; - Enum cmdEnum = cmdMsg.getCmdEnum(); - if (cmdEnum == null) { - this.onUnknownCmd((T) BaseBinaryFrameHandler.this, cmdMsg.getCmd(), cmdMsg); - } else { - this.onCmdMsg((T) BaseBinaryFrameHandler.this, (CmdEnum) cmdEnum, (ICmdMsg) cmdMsg); - } - } - if (msg instanceof BaseCmdMsg) { - BaseCmdMsg cmdMsg = (BaseCmdMsg) msg; - Enum cmdEnum = cmdMsg.getCmdEnum(); - if (cmdEnum == null) { - this.onUnknownCmd((T) BaseBinaryFrameHandler.this, cmdMsg.getCmd(), cmdMsg); - } else { - this.onCmdMsg((T) BaseBinaryFrameHandler.this, (CmdEnum) cmdEnum, (BaseCmdMsg) cmdMsg); - } - } - } - } - - @Override - public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { - if (cause.getCause() instanceof UnrecognizedPropertyException) { - log.error("缺少字段:{}", cause.getMessage()); - } else { - super.exceptionCaught(ctx, cause); - } - } - - @Override - public void onMsg(T t, IMsg msg) { - IBaseMsgListener.super.onMsg(t, msg); - iteratorMsgListeners(msgListener -> msgListener.onMsg(t, msg)); - } - - /** - * 重写该方法,判断CMD,或者调用{@link IBaseMsgListener#onOtherCmdMsg(Object, Enum, ICmdMsg)} - * - * @param t BaseBinaryFrameHandler - * @param cmd CmdEnum - * @param cmdMsg BaseMsg - */ - @Override - public void onCmdMsg(T t, CmdEnum cmd, ICmdMsg cmdMsg) { - IBaseMsgListener.super.onCmdMsg(t, cmd, cmdMsg); - iteratorMsgListeners(msgListener -> msgListener.onCmdMsg(t, cmd, cmdMsg)); - } - - @Override - public void onUnknownCmd(T t, String cmdString, IMsg msg) { - IBaseMsgListener.super.onUnknownCmd(t, cmdString, msg); - iteratorMsgListeners(msgListener -> msgListener.onUnknownCmd(t, cmdString, msg)); - } - - @SuppressWarnings("ForLoopReplaceableByForEach") - public void iteratorMsgListeners(Consumer consumer) { - if (msgListeners.isEmpty()) { - return; - } - for (int i = 0; i < msgListeners.size(); i++) { - consumer.accept(msgListeners.get(i)); - } - } - - @Override - public void onCmdMsg(T t, CmdEnum cmd, BaseCmdMsg cmdMsg) { - IBaseMsgListener.super.onCmdMsg(t, cmd, cmdMsg); - iteratorMsgListeners(msgListener -> msgListener.onCmdMsg(t, cmd, cmdMsg)); - } - - @Override - public void onUnknownCmd(T t, String cmdString, BaseMsg msg) { - IBaseMsgListener.super.onUnknownCmd(t, cmdString, msg); - iteratorMsgListeners(msgListener -> msgListener.onUnknownCmd(t, cmdString, msg)); - } - - public String getRoomIdAsString() { - if (this.roomId == null) { - return ""; - } - return this.roomId.toString(); - } - - public long getRoomIdAsLong() { - String roomIdAsString = this.getRoomIdAsString(); - if (roomIdAsString.trim().isEmpty()) { - return 0L; - } - return Long.parseLong(roomIdAsString); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/handler/base/BaseConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/handler/base/BaseConnectionHandler.java deleted file mode 100644 index 724dca41..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/live-chat-client-servers-netty/src/main/java/tech/ordinaryroad/live/chat/client/servers/netty/handler/base/BaseConnectionHandler.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.servers.netty.handler.base; - -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandlerContext; -import io.netty.channel.ChannelPromise; -import io.netty.channel.SimpleChannelInboundHandler; -import io.netty.handler.codec.http.FullHttpResponse; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import io.netty.handler.codec.http.websocketx.WebSocketHandshakeException; -import io.netty.handler.ssl.SslCloseCompletionEvent; -import io.netty.handler.ssl.SslHandshakeCompletionEvent; -import io.netty.util.concurrent.ScheduledFuture; -import lombok.Getter; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; - -import java.util.concurrent.TimeUnit; - - -/** - * 连接处理器 - * - * @author mjz - * @date 2023/8/21 - */ -@Slf4j -public abstract class BaseConnectionHandler> extends SimpleChannelInboundHandler { - - private final WebSocketClientHandshaker handshaker; - @Getter - private ChannelPromise handshakeFuture; - private final IBaseConnectionListener listener; - /** - * 客户端发送心跳包 - */ - private ScheduledFuture scheduledFuture = null; - - public BaseConnectionHandler(WebSocketClientHandshaker handshaker, IBaseConnectionListener listener) { - this.handshaker = handshaker; - this.listener = listener; - } - - public BaseConnectionHandler(WebSocketClientHandshaker handshaker) { - this(handshaker, null); - } - - - @Override - public void handlerAdded(ChannelHandlerContext ctx) { - this.handshakeFuture = ctx.newPromise(); - } - - @Override - public void channelActive(ChannelHandlerContext ctx) { - this.handshaker.handshake(ctx.channel()); - } - - protected void channelRead0(ChannelHandlerContext ctx, FullHttpResponse msg) throws Exception { - // 判断是否正确握手 - if (this.handshaker.isHandshakeComplete()) { - handshakeSuccessfully(ctx, msg); - } else { - try { - handshakeSuccessfully(ctx, msg); - } catch (WebSocketHandshakeException e) { - handshakeFailed(msg, e); - } - } - } - - @Override - public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { - if (log.isDebugEnabled()) { - log.debug("userEventTriggered {}", evt.getClass()); - } - if (evt instanceof SslHandshakeCompletionEvent) { - heartbeatCancel(); - heartbeatStart(ctx); - if (this.listener != null) { - listener.onConnected((ConnectionHandler) BaseConnectionHandler.this); - } - } else if (evt instanceof SslCloseCompletionEvent) { - heartbeatCancel(); - if (this.listener != null) { - listener.onDisconnected((ConnectionHandler) BaseConnectionHandler.this); - } - } else { - log.error("待处理 {}", evt.getClass()); - } - super.userEventTriggered(ctx, evt); - } - - /** - * 开始发送心跳包 - */ - private void heartbeatStart(ChannelHandlerContext ctx) { - scheduledFuture = ctx.executor().scheduleAtFixedRate(() -> { - sendHeartbeat(ctx); - }, getHeartbeatInitialDelay(), getHeartbeatPeriod(), TimeUnit.SECONDS); - } - - /** - * 取消发送心跳包 - */ - private void heartbeatCancel() { - if (null != scheduledFuture && !scheduledFuture.isCancelled()) { - scheduledFuture.cancel(true); - scheduledFuture = null; - } - } - - protected abstract void sendHeartbeat(ChannelHandlerContext ctx); - - public abstract void sendAuthRequest(Channel channel); - - protected abstract long getHeartbeatPeriod(); - - protected abstract long getHeartbeatInitialDelay(); - - private void handshakeSuccessfully(ChannelHandlerContext ctx, FullHttpResponse msg) { - if (log.isDebugEnabled()) { - log.debug("握手完成!"); - } - this.handshaker.finishHandshake(ctx.channel(), msg); - this.handshakeFuture.setSuccess(); - } - - private void handshakeFailed(FullHttpResponse msg, WebSocketHandshakeException e) { - log.error("握手失败!status:" + msg.status(), e); - this.handshakeFuture.setFailure(e); - if (listener != null) { - this.listener.onConnectFailed((ConnectionHandler) this); - } - } - - @Override - public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { - log.error("exceptionCaught", cause); - if (!this.handshakeFuture.isDone()) { - this.handshakeFuture.setFailure(cause); - } - ctx.close(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-client-servers/pom.xml deleted file mode 100644 index 28a9cfb0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-client-servers/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - ruoyi-common-live - ${revision} - ../pom.xml - - pom - - live-chat-client-servers - live-chat-client-servers - - - UTF-8 - - - - live-chat-client-servers-netty - live-chat-client-servers-netty-client - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/pom.xml deleted file mode 100644 index dcd4706d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - live-chat-clients - ${revision} - ../pom.xml - - jar - - live-chat-client-bilibili - live-chat-client-bilibili - - - UTF-8 - - - - - org.ruoyi - live-chat-client-servers-netty-client - - - - com.aayushatharva.brotli4j - brotli4j - - - - com.google.protobuf - protobuf-java-util - - - - ch.qos.logback - logback-classic - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/BilibiliApis.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/BilibiliApis.java deleted file mode 100644 index 5fd081e8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/BilibiliApis.java +++ /dev/null @@ -1,247 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.api; - -import cn.hutool.cache.impl.TimedCache; -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.thread.ThreadUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.http.HttpRequest; -import cn.hutool.http.HttpResponse; -import cn.hutool.http.HttpUtil; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.*; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.bilibili.api.request.BilibiliLikeReportV3Request; -import tech.ordinaryroad.live.chat.client.bilibili.api.request.BilibiliSendMsgRequest; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatCookieUtil; - -import java.time.ZoneId; -import java.time.ZonedDateTime; -import java.util.Map; -import java.util.concurrent.TimeUnit; - -import static tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg.OBJECT_MAPPER; - -/** - * B站API简易版 - * - * @author mjz - * @date 2023/5/5 - */ -@Slf4j -public class BilibiliApis { - - public static final TimedCache GIFT_IMG_CACHE = new TimedCache<>(TimeUnit.DAYS.toMillis(1)); - public static final String KEY_COOKIE_CSRF = "bili_jct"; - public static final String KEY_UID = "DedeUserID"; - - @SneakyThrows - public static RoomInitResult roomInit(long roomId, String cookie) { - @Cleanup - HttpResponse response = createGetRequest("https://api.live.bilibili.com/room/v1/Room/room_init?id=" + roomId, cookie).execute(); - JsonNode dataJsonNode = responseInterceptor(response.body()); - return OBJECT_MAPPER.readValue(dataJsonNode.toString(), RoomInitResult.class); - } - - public static JsonNode roomGiftConfig(long roomId, String cookie) { - @Cleanup - HttpResponse response = createGetRequest("https://api.live.bilibili.com/xlive/web-room/v1/giftPanel/roomGiftConfig?platform=pc&source=live&build=0&global_version=0&room_id=" + roomId, cookie).execute(); - return responseInterceptor(response.body()); - } - - /** - * @param roomId - * @param type 直播间用0 - * @return
{@code
-     * {
-     * 	"group": "live",
-     * 	"business_id": 0,
-     * 	"refresh_row_factor": 0.125,
-     * 	"refresh_rate": 100,
-     * 	"max_delay": 5000,
-     * 	"token": "-wm5-Qo4BBAztd1qp5ZJpgyTMRBhCc7yikz5d9rAd63PV46G9BMwl0R10kMM8Ilb-UieZGjLtipPrz4Cvi0DdhGFwOi8PJpFN9K-LoXh6Z_4yjEIwgRerDiMIstHzJ80J3B7wnRisAYkWA==",
-     * 	"host_list": [{
-     * 		"host": "ali-bj-live-comet-09.chat.bilibili.com",
-     * 		"port": 2243,
-     * 		"wss_port": 443,
-     * 		"ws_port": 2244
-     *        }, {
-     * 		"host": "ali-gz-live-comet-02.chat.bilibili.com",
-     * 		"port": 2243,
-     * 		"wss_port": 443,
-     * 		"ws_port": 2244
-     *    }, {
-     * 		"host": "broadcastlv.chat.bilibili.com",
-     * 		"port": 2243,
-     * 		"wss_port": 443,
-     * 		"ws_port": 2244
-     *    }]
-     * }
-     * }
- */ - public static JsonNode getDanmuInfo(long roomId, int type, String cookie) { - @Cleanup - HttpResponse response = createGetRequest("https://api.live.bilibili.com/xlive/web-room/v1/index/getDanmuInfo?id=" + roomId + "&type=" + type, cookie).execute(); - return responseInterceptor(response.body()); - } - - public static String getGiftImgById(long giftId, long roomId) { - if (!GIFT_IMG_CACHE.containsKey(giftId)) { - ThreadUtil.execAsync(() -> { - updateGiftImgCache(roomId, null); - }); - } - - return GIFT_IMG_CACHE.get(giftId); - } - - /** - * 更新礼物图片缓存 - */ - public static void updateGiftImgCache(long roomId, String cookie) { - JsonNode jsonNode = roomGiftConfig(roomId, cookie); - for (JsonNode node : jsonNode.get("global_gift").get("list")) { - long giftId = node.get("id").asLong(); - String giftImgUrl = node.get("webp").asText(); - GIFT_IMG_CACHE.put(giftId, giftImgUrl); - } - } - - /** - * 发送弹幕 - * - * @param request {@link BilibiliSendMsgRequest} - * @param cookie Cookie - */ - public static void sendMsg(BilibiliSendMsgRequest request, String cookie) { - if (StrUtil.isBlank(cookie)) { - throw new BaseException("发送弹幕接口cookie不能为空"); - } - Map stringObjectMap = BeanUtil.beanToMap(request); - @Cleanup HttpResponse execute = HttpUtil.createPost("https://api.live.bilibili.com/msg/send") - .cookie(cookie) - .form(stringObjectMap) - .execute(); - responseInterceptor(execute.body()); - } - - /** - * 发送弹幕 - * - * @param msg 内容 - * @param realRoomId 真实房间id - * @param cookie Cookie - */ - public static void sendMsg(String msg, long realRoomId, String cookie) { - String biliJct = OrLiveChatCookieUtil.getCookieByName(cookie, KEY_COOKIE_CSRF, () -> { - throw new BaseException("cookie中缺少参数" + KEY_COOKIE_CSRF); - }); - BilibiliSendMsgRequest request = new BilibiliSendMsgRequest(msg, StrUtil.toString(ZonedDateTime.now(ZoneId.of("Asia/Shanghai")).toEpochSecond()), realRoomId, biliJct, biliJct); - sendMsg(request, cookie); - } - - /** - * 为主播点赞 - * - * @param request {@link BilibiliLikeReportV3Request} - * @param cookie Cookie - */ - public static void likeReportV3(BilibiliLikeReportV3Request request, String cookie) { - if (StrUtil.isBlank(cookie)) { - throw new BaseException("为主播点赞接口cookie不能为空"); - } - Map stringObjectMap = BeanUtil.beanToMap(request); - @Cleanup HttpResponse execute = HttpUtil.createPost("https://api.live.bilibili.com/xlive/app-ucenter/v1/like_info_v3/like/likeReportV3") - .cookie(cookie) - .form(stringObjectMap) - .execute(); - responseInterceptor(execute.body()); - } - - /** - * 为主播点赞 - * - * @param anchor_id 主播Uid {@link RoomInitResult#uid} - * @param realRoomId 真实房间Id {@link RoomInitResult#room_id} - * @param cookie Cookie - */ - public static void likeReportV3(long anchor_id, long realRoomId, String cookie) { - String uid = OrLiveChatCookieUtil.getCookieByName(cookie, KEY_UID, () -> { - throw new BaseException("cookie中缺少参数" + KEY_UID); - }); - String biliJct = OrLiveChatCookieUtil.getCookieByName(cookie, KEY_COOKIE_CSRF, () -> { - throw new BaseException("cookie中缺少参数" + KEY_COOKIE_CSRF); - }); - BilibiliLikeReportV3Request request = new BilibiliLikeReportV3Request(realRoomId, uid, anchor_id, biliJct, biliJct); - likeReportV3(request, cookie); - } - - public static HttpRequest createGetRequest(String url, String cookies) { - return HttpUtil.createGet(url) - .cookie(cookies); - } - - private static JsonNode responseInterceptor(String responseString) { - try { - JsonNode jsonNode = OBJECT_MAPPER.readTree(responseString); - int code = jsonNode.get("code").asInt(); - if (code == 0) { - // 成功 - return jsonNode.get("data"); - } else { - throw new BaseException(jsonNode.get("message").asText()); - } - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } - - @Data - @AllArgsConstructor - @NoArgsConstructor - @Builder - public static class RoomInitResult { - private long room_id; - private int short_id; - private long uid; - private int need_p2p; - private boolean is_hidden; - private boolean is_locked; - private boolean is_portrait; - private int live_status; - private int hidden_till; - private int lock_till; - private boolean encrypted; - private boolean pwd_verified; - private long live_time; - private int room_shield; - private int is_sp; - private int special_type; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/request/BilibiliLikeReportV3Request.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/request/BilibiliLikeReportV3Request.java deleted file mode 100644 index 5979d891..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/request/BilibiliLikeReportV3Request.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.api.request; - -import cn.hutool.core.util.StrUtil; -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * @author mjz - * @date 2024/1/31 - */ -@Data -@NoArgsConstructor -public class BilibiliLikeReportV3Request { - /** - * 本次点赞次数 - */ - private int click_time = 1; - /** - * 房间真实ID - */ - private long room_id; - /** - * Cookie中的DedeUserID - */ - private String uid; - /** - * RoomInitResult中的uid - */ - private long anchor_id; - /** - * Cookie中的bili_jct - */ - private String csrf; - /** - * Cookie中的bili_jct - */ - private String csrf_token; - /** - * 暂时留空 - */ - private String visit_id = StrUtil.EMPTY; - - public BilibiliLikeReportV3Request(long room_id, String uid, long anchor_id, String csrf, String csrf_token) { - this.room_id = room_id; - this.uid = uid; - this.anchor_id = anchor_id; - this.csrf = csrf; - this.csrf_token = csrf_token; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/request/BilibiliSendMsgRequest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/request/BilibiliSendMsgRequest.java deleted file mode 100644 index eca8d7b8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/api/request/BilibiliSendMsgRequest.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.api.request; - -import lombok.Data; -import lombok.NoArgsConstructor; - -/** - * @author mjz - * @date 2023/9/7 - */ -@Data -@NoArgsConstructor -public class BilibiliSendMsgRequest { - private String bubble = "0"; - /** - * 弹幕内容 - */ - private String msg; - /** - * 弹幕颜色 - */ - private String color = "16777215"; - private String mode = "1"; - private String room_type = "0"; - private String jumpfrom = "0"; - /** - * 字体大小 - */ - private String fontsize = "25"; - /** - * 时间戳(秒) - */ - private String rnd; - /** - * 房间真实ID - */ - private long roomid; - /** - * Cookie中的bili_jct - */ - private String csrf; - /** - * Cookie中的bili_jct - */ - private String csrf_token; - - public BilibiliSendMsgRequest(String msg, String rnd, long roomid, String csrf, String csrf_token) { - this.msg = msg; - this.rnd = rnd; - this.roomid = roomid; - this.csrf = csrf; - this.csrf_token = csrf_token; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/client/BilibiliLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/client/BilibiliLiveChatClient.java deleted file mode 100644 index 6bca3870..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/client/BilibiliLiveChatClient.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.client; - -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.DefaultHttpHeaders; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.bilibili.api.BilibiliApis; -import tech.ordinaryroad.live.chat.client.bilibili.config.BilibiliLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.bilibili.constant.BilibiliCmdEnum; -import tech.ordinaryroad.live.chat.client.bilibili.listener.IBilibiliConnectionListener; -import tech.ordinaryroad.live.chat.client.bilibili.listener.IBilibiliMsgListener; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.IBilibiliMsg; -import tech.ordinaryroad.live.chat.client.bilibili.netty.handler.BilibiliBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.bilibili.netty.handler.BilibiliConnectionHandler; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; - -import java.util.List; -import java.util.function.Consumer; - -/** - * B站直播间弹幕客户端 - * - * @author mjz - * @date 2023/8/20 - */ -@Slf4j -public class BilibiliLiveChatClient extends BaseNettyClient< - BilibiliLiveChatClientConfig, - BilibiliCmdEnum, - IBilibiliMsg, - IBilibiliMsgListener, - BilibiliConnectionHandler, - BilibiliBinaryFrameHandler - > { - - private BilibiliApis.RoomInitResult roomInitResult = new BilibiliApis.RoomInitResult(); - - public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, List msgListeners, IBilibiliConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListeners(msgListeners); - - // 初始化 - this.init(); - } - - public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener, IBilibiliConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListener(msgListener); - - // 初始化 - this.init(); - } - - public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener, IBilibiliConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config, IBilibiliMsgListener msgListener) { - this(config, msgListener, null, new NioEventLoopGroup()); - } - - public BilibiliLiveChatClient(BilibiliLiveChatClientConfig config) { - this(config, null); - } - - @Override - public void init() { - roomInitResult = BilibiliApis.roomInit(getConfig().getRoomId(), getConfig().getCookie()); - super.init(); - } - - @Override - public BilibiliConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - return new BilibiliConnectionHandler( - WebSocketClientHandshakerFactory.newHandshaker(getWebsocketUri(), WebSocketVersion.V13, null, true, new DefaultHttpHeaders(), getConfig().getMaxFramePayloadLength()), - BilibiliLiveChatClient.this, clientConnectionListener - ); - } - - @Override - public BilibiliBinaryFrameHandler initBinaryFrameHandler() { - return new BilibiliBinaryFrameHandler(super.msgListeners, BilibiliLiveChatClient.this); - } - - @Override - public void sendDanmu(Object danmu, Runnable success, Consumer failed) { - if (!checkCanSendDanmu(false)) { - return; - } - if (danmu instanceof String) { - String msg = (String) danmu; - try { - if (log.isDebugEnabled()) { - log.debug("{} bilibili发送弹幕 {}", getConfig().getRoomId(), danmu); - } - - boolean sendSuccess = false; - try { - BilibiliApis.sendMsg(msg, roomInitResult.getRoom_id(), getConfig().getCookie()); - sendSuccess = true; - } catch (Exception e) { - log.error("bilibili弹幕发送失败", e); - if (failed != null) { - failed.accept(e); - } - } - if (!sendSuccess) { - return; - } - - if (log.isDebugEnabled()) { - log.debug("bilibili弹幕发送成功 {}", danmu); - } - if (success != null) { - success.run(); - } - finishSendDanmu(); - } catch (Exception e) { - log.error("bilibili弹幕发送失败", e); - if (failed != null) { - failed.accept(e); - } - } - } else { - super.sendDanmu(danmu, success, failed); - } - } - - @Override - public void clickLike(int count, Runnable success, Consumer failed) { - if (count <= 0) { - throw new BaseException("点赞次数必须大于0"); - } - - boolean successfullyClicked = false; - try { - BilibiliApis.likeReportV3(roomInitResult.getUid(), roomInitResult.getRoom_id(), getConfig().getCookie()); - successfullyClicked = true; - } catch (Exception e) { - log.error("Bilibili为直播间点赞失败", e); - if (failed != null) { - failed.accept(e); - } - } - if (!successfullyClicked) { - return; - } - - if (log.isDebugEnabled()) { - log.debug("Bilibili为直播间点赞成功"); - } - if (success != null) { - success.run(); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/config/BilibiliLiveChatClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/config/BilibiliLiveChatClientConfig.java deleted file mode 100644 index 0f0b3b9d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/config/BilibiliLiveChatClientConfig.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.config; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatNumberUtil; -import tech.ordinaryroad.live.chat.client.servers.netty.client.config.BaseNettyClientConfig; - -/** - * B站直播间弹幕客户端配置 - * - * @author mjz - * @date 2023/8/21 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class BilibiliLiveChatClientConfig extends BaseNettyClientConfig { - - /** - * @see ProtoverEnum - */ - @Builder.Default - private ProtoverEnum protover = ProtoverEnum.NORMAL_ZLIB; - - @Builder.Default - private String websocketUri = "wss://broadcastlv.chat.bilibili.com:443/sub"; - - @Override - public Long getRoomId() { - return OrLiveChatNumberUtil.parseLong(super.getRoomId()); - } - - public void setProtover(ProtoverEnum protover) { - ProtoverEnum oldValue = this.protover; - this.protover = protover; - super.propertyChangeSupport.firePropertyChange("protover", oldValue, protover); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/BilibiliCmdEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/BilibiliCmdEnum.java deleted file mode 100644 index 1b6edbc5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/BilibiliCmdEnum.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@RequiredArgsConstructor -public enum BilibiliCmdEnum { - /** - * 游客状态下,5分钟后会出现登录提示,弹幕中的用户名、用户id等信息将不再可见 - */ - LOG_IN_NOTICE, - /** - * 收到弹幕 - */ - DANMU_MSG, - /** - * 收到礼物 - */ - SEND_GIFT, - /** - * 有人上舰 - */ - GUARD_BUY, - /** - * 欢迎舰长 - */ - WELCOME_GUARD, - WELCOME, - /** - * 礼物连击 - */ - COMBO_SEND, - /** - * 欢迎高能用户、(舰长?待验证)特殊消息 - */ - ENTRY_EFFECT, - HOT_RANK_CHANGED, - HOT_RANK_CHANGED_V2, - INTERACT_WORD, - /** - * 开始直播 - */ - LIVE, - LIVE_INTERACTIVE_GAME, - NOTICE_MSG, - /** - * 高能榜数量更新 - */ - ONLINE_RANK_COUNT, - ONLINE_RANK_TOP3, - ONLINE_RANK_V2, - PK_BATTLE_END, - PK_BATTLE_FINAL_PROCESS, - PK_BATTLE_PROCESS, - PK_BATTLE_PROCESS_NEW, - PK_BATTLE_SETTLE, - PK_BATTLE_SETTLE_USER, - PK_BATTLE_SETTLE_V2, - /** - * 主播准备中 - */ - PREPARING, - ROOM_REAL_TIME_MESSAGE_UPDATE, - /** - * 停止直播的房间ID列表 - */ - STOP_LIVE_ROOM_LIST, - /** - * 醒目留言 - */ - SUPER_CHAT_MESSAGE, - SUPER_CHAT_MESSAGE_JPN, - /** - * 删除醒目留言 - */ - SUPER_CHAT_MESSAGE_DELETE, - WIDGET_BANNER, - /** - * 点赞数更新 - */ - LIKE_INFO_V3_UPDATE, - /** - * 为主播点赞 - */ - LIKE_INFO_V3_CLICK, - HOT_ROOM_NOTIFY, - /** - * 观看人数变化 - */ - WATCHED_CHANGE, - POPULAR_RANK_CHANGED, - COMMON_NOTICE_DANMAKU, - LIVE_MULTI_VIEW_CHANGE, - RECOMMEND_CARD, - PK_BATTLE_START_NEW, - PK_BATTLE_ENTRANCE, - AREA_RANK_CHANGED, - ROOM_BLOCK_MSG, - USER_TOAST_MSG, - PK_BATTLE_PRE_NEW, - PK_BATTLE_RANK_CHANGE, - PK_BATTLE_START, - PK_BATTLE_PRE, - PLAY_TAG, - ; - - public static BilibiliCmdEnum getByString(String cmd) { - try { - return BilibiliCmdEnum.valueOf(cmd); - } catch (Exception e) { - return null; - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/OperationEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/OperationEnum.java deleted file mode 100644 index 296abc31..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/OperationEnum.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/1/5 - */ -@Getter -@RequiredArgsConstructor -public enum OperationEnum { - HANDSHAKE(0), - HANDSHAKE_REPLY(1), - /** - * 心跳包 - */ - HEARTBEAT(2), - /** - * 心跳包回复(人气值) - */ - HEARTBEAT_REPLY(3), - SEND_MSG(4), - - /** - * 普通包(命令) - */ - SEND_SMS_REPLY(5), - DISCONNECT_REPLY(6), - - /** - * 认证包 - */ - AUTH(7), - - /** - * 认证包回复 - */ - AUTH_REPLY(8), - RAW(9), - PROTO_READY(10), - PROTO_FINISH(11), - CHANGE_ROOM(12), - CHANGE_ROOM_REPLY(13), - REGISTER(14), - REGISTER_REPLY(15), - UNREGISTER(16), - UNREGISTER_REPLY(17), - ; - - private final int code; - - public static OperationEnum getByCode(int code) { - for (OperationEnum value : OperationEnum.values()) { - if (value.code == code) { - return value; - } - } - return null; - } - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/ProtoverEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/ProtoverEnum.java deleted file mode 100644 index bee3f2a7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/constant/ProtoverEnum.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/1/5 - */ -@Getter -@RequiredArgsConstructor -public enum ProtoverEnum { - /** - * 普通包正文不使用压缩 - */ - NORMAL_NO_COMPRESSION(0), - /** - * 心跳及认证包正文不使用压缩 - */ - HEARTBEAT_AUTH_NO_COMPRESSION(1), - /** - * 普通包正文使用zlib压缩 - */ - NORMAL_ZLIB(2), - /** - * 普通包正文使用brotli压缩,解压为一个带头部的协议0普通包 - */ - NORMAL_BROTLI(3), - ; - - private final int code; - - - public static ProtoverEnum getByCode(int code) { - for (ProtoverEnum value : ProtoverEnum.values()) { - if (value.code == code) { - return value; - } - } - return null; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/listener/IBilibiliConnectionListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/listener/IBilibiliConnectionListener.java deleted file mode 100644 index 74248b1c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/listener/IBilibiliConnectionListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.listener; - - -import tech.ordinaryroad.live.chat.client.bilibili.netty.handler.BilibiliConnectionHandler; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; - -/** - * 连接回调 - * - * @author mjz - * @date 2023/8/21 - */ -public interface IBilibiliConnectionListener extends IBaseConnectionListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/listener/IBilibiliMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/listener/IBilibiliMsgListener.java deleted file mode 100644 index bb62956b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/listener/IBilibiliMsgListener.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.listener; - -import tech.ordinaryroad.live.chat.client.bilibili.constant.BilibiliCmdEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.*; -import tech.ordinaryroad.live.chat.client.bilibili.netty.handler.BilibiliBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.commons.base.listener.*; - -/** - * @author mjz - * @date 2023/1/7 - */ -public interface IBilibiliMsgListener extends IBaseMsgListener, - IDanmuMsgListener, - IGiftMsgListener, - ISuperChatMsgListener, - IEnterRoomMsgListener, - ILikeMsgListener { - - /** - * 收到礼物 - * - * @param binaryFrameHandler BilibiliBinaryFrameHandler - * @param msg SendSmsReplyMsg - * @deprecated use {@link IGiftMsgListener#onGiftMsg(Object, Object)} - */ - default void onSendGift(BilibiliBinaryFrameHandler binaryFrameHandler, SendSmsReplyMsg msg) { - this.onSendGift(msg); - } - - /** - * @deprecated use {@link IGiftMsgListener#onGiftMsg(Object)} - */ - default void onSendGift(SendSmsReplyMsg msg) { - // ignore - } - - /** - * 普通用户进入直播间 - * - * @param binaryFrameHandler BilibiliBinaryFrameHandler - * @param msg SendSmsReplyMsg - * @deprecated use {@link IEnterRoomMsgListener#onEnterRoomMsg} - */ - default void onEnterRoom(BilibiliBinaryFrameHandler binaryFrameHandler, SendSmsReplyMsg msg) { - this.onEnterRoom(msg); - } - - /** - * @deprecated use {@link IEnterRoomMsgListener#onEnterRoomMsg} - */ - default void onEnterRoom(SendSmsReplyMsg msg) { - // ignore - } - - /** - * 入场效果(高能用户) - * - * @param binaryFrameHandler BilibiliBinaryFrameHandler - * @param sendSmsReplyMsg SendSmsReplyMsg - */ - default void onEntryEffect(BilibiliBinaryFrameHandler binaryFrameHandler, SendSmsReplyMsg sendSmsReplyMsg) { - this.onEntryEffect(sendSmsReplyMsg); - } - - default void onEntryEffect(SendSmsReplyMsg sendSmsReplyMsg) { - // ignore - } - - /** - * 观看人数变化 - * - * @param binaryFrameHandler BilibiliBinaryFrameHandler - * @param msg SendSmsReplyMsg - */ - default void onWatchedChange(BilibiliBinaryFrameHandler binaryFrameHandler, SendSmsReplyMsg msg) { - this.onWatchedChange(msg); - } - - default void onWatchedChange(SendSmsReplyMsg msg) { - // ignore - } - - /** - * 为主播点赞 - * - * @param binaryFrameHandler BilibiliBinaryFrameHandler - * @param msg SendSmsReplyMsg - * @deprecated use {@link ILikeMsgListener#onLikeMsg} - */ - default void onClickLike(BilibiliBinaryFrameHandler binaryFrameHandler, SendSmsReplyMsg msg) { - this.onClickLike(msg); - } - - /** - * @deprecated use {@link ILikeMsgListener#onLikeMsg} - */ - default void onClickLike(SendSmsReplyMsg msg) { - // ignore - } - - /** - * 点赞数更新 - * - * @param binaryFrameHandler BilibiliBinaryFrameHandler - * @param msg SendSmsReplyMsg - */ - default void onClickUpdate(BilibiliBinaryFrameHandler binaryFrameHandler, SendSmsReplyMsg msg) { - this.onClickUpdate(msg); - } - - default void onClickUpdate(SendSmsReplyMsg msg) { - // ignore - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/AuthMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/AuthMsg.java deleted file mode 100644 index 6a30d3b3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/AuthMsg.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@RequiredArgsConstructor -public class AuthMsg extends BaseBilibiliMsg { - - /** - * 用户uid,0代表游客 - */ - private long uid; - - /** - * 房间id room_id,不是短id short_id - * 可以通过将url参数id改为直播地址中的数字来查询房间真实id - * example: https://api.live.bilibili.com/room/v1/Room/room_init?id=6 - */ - private final long roomid; - - /** - * 协议版本 - * - * @see ProtoverEnum#getCode() - */ - private final int protover; - - /** - * 平台标识 - */ - private String platform = "web"; - private int type = 2; - - /** - * 必须字段 - * - * @since 2023-08-19 - */ - private final String buvid; - - /** - * 认证秘钥(必须字段) - * - * @since @since 2023-08-19 - */ - private final String key; - - @Override - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(this.protover); - } - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.AUTH; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/AuthReplyMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/AuthReplyMsg.java deleted file mode 100644 index 5bb76ea1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/AuthReplyMsg.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class AuthReplyMsg extends BaseBilibiliMsg { - - /** - * 0: OK,-101: TOKEN_ERROR - */ - private int code; - - @JsonIgnore - private int protover; - - @Override - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(protover); - } - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.AUTH_REPLY; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/DanmuMsgMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/DanmuMsgMsg.java deleted file mode 100644 index 8bf093c6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/DanmuMsgMsg.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import cn.hutool.core.codec.Base64; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IDanmuMsg; - -/** - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DanmuMsgMsg extends BaseBilibiliMsg implements IDanmuMsg { - - private JsonNode info; - private String dm_v2; - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.SEND_SMS_REPLY; - } - - @Override - public String getBadgeName() { - JsonNode jsonNode3 = info.get(3); - if (jsonNode3.isEmpty()) { - return ""; - } - return jsonNode3.get(1).asText(); - } - - @Override - public byte getBadgeLevel() { - JsonNode jsonNode3 = info.get(3); - if (jsonNode3.isEmpty()) { - return 0; - } - return (byte) jsonNode3.get(0).asInt(); - } - - @Override - public String getUid() { - JsonNode jsonNode2 = info.get(2); - return jsonNode2.get(0).asText(); - } - - @Override - public String getUsername() { - JsonNode jsonNode2 = info.get(2); - return jsonNode2.get(1).asText(); - } - - @Override - public String getUserAvatar() { - String avatar = null; - try { - tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2 dmV2 = tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2.parseFrom(Base64.decode(dm_v2)); - avatar = dmV2.getDmV220().getAvatar(); - } catch (Exception e) { - // ignore - } - return avatar; - } - - @Override - public String getContent() { - JsonNode jsonNode1 = info.get(1); - return jsonNode1.asText(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/HeartbeatMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/HeartbeatMsg.java deleted file mode 100644 index dff52fc0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/HeartbeatMsg.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class HeartbeatMsg extends BaseBilibiliMsg { - - @JsonIgnore - private int protover; - - @Override - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(protover); - } - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.HEARTBEAT; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/HeartbeatReplyMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/HeartbeatReplyMsg.java deleted file mode 100644 index 535aadd1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/HeartbeatReplyMsg.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class HeartbeatReplyMsg extends BaseBilibiliMsg { - - private int popularity; - - @JsonIgnore - private int protover; - - @Override - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(protover); - } - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.HEARTBEAT_REPLY; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/InteractWordMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/InteractWordMsg.java deleted file mode 100644 index 8ef298a8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/InteractWordMsg.java +++ /dev/null @@ -1,396 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IEnterRoomMsg; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author mjz - * @date 2023/12/26 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class InteractWordMsg extends BaseBilibiliMsg implements IEnterRoomMsg { - - private Data data; - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.SEND_SMS_REPLY; - } - - @Override - public String getBadgeName() { - if (data == null || data.fans_medal == null) { - return null; - } - return data.fans_medal.medal_name; - } - - @Override - public byte getBadgeLevel() { - if (data == null || data.fans_medal == null) { - return 0; - } - return data.fans_medal.medal_level; - } - - @Override - public String getUid() { - if (data == null) { - return null; - } - return Long.toString(data.uid); - } - - @Override - public String getUsername() { - if (data == null) { - return null; - } - return data.uname; - } - - @Override - public String getUserAvatar() { - if (data == null || data.uinfo == null || data.uinfo.base == null) { - return null; - } - return data.uinfo.base.face; - } - - @lombok.Data - public static class Data { - - private Contribution contribution; - private Contribution_v2 contribution_v2; - private int core_user_type; - private int dmscore; - private Fans_medal fans_medal; - private String group_medal; - private List identities; - private boolean is_mystery; - private int is_spread; - private int msg_type; - private int privilege_type; - private long roomid; - private long score; - private String spread_desc; - private String spread_info; - private int tail_icon; - private String tail_text; - private long timestamp; - private long trigger_time; - private long uid; - private Uinfo uinfo; - private String uname; - private String uname_color; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Contribution { - - private int grade; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Contribution_v2 { - - private int grade; - private String rank_type; - private String text; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Fans_medal { - - private long anchor_roomid; - private int guard_level; - private int icon_id; - private int is_lighted; - private long medal_color; - private long medal_color_border; - private long medal_color_end; - private long medal_color_start; - private byte medal_level; - private String medal_name; - private long score; - private String special; - private long target_id; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Origin_info { - - private String face; - private String name; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Risk_ctrl_info { - - private String face; - private String name; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Official_info { - - private int role; - private String title; - private String desc; - private int type; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Base { - - private String face; - private boolean is_mystery; - private String name; - private int name_color; - private Origin_info origin_info; - private Risk_ctrl_info risk_ctrl_info; - private Official_info official_info; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Medal { - - private String name; - private int level; - private long color_start; - private long color_end; - private long color_border; - private long color; - private int id; - private int typ; - private int is_light; - private long ruid; - private int guard_level; - private int score; - private String guard_icon; - private String honor_icon; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Guard { - - private int level; - private String expired_str; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - - @lombok.Data - public static class Uinfo { - - private long uid; - private Base base; - private Medal medal; - private String wealth; - private String title; - private Guard guard; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/LikeInfoV3ClickMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/LikeInfoV3ClickMsg.java deleted file mode 100644 index 191aab2a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/LikeInfoV3ClickMsg.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ILikeMsg; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author mjz - * @date 2024/1/31 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LikeInfoV3ClickMsg extends BaseBilibiliMsg implements ILikeMsg { - - private Data data; - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.SEND_SMS_REPLY; - } - - @Override - public String getBadgeName() { - if (this.data == null || this.data.getFans_medal() == null) { - return null; - } - - return this.data.getFans_medal().getMedal_name(); - } - - @Override - public byte getBadgeLevel() { - if (this.data == null || this.data.getFans_medal() == null) { - return 0; - } - - return this.data.getFans_medal().getMedal_level(); - } - - @Override - public String getUid() { - if (this.data == null) { - return null; - } - - return Long.toString(this.data.getUid()); - } - - @Override - public String getUsername() { - if (this.data == null) { - return ""; - } - - return this.data.getUname(); - } - - @Override - public String getUserAvatar() { - if (this.data == null || this.data.getUinfo() == null || this.data.getUinfo().getBase() == null) { - return ""; - } - - return this.data.getUinfo().getBase().getFace(); - } - - @lombok.Data - public static class Data { - - private int show_area; - private int msg_type; - private String like_icon; - private long uid; - private String like_text; - private String uname; - private String uname_color; - private List identities; - private InteractWordMsg.Fans_medal fans_medal; - private Contribution_info contribution_info; - private int dmscore; - private String group_medal; - private boolean is_mystery; - private InteractWordMsg.Uinfo uinfo; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Contribution_info { - - private int grade; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SendGiftMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SendGiftMsg.java deleted file mode 100644 index 8879c8c5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SendGiftMsg.java +++ /dev/null @@ -1,351 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.api.BilibiliApis; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.dto.MedalInfo; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IGiftMsg; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SendGiftMsg extends BaseBilibiliMsg implements IGiftMsg { - - private Data data; - - /** - * 额外属性,获取礼物图片时可能会用到 - */ - private long roomId; - - @Override - public String getBadgeName() { - if (data == null || data.medal_info == null) { - return IGiftMsg.super.getBadgeName(); - } - - return data.medal_info.getMedal_name(); - } - - @Override - public byte getBadgeLevel() { - if (data == null || data.medal_info == null) { - return IGiftMsg.super.getBadgeLevel(); - } - - return data.medal_info.getMedal_level(); - } - - @Override - public String getUid() { - if (this.data == null) { - return null; - } - - return Long.toString(this.data.getUid()); - } - - @Override - public String getUsername() { - if (this.data == null) { - return ""; - } - - return this.data.getUname(); - } - - @Override - public String getUserAvatar() { - if (this.data == null) { - return ""; - } - - return this.data.getFace(); - } - - @Override - public String getGiftName() { - if (this.data == null) { - return "未知礼物"; - } - - return this.data.getGiftName(); - } - - @Override - public String getGiftImg() { - return BilibiliApis.getGiftImgById(this.data.giftId, this.roomId); - } - - @Override - public String getGiftId() { - if (this.data == null) { - return null; - } - - return Long.toString(data.getGiftId()); - } - - @Override - public int getGiftCount() { - if (this.data == null) { - return 0; - } - - return data.getNum(); - } - - @Override - public int getGiftPrice() { - if (this.data == null) { - return -1; - } - - return data.getPrice(); - } - - @Override - public String getReceiveUid() { - if (this.data == null || this.data.getReceive_user_info() == null) { - return null; - } - - return Long.toString(data.getReceive_user_info().getUid()); - } - - @Override - public String getReceiveUsername() { - if (this.data == null || this.data.getReceive_user_info() == null) { - return ""; - } - - return data.getReceive_user_info().getUname(); - } - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.SEND_SMS_REPLY; - } - - @lombok.Data - public static class Data { - - private int draw; - private int gold; - private int silver; - private int num; - private int total_coin; - private int effect; - private int broadcast_id; - private int crit_prob; - private int guard_level; - private long rcost; - private long uid; - private long timestamp; - private int giftId; - private int giftType; - @JsonProperty("super") - private int _super; - private int super_gift_num; - private int super_batch_gift_num; - private int remain; - private int discount_price; - private int price; - private String beatId; - private String biz_source; - private String action; - private String coin_type; - private String uname; - private String face; - private String batch_combo_id; - private String rnd; - private String giftName; - private String original_gift_name; - private Combo_send combo_send; - private Batch_combo_send batch_combo_send; - private String tag_image; - private String top_list; - private String send_master; - private boolean is_first; - private int demarcation; - private int combo_stay_time; - private int combo_total_coin; - private String tid; - private int effect_block; - private int is_special_batch; - private int combo_resources_id; - private int magnification; - private String name_color; - private MedalInfo medal_info; - private int svga_block; - private JsonNode blind_gift; - private int float_sc_resource_id; - @JsonProperty("switch") - private boolean _switch; - private int face_effect_type; - private int face_effect_id; - private boolean is_naming; - private Receive_user_info receive_user_info; - private boolean is_join_receiver; - private Bag_gift bag_gift; - private int wealth_level; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Combo_send { - - private long uid; - private int gift_num; - private int combo_num; - private int gift_id; - private String combo_id; - private String gift_name; - private String action; - private String uname; - private String send_master; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Receive_user_info { - - private String uname; - private long uid; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Batch_combo_send { - - private long uid; - private int gift_num; - private int batch_combo_num; - private int gift_id; - private String batch_combo_id; - private String gift_name; - private String action; - private String uname; - private String send_master; - private JsonNode blind_gift; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Bag_gift { - - private int show_price; - private int price_for_show; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SendSmsReplyMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SendSmsReplyMsg.java deleted file mode 100644 index ae2c52d9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SendSmsReplyMsg.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliCmdMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SendSmsReplyMsg extends BaseBilibiliCmdMsg { - - private Long id; - - private String name; - - private JsonNode full; - - private JsonNode half; - - private JsonNode side; - - private JsonNode data; - - private JsonNode info; - - private JsonNode msg_common; - - private JsonNode msg_self; - - private JsonNode link_url; - - private JsonNode msg_type; - - private JsonNode shield_uid; - - private JsonNode business_id; - - private JsonNode scatter; - - private long roomid; - - private long real_roomid; - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.SEND_SMS_REPLY; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SuperChatMessageMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SuperChatMessageMsg.java deleted file mode 100644 index 1842b78c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/SuperChatMessageMsg.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package tech.ordinaryroad.live.chat.client.bilibili.msg; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.dto.MedalInfo; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ISuperChatMsg; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/9/24 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SuperChatMessageMsg extends BaseBilibiliMsg implements ISuperChatMsg { - - private long roomid; - private Data data; - - @Override - public OperationEnum getOperationEnum() { - return OperationEnum.SEND_SMS_REPLY; - } - - @Override - public String getUid() { - if (this.data == null) { - return null; - } - - return Long.toString(this.data.uid); - } - - @Override - public String getUsername() { - if (this.data == null || this.data.getUser_info() == null) { - return ""; - } - - return this.data.user_info.uname; - } - - @Override - public String getUserAvatar() { - if (this.data == null || this.data.getUser_info() == null) { - return ""; - } - - return this.data.user_info.face; - } - - @Override - public String getContent() { - if (this.data == null) { - return ""; - } - - return this.data.message; - } - - @Override - public int getDuration() { - if (this.data == null) { - return 0; - } - - return this.data.time; - } - - @lombok.Data - public static class Data { - private String background_bottom_color; - private String background_color; - private String background_color_end; - private String background_color_start; - private String background_icon; - private String background_image; - private String background_price_color; - private double color_point; - private int dmscore; - private long end_time; - private Gift gift; - private long id; - private int is_ranked; - private int is_send_audit; - private MedalInfo medal_info; - private String message; - private String message_font_color; - private String message_trans; - private int price; - private int rate; - private long start_time; - private int time; - private String token; - private int trans_mark; - private long ts; - private long uid; - private User_info user_info; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class Gift { - private int gift_id; - private String gift_name; - private int num; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @lombok.Data - public static class User_info { - private String face; - private String face_frame; - private int guard_level; - private int is_main_vip; - private int is_svip; - private int is_vip; - private String level_color; - private int manager; - private String name_color; - private String title; - private String uname; - private int user_level; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/BaseBilibiliCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/BaseBilibiliCmdMsg.java deleted file mode 100644 index 5dd624f4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/BaseBilibiliCmdMsg.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg.base; - - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.BilibiliCmdEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseCmdMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public abstract class BaseBilibiliCmdMsg extends BaseCmdMsg implements IBilibiliMsg { - - private int protover; - private String cmd; - - @Override - public String getCmd() { - return this.cmd; - } - - @Override - public void setCmd(String cmd) { - this.cmd = cmd; - } - - @Override - public BilibiliCmdEnum getCmdEnum() { - return BilibiliCmdEnum.getByString(getCmd()); - } - - @Override - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(this.protover); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/BaseBilibiliMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/BaseBilibiliMsg.java deleted file mode 100644 index 16ca652d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/BaseBilibiliMsg.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg.base; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public abstract class BaseBilibiliMsg extends BaseMsg implements IBilibiliMsg { - - private int protover; - - @Override - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(protover); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/IBilibiliMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/IBilibiliMsg.java deleted file mode 100644 index ff12eedf..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/base/IBilibiliMsg.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg.base; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; - -/** - * @author mjz - * @date 2023/8/26 - */ -public interface IBilibiliMsg extends IMsg { - - @JsonIgnore - ProtoverEnum getProtoverEnum(); - - @JsonIgnore - OperationEnum getOperationEnum(); - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/dto/MedalInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/dto/MedalInfo.java deleted file mode 100644 index 15cd17a3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/msg/dto/MedalInfo.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.msg.dto; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.Data; - -import java.util.HashMap; -import java.util.Map; - -@Data -public class MedalInfo { - - private long target_id; - private String special; - private int icon_id; - private String anchor_uname; - private int anchor_roomid; - private byte medal_level; - private String medal_name; - private String medal_color; - private long medal_color_start; - private long medal_color_end; - private long medal_color_border; - private int is_lighted; - private int guard_level; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/AuthWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/AuthWebSocketFrame.java deleted file mode 100644 index c6436e28..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/AuthWebSocketFrame.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.netty.frame; - -import io.netty.buffer.ByteBuf; -import tech.ordinaryroad.live.chat.client.bilibili.netty.frame.base.BaseBilibiliWebSocketFrame; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class AuthWebSocketFrame extends BaseBilibiliWebSocketFrame { - - public AuthWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/HeartbeatWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/HeartbeatWebSocketFrame.java deleted file mode 100644 index f2abecfc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/HeartbeatWebSocketFrame.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.netty.frame; - -import io.netty.buffer.ByteBuf; -import tech.ordinaryroad.live.chat.client.bilibili.netty.frame.base.BaseBilibiliWebSocketFrame; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class HeartbeatWebSocketFrame extends BaseBilibiliWebSocketFrame { - - public HeartbeatWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/base/BaseBilibiliWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/base/BaseBilibiliWebSocketFrame.java deleted file mode 100644 index a3556f6c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/base/BaseBilibiliWebSocketFrame.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.netty.frame.base; - -import io.netty.buffer.ByteBuf; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; - -/** - * 实现Bilibili协议的BinaryWebSocketFrame - * 数据包格式 - * - * @author mjz - * @date 2023/1/5 - */ -public abstract class BaseBilibiliWebSocketFrame extends BinaryWebSocketFrame { - - public static int sequence = 0; - - public ProtoverEnum getProtoverEnum() { - return ProtoverEnum.getByCode(super.content().getShort(6)); - } - - public OperationEnum getOperationEnum() { - return OperationEnum.getByCode(super.content().getInt(8)); - } - - public BaseBilibiliWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/factory/BilibiliWebSocketFrameFactory.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/factory/BilibiliWebSocketFrameFactory.java deleted file mode 100644 index 63e62d75..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/frame/factory/BilibiliWebSocketFrameFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.netty.frame.factory; - -import cn.hutool.core.lang.UUID; -import cn.hutool.core.util.NumberUtil; -import com.fasterxml.jackson.databind.JsonNode; -import tech.ordinaryroad.live.chat.client.bilibili.api.BilibiliApis; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.AuthMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.HeartbeatMsg; -import tech.ordinaryroad.live.chat.client.bilibili.netty.frame.AuthWebSocketFrame; -import tech.ordinaryroad.live.chat.client.bilibili.netty.frame.HeartbeatWebSocketFrame; -import tech.ordinaryroad.live.chat.client.bilibili.util.BilibiliCodecUtil; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatCookieUtil; - -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class BilibiliWebSocketFrameFactory { - - private static final ConcurrentHashMap CACHE = new ConcurrentHashMap<>(); - - /** - * 浏览器地址中的房间id,支持短id - */ - private final long roomId; - private volatile static HeartbeatMsg heartbeatMsg; - - public BilibiliWebSocketFrameFactory(long roomId) { - this.roomId = roomId; - } - - public synchronized static BilibiliWebSocketFrameFactory getInstance(long roomId) { - return CACHE.computeIfAbsent(roomId, aLong -> new BilibiliWebSocketFrameFactory(roomId)); - } - - /** - * 创建认证包 - * - * @param protover {@link ProtoverEnum} - * @param cookie 浏览器cookie,仅用来维持登录状态 - * @return AuthWebSocketFrame - */ - public AuthWebSocketFrame createAuth(ProtoverEnum protover, String cookie) { - try { - Map cookieMap = OrLiveChatCookieUtil.parseCookieString(cookie); - String buvid3 = OrLiveChatCookieUtil.getCookieByName(cookieMap, "buvid3", () -> UUID.randomUUID().toString()); - String uid = OrLiveChatCookieUtil.getCookieByName(cookieMap, "DedeUserID", () -> "0"); - BilibiliApis.RoomInitResult data = BilibiliApis.roomInit(roomId, cookie); - JsonNode danmuInfo = BilibiliApis.getDanmuInfo(roomId, 0, cookie); - long realRoomId = data.getRoom_id(); - AuthMsg authMsg = new AuthMsg(realRoomId, protover.getCode(), buvid3, danmuInfo.get("token").asText()); - authMsg.setUid(NumberUtil.parseLong(uid)); - return new AuthWebSocketFrame(BilibiliCodecUtil.encode(authMsg)); - } catch (Exception e) { - throw new BaseException(String.format("认证包创建失败,请检查房间号是否正确。roomId: %d, msg: %s", roomId, e.getMessage())); - } - } - - public AuthWebSocketFrame createAuth(ProtoverEnum protover) { - return this.createAuth(protover, null); - } - - public HeartbeatWebSocketFrame createHeartbeat(ProtoverEnum protover) { - return new HeartbeatWebSocketFrame(BilibiliCodecUtil.encode(this.getHeartbeatMsg(protover))); - } - - /** - * 心跳包单例模式 - * - * @param protover {@link ProtoverEnum} - * @return HeartbeatWebSocketFrame - */ - public HeartbeatMsg getHeartbeatMsg(ProtoverEnum protover) { - if (heartbeatMsg == null) { - synchronized (BilibiliWebSocketFrameFactory.this) { - if (heartbeatMsg == null) { - heartbeatMsg = new HeartbeatMsg(protover.getCode()); - } - } - } - return heartbeatMsg; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/handler/BilibiliBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/handler/BilibiliBinaryFrameHandler.java deleted file mode 100644 index d79efd03..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/handler/BilibiliBinaryFrameHandler.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.netty.handler; - -import cn.hutool.core.util.StrUtil; -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandler; -import lombok.SneakyThrows; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.bilibili.client.BilibiliLiveChatClient; -import tech.ordinaryroad.live.chat.client.bilibili.constant.BilibiliCmdEnum; -import tech.ordinaryroad.live.chat.client.bilibili.listener.IBilibiliMsgListener; -import tech.ordinaryroad.live.chat.client.bilibili.msg.*; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.IBilibiliMsg; -import tech.ordinaryroad.live.chat.client.bilibili.util.BilibiliCodecUtil; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientBinaryFrameHandler; - -import java.util.List; - - -/** - * 消息处理器 - * - * @author mjz - * @date 2023/1/4 - */ -@Slf4j -@ChannelHandler.Sharable -public class BilibiliBinaryFrameHandler extends BaseNettyClientBinaryFrameHandler { - - public BilibiliBinaryFrameHandler(List msgListeners, BilibiliLiveChatClient client) { - super(msgListeners, client); - } - - public BilibiliBinaryFrameHandler(List msgListeners, long roomId) { - super(msgListeners, roomId); - } - - @SneakyThrows - @Override - public void onCmdMsg(BilibiliCmdEnum cmd, ICmdMsg cmdMsg) { - if (super.msgListeners.isEmpty()) { - return; - } - - SendSmsReplyMsg sendSmsReplyMsg = (SendSmsReplyMsg) cmdMsg; - switch (cmd) { - case DANMU_MSG: { - DanmuMsgMsg danmuMsgMsg = new DanmuMsgMsg(); - danmuMsgMsg.setProtover(sendSmsReplyMsg.getProtover()); - danmuMsgMsg.setInfo(sendSmsReplyMsg.getInfo()); - danmuMsgMsg.setDm_v2(StrUtil.toStringOrNull(sendSmsReplyMsg.getUnknownProperties().get("dm_v2"))); - iteratorMsgListeners(msgListener -> msgListener.onDanmuMsg(BilibiliBinaryFrameHandler.this, danmuMsgMsg)); - break; - } - - case SEND_GIFT: { - SendGiftMsg sendGiftMsg = new SendGiftMsg(); - sendGiftMsg.setRoomId(getRoomIdAsLong()); - sendGiftMsg.setProtover(sendSmsReplyMsg.getProtover()); - SendGiftMsg.Data data = BaseBilibiliMsg.OBJECT_MAPPER.treeToValue(sendSmsReplyMsg.getData(), SendGiftMsg.Data.class); - sendGiftMsg.setData(data); - iteratorMsgListeners(msgListener -> { - msgListener.onGiftMsg(BilibiliBinaryFrameHandler.this, sendGiftMsg); - msgListener.onSendGift(BilibiliBinaryFrameHandler.this, sendSmsReplyMsg); - }); - break; - } - - case SUPER_CHAT_MESSAGE: { - SuperChatMessageMsg superChatMessageMsg = new SuperChatMessageMsg(); - superChatMessageMsg.setProtover(sendSmsReplyMsg.getProtover()); - superChatMessageMsg.setRoomid(sendSmsReplyMsg.getRoomid()); - SuperChatMessageMsg.Data data = BaseBilibiliMsg.OBJECT_MAPPER.treeToValue(sendSmsReplyMsg.getData(), SuperChatMessageMsg.Data.class); - superChatMessageMsg.setData(data); - iteratorMsgListeners(msgListener -> msgListener.onSuperChatMsg(BilibiliBinaryFrameHandler.this, superChatMessageMsg)); - break; - } - - case INTERACT_WORD: { - InteractWordMsg interactWordMsg = new InteractWordMsg(); - interactWordMsg.setProtover(sendSmsReplyMsg.getProtover()); - InteractWordMsg.Data data = BaseBilibiliMsg.OBJECT_MAPPER.treeToValue(sendSmsReplyMsg.getData(), InteractWordMsg.Data.class); - interactWordMsg.setData(data); - iteratorMsgListeners(msgListener -> { - msgListener.onEnterRoomMsg(BilibiliBinaryFrameHandler.this, interactWordMsg); - msgListener.onEnterRoom(BilibiliBinaryFrameHandler.this, sendSmsReplyMsg); - }); - break; - } - - case ENTRY_EFFECT: { - iteratorMsgListeners(msgListener -> msgListener.onEntryEffect(BilibiliBinaryFrameHandler.this, sendSmsReplyMsg)); - break; - } - - case WATCHED_CHANGE: { - iteratorMsgListeners(msgListener -> msgListener.onWatchedChange(BilibiliBinaryFrameHandler.this, sendSmsReplyMsg)); - break; - } - - case LIKE_INFO_V3_CLICK: { - LikeInfoV3ClickMsg likeInfoV3ClickMsg = new LikeInfoV3ClickMsg(); - likeInfoV3ClickMsg.setProtover(sendSmsReplyMsg.getProtover()); - LikeInfoV3ClickMsg.Data data = BaseBilibiliMsg.OBJECT_MAPPER.treeToValue(sendSmsReplyMsg.getData(), LikeInfoV3ClickMsg.Data.class); - likeInfoV3ClickMsg.setData(data); - iteratorMsgListeners(msgListener -> { - msgListener.onLikeMsg(BilibiliBinaryFrameHandler.this, likeInfoV3ClickMsg); - msgListener.onClickLike(BilibiliBinaryFrameHandler.this, sendSmsReplyMsg); - }); - break; - } - - case LIKE_INFO_V3_UPDATE: { - iteratorMsgListeners(msgListener -> msgListener.onClickUpdate(BilibiliBinaryFrameHandler.this, sendSmsReplyMsg)); - break; - } - - default: { - iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(BilibiliBinaryFrameHandler.this, cmd, cmdMsg)); - } - } - } - - @Override - protected List decode(ByteBuf byteBuf) { - return BilibiliCodecUtil.decode(byteBuf); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/handler/BilibiliConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/handler/BilibiliConnectionHandler.java deleted file mode 100644 index 8bd886ec..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/netty/handler/BilibiliConnectionHandler.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.netty.handler; - -import io.netty.channel.Channel; -import io.netty.channel.ChannelFutureListener; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.bilibili.client.BilibiliLiveChatClient; -import tech.ordinaryroad.live.chat.client.bilibili.config.BilibiliLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.netty.frame.factory.BilibiliWebSocketFrameFactory; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler; - - -/** - * 连接处理器 - * - * @author mjz - * @date 2023/8/21 - */ -@Slf4j -@ChannelHandler.Sharable -public class BilibiliConnectionHandler extends BaseNettyClientConnectionHandler { - - /** - * 以ClientConfig为主 - */ - private final long roomId; - /** - * 以ClientConfig为主 - */ - private final ProtoverEnum protover; - /** - * 以ClientConfig为主 - */ - private String cookie; - - public BilibiliConnectionHandler(WebSocketClientHandshaker handshaker, BilibiliLiveChatClient client, IBaseConnectionListener listener) { - super(handshaker, client, listener); - this.roomId = client.getConfig().getRoomId(); - this.protover = client.getConfig().getProtover(); - this.cookie = client.getConfig().getCookie(); - } - - public BilibiliConnectionHandler(WebSocketClientHandshaker handshaker, BilibiliLiveChatClient client) { - this(handshaker, client, null); - } - - public BilibiliConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, ProtoverEnum protover, IBaseConnectionListener listener, String cookie) { - super(handshaker, listener); - this.roomId = roomId; - this.protover = protover; - this.cookie = cookie; - } - - public BilibiliConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, ProtoverEnum protover, IBaseConnectionListener listener) { - this(handshaker, roomId, protover, listener, null); - } - - public BilibiliConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, ProtoverEnum protover, String cookie) { - this(handshaker, roomId, protover, null, cookie); - } - - public BilibiliConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, ProtoverEnum protover) { - this(handshaker, roomId, protover, null, null); - } - - @Override - protected void sendHeartbeat(ChannelHandlerContext ctx) { - if (log.isDebugEnabled()) { - log.debug("发送心跳包"); - } - ctx.writeAndFlush( - getWebSocketFrameFactory(getRoomId()).createHeartbeat(getProtover()) - ).addListener((ChannelFutureListener) future -> { - if (future.isSuccess()) { - if (log.isDebugEnabled()) { - log.debug("心跳包发送完成"); - } - } else { - log.error("心跳包发送失败", future.cause()); - } - }); - } - - private static BilibiliWebSocketFrameFactory getWebSocketFrameFactory(long roomId) { - return BilibiliWebSocketFrameFactory.getInstance(roomId); - } - - @Override - public void sendAuthRequest(Channel channel) { - // 5s内认证 - if (log.isDebugEnabled()) { - log.debug("发送认证包"); - } - channel.writeAndFlush(getWebSocketFrameFactory(getRoomId()).createAuth(getProtover(), getCookie())); - } - - public long getRoomId() { - return client != null ? client.getConfig().getRoomId() : roomId; - } - - private ProtoverEnum getProtover() { - return client != null ? client.getConfig().getProtover() : protover; - } - - private String getCookie() { - return client != null ? client.getConfig().getCookie() : cookie; - } - - @Override - protected long getHeartbeatPeriod() { - if (client == null) { - return BilibiliLiveChatClientConfig.DEFAULT_HEARTBEAT_PERIOD; - } else { - return client.getConfig().getHeartbeatPeriod(); - } - } - - @Override - protected long getHeartbeatInitialDelay() { - if (client == null) { - return BilibiliLiveChatClientConfig.DEFAULT_HEARTBEAT_INITIAL_DELAY; - } else { - return client.getConfig().getHeartbeatInitialDelay(); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/Dm_v2Proto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/Dm_v2Proto.java deleted file mode 100644 index 5666f45a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/Dm_v2Proto.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dm_v2.proto - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -public final class Dm_v2Proto { - private Dm_v2Proto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - String[] descriptorData = { - "\n\013dm_v2.proto\0224tech.ordinaryroad.live.ch" + - "at.client.bilibili.protobuf\032\016dm_v2_20.pr" + - "oto\"Y\n\005dm_v2\022P\n\010dm_v2_20\030\024 \001(\0132>.tech.or" + - "dinaryroad.live.chat.client.bilibili.pro" + - "tobuf.dm_v2_20BJ\n4tech.ordinaryroad.live" + - ".chat.client.bilibili.protobufB\nDm_v2Pro" + - "toP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - Dm_v2_20Proto.getDescriptor(), - }); - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor, - new String[] { "DmV220", }); - Dm_v2_20Proto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/Dm_v2_20Proto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/Dm_v2_20Proto.java deleted file mode 100644 index fab53e09..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/Dm_v2_20Proto.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dm_v2_20.proto - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -public final class Dm_v2_20Proto { - private Dm_v2_20Proto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - String[] descriptorData = { - "\n\016dm_v2_20.proto\0224tech.ordinaryroad.live" + - ".chat.client.bilibili.protobuf\"\032\n\010dm_v2_" + - "20\022\016\n\006avatar\030\004 \001(\tBM\n4tech.ordinaryroad." + - "live.chat.client.bilibili.protobufB\rDm_v" + - "2_20ProtoP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_descriptor, - new String[] { "Avatar", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2.java deleted file mode 100644 index 97292775..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2.java +++ /dev/null @@ -1,610 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dm_v2.proto - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2} - */ -public final class dm_v2 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) - dm_v2OrBuilder { -private static final long serialVersionUID = 0L; - // Use dm_v2.newBuilder() to construct. - private dm_v2(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private dm_v2() { - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new dm_v2(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - dm_v2.class, Builder.class); - } - - public static final int DM_V2_20_FIELD_NUMBER = 20; - private dm_v2_20 dmV220_; - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - * @return Whether the dmV220 field is set. - */ - @Override - public boolean hasDmV220() { - return dmV220_ != null; - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - * @return The dmV220. - */ - @Override - public dm_v2_20 getDmV220() { - return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - @Override - public dm_v2_20OrBuilder getDmV220OrBuilder() { - return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dmV220_ != null) { - output.writeMessage(20, getDmV220()); - } - getUnknownFields().writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dmV220_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getDmV220()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof dm_v2)) { - return super.equals(obj); - } - dm_v2 other = (dm_v2) obj; - - if (hasDmV220() != other.hasDmV220()) return false; - if (hasDmV220()) { - if (!getDmV220() - .equals(other.getDmV220())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDmV220()) { - hash = (37 * hash) + DM_V2_20_FIELD_NUMBER; - hash = (53 * hash) + getDmV220().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static dm_v2 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static dm_v2 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static dm_v2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static dm_v2 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static dm_v2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static dm_v2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static dm_v2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static dm_v2 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static dm_v2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static dm_v2 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static dm_v2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static dm_v2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(dm_v2 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) - dm_v2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - dm_v2.class, Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2.newBuilder() - private Builder() { - - } - - private Builder( - BuilderParent parent) { - super(parent); - - } - @Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dmV220_ = null; - if (dmV220Builder_ != null) { - dmV220Builder_.dispose(); - dmV220Builder_ = null; - } - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return Dm_v2Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_descriptor; - } - - @Override - public dm_v2 getDefaultInstanceForType() { - return dm_v2.getDefaultInstance(); - } - - @Override - public dm_v2 build() { - dm_v2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public dm_v2 buildPartial() { - dm_v2 result = new dm_v2(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(dm_v2 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dmV220_ = dmV220Builder_ == null - ? dmV220_ - : dmV220Builder_.build(); - } - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof dm_v2) { - return mergeFrom((dm_v2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(dm_v2 other) { - if (other == dm_v2.getDefaultInstance()) return this; - if (other.hasDmV220()) { - mergeDmV220(other.getDmV220()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 162: { - input.readMessage( - getDmV220FieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 162 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private dm_v2_20 dmV220_; - private com.google.protobuf.SingleFieldBuilderV3< - dm_v2_20, dm_v2_20.Builder, dm_v2_20OrBuilder> dmV220Builder_; - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - * @return Whether the dmV220 field is set. - */ - public boolean hasDmV220() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - * @return The dmV220. - */ - public dm_v2_20 getDmV220() { - if (dmV220Builder_ == null) { - return dmV220_ == null ? dm_v2_20.getDefaultInstance() : dmV220_; - } else { - return dmV220Builder_.getMessage(); - } - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - public Builder setDmV220(dm_v2_20 value) { - if (dmV220Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dmV220_ = value; - } else { - dmV220Builder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - public Builder setDmV220( - dm_v2_20.Builder builderForValue) { - if (dmV220Builder_ == null) { - dmV220_ = builderForValue.build(); - } else { - dmV220Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - public Builder mergeDmV220(dm_v2_20 value) { - if (dmV220Builder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dmV220_ != null && - dmV220_ != dm_v2_20.getDefaultInstance()) { - getDmV220Builder().mergeFrom(value); - } else { - dmV220_ = value; - } - } else { - dmV220Builder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - public Builder clearDmV220() { - bitField0_ = (bitField0_ & ~0x00000001); - dmV220_ = null; - if (dmV220Builder_ != null) { - dmV220Builder_.dispose(); - dmV220Builder_ = null; - } - onChanged(); - return this; - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - public dm_v2_20.Builder getDmV220Builder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDmV220FieldBuilder().getBuilder(); - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - public dm_v2_20OrBuilder getDmV220OrBuilder() { - if (dmV220Builder_ != null) { - return dmV220Builder_.getMessageOrBuilder(); - } else { - return dmV220_ == null ? - dm_v2_20.getDefaultInstance() : dmV220_; - } - } - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - dm_v2_20, dm_v2_20.Builder, dm_v2_20OrBuilder> - getDmV220FieldBuilder() { - if (dmV220Builder_ == null) { - dmV220Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - dm_v2_20, dm_v2_20.Builder, dm_v2_20OrBuilder>( - getDmV220(), - getParentForChildren(), - isClean()); - dmV220_ = null; - } - return dmV220Builder_; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) - private static final dm_v2 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new dm_v2(); - } - - public static dm_v2 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public dm_v2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public dm_v2 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2OrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2OrBuilder.java deleted file mode 100644 index f219e9e3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2OrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dm_v2.proto - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -public interface dm_v2OrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2) - com.google.protobuf.MessageOrBuilder { - - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - * @return Whether the dmV220 field is set. - */ - boolean hasDmV220(); - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - * @return The dmV220. - */ - dm_v2_20 getDmV220(); - /** - * .tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20 dm_v2_20 = 20; - */ - dm_v2_20OrBuilder getDmV220OrBuilder(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2_20.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2_20.java deleted file mode 100644 index a10e7d3e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2_20.java +++ /dev/null @@ -1,565 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dm_v2_20.proto - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20} - */ -public final class dm_v2_20 extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20) - dm_v2_20OrBuilder { -private static final long serialVersionUID = 0L; - // Use dm_v2_20.newBuilder() to construct. - private dm_v2_20(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private dm_v2_20() { - avatar_ = ""; - } - - @Override - @SuppressWarnings({"unused"}) - protected Object newInstance( - UnusedPrivateParameter unused) { - return new dm_v2_20(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return Dm_v2_20Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return Dm_v2_20Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_fieldAccessorTable - .ensureFieldAccessorsInitialized( - dm_v2_20.class, Builder.class); - } - - public static final int AVATAR_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile Object avatar_ = ""; - /** - * string avatar = 4; - * @return The avatar. - */ - @Override - public String getAvatar() { - Object ref = avatar_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - avatar_ = s; - return s; - } - } - /** - * string avatar = 4; - * @return The bytes for avatar. - */ - @Override - public com.google.protobuf.ByteString - getAvatarBytes() { - Object ref = avatar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - avatar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatar_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, avatar_); - } - getUnknownFields().writeTo(output); - } - - @Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avatar_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, avatar_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @Override - public boolean equals(final Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof dm_v2_20)) { - return super.equals(obj); - } - dm_v2_20 other = (dm_v2_20) obj; - - if (!getAvatar() - .equals(other.getAvatar())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AVATAR_FIELD_NUMBER; - hash = (53 * hash) + getAvatar().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static dm_v2_20 parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static dm_v2_20 parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static dm_v2_20 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static dm_v2_20 parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static dm_v2_20 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static dm_v2_20 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static dm_v2_20 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static dm_v2_20 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static dm_v2_20 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static dm_v2_20 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static dm_v2_20 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static dm_v2_20 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(dm_v2_20 prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @Override - protected Builder newBuilderForType( - BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20) - dm_v2_20OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return Dm_v2_20Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_descriptor; - } - - @Override - protected FieldAccessorTable - internalGetFieldAccessorTable() { - return Dm_v2_20Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_fieldAccessorTable - .ensureFieldAccessorsInitialized( - dm_v2_20.class, Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20.newBuilder() - private Builder() { - - } - - private Builder( - BuilderParent parent) { - super(parent); - - } - @Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - avatar_ = ""; - return this; - } - - @Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return Dm_v2_20Proto.internal_static_tech_ordinaryroad_live_chat_client_bilibili_protobuf_dm_v2_20_descriptor; - } - - @Override - public dm_v2_20 getDefaultInstanceForType() { - return dm_v2_20.getDefaultInstance(); - } - - @Override - public dm_v2_20 build() { - dm_v2_20 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @Override - public dm_v2_20 buildPartial() { - dm_v2_20 result = new dm_v2_20(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(dm_v2_20 result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.avatar_ = avatar_; - } - } - - @Override - public Builder clone() { - return super.clone(); - } - @Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.setField(field, value); - } - @Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { - return super.setRepeatedField(field, index, value); - } - @Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { - return super.addRepeatedField(field, value); - } - @Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof dm_v2_20) { - return mergeFrom((dm_v2_20)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(dm_v2_20 other) { - if (other == dm_v2_20.getDefaultInstance()) return this; - if (!other.getAvatar().isEmpty()) { - avatar_ = other.avatar_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @Override - public final boolean isInitialized() { - return true; - } - - @Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: { - avatar_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private Object avatar_ = ""; - /** - * string avatar = 4; - * @return The avatar. - */ - public String getAvatar() { - Object ref = avatar_; - if (!(ref instanceof String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - avatar_ = s; - return s; - } else { - return (String) ref; - } - } - /** - * string avatar = 4; - * @return The bytes for avatar. - */ - public com.google.protobuf.ByteString - getAvatarBytes() { - Object ref = avatar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); - avatar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string avatar = 4; - * @param value The avatar to set. - * @return This builder for chaining. - */ - public Builder setAvatar( - String value) { - if (value == null) { throw new NullPointerException(); } - avatar_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string avatar = 4; - * @return This builder for chaining. - */ - public Builder clearAvatar() { - avatar_ = getDefaultInstance().getAvatar(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string avatar = 4; - * @param value The bytes for avatar to set. - * @return This builder for chaining. - */ - public Builder setAvatarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - avatar_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20) - private static final dm_v2_20 DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new dm_v2_20(); - } - - public static dm_v2_20 getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @Override - public dm_v2_20 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @Override - public dm_v2_20 getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2_20OrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2_20OrBuilder.java deleted file mode 100644 index d6345678..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/protobuf/dm_v2_20OrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dm_v2_20.proto - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -public interface dm_v2_20OrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.bilibili.protobuf.dm_v2_20) - com.google.protobuf.MessageOrBuilder { - - /** - * string avatar = 4; - * @return The avatar. - */ - String getAvatar(); - /** - * string avatar = 4; - * @return The bytes for avatar. - */ - com.google.protobuf.ByteString - getAvatarBytes(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/util/BilibiliCodecUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/util/BilibiliCodecUtil.java deleted file mode 100644 index 9841cae7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/java/tech/ordinaryroad/live/chat/client/bilibili/util/BilibiliCodecUtil.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.util; - -import cn.hutool.core.util.StrUtil; -import com.aayushatharva.brotli4j.Brotli4jLoader; -import com.aayushatharva.brotli4j.decoder.BrotliInputStream; -import com.fasterxml.jackson.core.JsonProcessingException; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.Unpooled; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.bilibili.constant.OperationEnum; -import tech.ordinaryroad.live.chat.client.bilibili.constant.ProtoverEnum; -import tech.ordinaryroad.live.chat.client.bilibili.msg.AuthReplyMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.HeartbeatMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.HeartbeatReplyMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.SendSmsReplyMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.BaseBilibiliMsg; -import tech.ordinaryroad.live.chat.client.bilibili.msg.base.IBilibiliMsg; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.math.BigInteger; -import java.nio.charset.StandardCharsets; -import java.util.*; -import java.util.zip.DataFormatException; -import java.util.zip.Inflater; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Slf4j -public class BilibiliCodecUtil { - - public static int sequence = 0; - - public static final short FRAME_HEADER_LENGTH = 16; - - public static ByteBuf encode(BaseBilibiliMsg msg) { - ByteBuf out = Unpooled.buffer(FRAME_HEADER_LENGTH); - String bodyJsonString = StrUtil.EMPTY; - // HeartbeatMsg不需要正文,如果序列化后得到`{}`,则替换为空字符串 - if (!(msg instanceof HeartbeatMsg)) { - bodyJsonString = msg.toString(); - if (StrUtil.EMPTY_JSON.equals(bodyJsonString)) { - bodyJsonString = StrUtil.EMPTY; - } - } - byte[] bodyBytes = bodyJsonString.getBytes(StandardCharsets.UTF_8); - int length = bodyBytes.length + FRAME_HEADER_LENGTH; - out.writeInt(length); - out.writeShort(FRAME_HEADER_LENGTH); - out.writeShort(msg.getProtoverEnum().getCode()); - out.writeInt(msg.getOperationEnum().getCode()); - out.writeInt(sequence++); - out.writeBytes(bodyBytes); - return out; - } - - public static List decode(ByteBuf in) { - List msgList = new ArrayList<>(); - Queue pendingByteBuf = new LinkedList<>(); - - do { - Optional msg = doDecode(in, pendingByteBuf); - msg.ifPresent(msgList::add); - in = pendingByteBuf.poll(); - } while (in != null); - - return msgList; - } - - /** - * 执行解码操作,有压缩则先解压,解压后可能得到多条消息 - * - * @param in handler收到的一条消息 - * @param pendingByteBuf 用于存放未读取完的ByteBuf - * @return Optional 何时为空值:不支持的{@link OperationEnum},不支持的{@link ProtoverEnum},{@link #parse(OperationEnum, String)}反序列化失败 - * @see OperationEnum - * @see ProtoverEnum - */ - private static Optional doDecode(ByteBuf in, Queue pendingByteBuf) { - int length = in.readInt(); - short frameHeaderLength = in.readShort(); - short protoverCode = in.readShort(); - int operationCode = in.readInt(); - int sequence = in.readInt(); - int contentLength = length - frameHeaderLength; - byte[] inputBytes = new byte[contentLength]; - in.readBytes(inputBytes); - if (in.readableBytes() != 0) { - // log.error("in.readableBytes() {}", in.readableBytes()); - pendingByteBuf.offer(in); - } - - OperationEnum operationEnum = OperationEnum.getByCode(operationCode); - if (operationEnum == null) { - throw new BaseException(String.format("未知operation: %d", operationCode)); - } - if (protoverCode == ProtoverEnum.NORMAL_ZLIB.getCode()) { - switch (operationEnum) { - case SEND_SMS_REPLY: { - // Decompress the bytes - Inflater inflater = new Inflater(); - inflater.reset(); - inflater.setInput(inputBytes); - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(contentLength); - try { - byte[] bytes = new byte[1024]; - while (!inflater.finished()) { - int count = inflater.inflate(bytes); - byteArrayOutputStream.write(bytes, 0, count); - } - } catch (DataFormatException e) { - throw new BaseException(e); - } - inflater.end(); - - return doDecode(Unpooled.wrappedBuffer(byteArrayOutputStream.toByteArray()), pendingByteBuf); - } - case HEARTBEAT_REPLY: { - BigInteger bigInteger = new BigInteger(inputBytes); - return parse(operationEnum, String.format("{\"popularity\":%d}", bigInteger)); - } - default: { - String s = new String(inputBytes, StandardCharsets.UTF_8); - return parse(operationEnum, s); - } - } - } else if (protoverCode == ProtoverEnum.NORMAL_NO_COMPRESSION.getCode()) { - switch (operationEnum) { - case HEARTBEAT_REPLY: { - BigInteger bigInteger = new BigInteger(inputBytes); - return parse(operationEnum, String.format("{\"popularity\":%d}", bigInteger)); - } - default: { - String s = new String(inputBytes, StandardCharsets.UTF_8); - return parse(operationEnum, s); - } - } - } else if (protoverCode == ProtoverEnum.HEARTBEAT_AUTH_NO_COMPRESSION.getCode()) { - switch (operationEnum) { - case HEARTBEAT_REPLY: { - BigInteger bigInteger = new BigInteger(inputBytes); - return parse(operationEnum, String.format("{\"popularity\":%d}", bigInteger)); - } - default: { - String s = new String(inputBytes, StandardCharsets.UTF_8); - return parse(operationEnum, s); - } - } - } else if (protoverCode == ProtoverEnum.NORMAL_BROTLI.getCode()) { - switch (operationEnum) { - case SEND_SMS_REPLY: { - // Load the native library - Brotli4jLoader.ensureAvailability(); - - ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(inputBytes); - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(contentLength); - byte[] bytes = new byte[1024]; - BrotliInputStream brotliInputStream = null; - ByteBuf wrappedBuffer = null; - try { - brotliInputStream = new BrotliInputStream(byteArrayInputStream); - int count; - while ((count = brotliInputStream.read(bytes)) > -1) { - byteArrayOutputStream.write(bytes, 0, count); - } - wrappedBuffer = Unpooled.wrappedBuffer(byteArrayOutputStream.toByteArray()); - } catch (IOException e) { - throw new BaseException(e); - } finally { - try { - // Close the BrotliInputStream. This also closes the InputStream. - if (brotliInputStream != null) { - brotliInputStream.close(); - } - byteArrayOutputStream.close(); - } catch (IOException e) { - log.error("解压失败", e); - } - } - return doDecode(wrappedBuffer, pendingByteBuf); - } - case HEARTBEAT_REPLY: { - BigInteger bigInteger = new BigInteger(inputBytes); - return parse(operationEnum, String.format("{\"popularity\":%d}", bigInteger)); - } - default: { - String s = new String(inputBytes, StandardCharsets.UTF_8); - return parse(operationEnum, s); - } - } - } else { - if (log.isWarnEnabled()) { - log.warn("暂不支持的版本:{}", protoverCode); - } - return Optional.empty(); - } - } - - public static Optional parse(OperationEnum operation, String jsonString) { - switch (operation) { - case SEND_SMS_REPLY: { - try { - return Optional.ofNullable(BaseBilibiliMsg.OBJECT_MAPPER.readValue(jsonString, SendSmsReplyMsg.class)); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } - case AUTH_REPLY: { - try { - return Optional.ofNullable(BaseBilibiliMsg.OBJECT_MAPPER.readValue(jsonString, AuthReplyMsg.class)); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } - case HEARTBEAT_REPLY: { - try { - return Optional.ofNullable(BaseBilibiliMsg.OBJECT_MAPPER.readValue(jsonString, HeartbeatReplyMsg.class)); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } - default: { - if (log.isWarnEnabled()) { - log.warn("暂不支持 {}", operation); - } - return Optional.empty(); - } - } - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/resources/proto/dm_v2.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/resources/proto/dm_v2.proto deleted file mode 100644 index 53bf69c4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/resources/proto/dm_v2.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.bilibili.protobuf"; -option java_outer_classname = "Dm_v2Proto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -import "dm_v2_20.proto"; - -message dm_v2 { - dm_v2_20 dm_v2_20 = 20; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/resources/proto/dm_v2_20.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/resources/proto/dm_v2_20.proto deleted file mode 100644 index 3cb87799..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/main/resources/proto/dm_v2_20.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; - -package tech.ordinaryroad.live.chat.client.bilibili.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.bilibili.protobuf"; -option java_outer_classname = "Dm_v2_20Proto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message dm_v2_20 { - string avatar = 4; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/test/java/tech/ordinaryroad/live/chat/client/bilibili/api/BilibiliApisTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/test/java/tech/ordinaryroad/live/chat/client/bilibili/api/BilibiliApisTest.java deleted file mode 100644 index f602e368..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/test/java/tech/ordinaryroad/live/chat/client/bilibili/api/BilibiliApisTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package tech.ordinaryroad.live.chat.client.bilibili.api; - -import org.junit.jupiter.api.Test; - -/** - * @author mjz - * @date 2023/9/7 - */ -class BilibiliApisTest { - - @Test - void sendMsg() { - String cookie = System.getenv("cookie"); - BilibiliApis.sendMsg("666", 545068, cookie); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/test/java/tech/ordinaryroad/live/chat/client/bilibili/client/BilibiliLiveChatClientTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/test/java/tech/ordinaryroad/live/chat/client/bilibili/client/BilibiliLiveChatClientTest.java deleted file mode 100644 index 1d3f6ca3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-bilibili/src/test/java/tech/ordinaryroad/live/chat/client/bilibili/client/BilibiliLiveChatClientTest.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.bilibili.client; - -import cn.hutool.core.thread.ThreadUtil; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.bilibili.config.BilibiliLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.bilibili.constant.BilibiliCmdEnum; -import tech.ordinaryroad.live.chat.client.bilibili.listener.IBilibiliMsgListener; -import tech.ordinaryroad.live.chat.client.bilibili.msg.*; -import tech.ordinaryroad.live.chat.client.bilibili.netty.handler.BilibiliBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; - -/** - * @author mjz - * @date 2023/8/26 - */ -@Slf4j -class BilibiliLiveChatClientTest { - - static Object lock = new Object(); - BilibiliLiveChatClient client; - - @Test - void example() throws InterruptedException { - String cookie = System.getenv("cookie"); - log.error("cookie: {}", cookie); - BilibiliLiveChatClientConfig config = BilibiliLiveChatClientConfig.builder() - // TODO 浏览器Cookie - .cookie(cookie) - .roomId(7777) - .roomId(697) - .build(); - - client = new BilibiliLiveChatClient(config, new IBilibiliMsgListener() { - @Override - public void onDanmuMsg(BilibiliBinaryFrameHandler binaryFrameHandler, DanmuMsgMsg msg) { - IBilibiliMsgListener.super.onDanmuMsg(binaryFrameHandler, msg); - log.info("{} 收到弹幕 {} {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(BilibiliBinaryFrameHandler binaryFrameHandler, SendGiftMsg msg) { - IBilibiliMsgListener.super.onGiftMsg(binaryFrameHandler, msg); - log.info("{} 收到礼物 {} {}({}) {} {}({})x{}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getData().getAction(), msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice()); - } - - @Override - public void onSuperChatMsg(BilibiliBinaryFrameHandler binaryFrameHandler, SuperChatMessageMsg msg) { - IBilibiliMsgListener.super.onSuperChatMsg(binaryFrameHandler, msg); - log.info("{} 收到醒目留言 {}({}):{}", binaryFrameHandler.getRoomId(), msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onEnterRoomMsg(InteractWordMsg msg) { - log.info("{} {}({}) 进入直播间", msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - - @Override - public void onLikeMsg(BilibiliBinaryFrameHandler binaryFrameHandler, LikeInfoV3ClickMsg msg) { - IBilibiliMsgListener.super.onLikeMsg(binaryFrameHandler, msg); - log.info("{} 收到点赞 {} {}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - - @Override - public void onEntryEffect(SendSmsReplyMsg msg) { - JsonNode data = msg.getData(); - String copyWriting = data.get("copy_writing").asText(); - log.info("入场效果 {}", copyWriting); - } - - @Override - public void onWatchedChange(SendSmsReplyMsg msg) { - JsonNode data = msg.getData(); - int num = data.get("num").asInt(); - String textSmall = data.get("text_small").asText(); - String textLarge = data.get("text_large").asText(); - log.debug("观看人数变化 {} {} {}", num, textSmall, textLarge); - } - - @Override - public void onClickLike(SendSmsReplyMsg msg) { - JsonNode data = msg.getData(); - String uname = data.get("uname").asText(); - String likeText = data.get("like_text").asText(); - log.debug("为主播点赞 {} {}", uname, likeText); - } - - @Override - public void onClickUpdate(SendSmsReplyMsg msg) { - JsonNode data = msg.getData(); - int clickCount = data.get("click_count").asInt(); - log.debug("点赞数更新 {}", clickCount); - } - - @Override - public void onMsg(IMsg msg) { - log.debug("收到{}消息 {}", msg.getClass(), msg); - } - - @Override - public void onCmdMsg(BilibiliCmdEnum cmd, ICmdMsg cmdMsg) { - log.debug("收到CMD消息{} {}", cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(BilibiliCmdEnum cmd, ICmdMsg cmdMsg) { -// log.debug("收到其他CMD消息 {}", cmd); - switch (cmd) { - case GUARD_BUY: { - // 有人上舰 - SendSmsReplyMsg sendSmsReplyMsg = (SendSmsReplyMsg) cmdMsg; - break; - } - case SUPER_CHAT_MESSAGE_DELETE: { - // 删除醒目留言 - SendSmsReplyMsg sendSmsReplyMsg = (SendSmsReplyMsg) cmdMsg; - break; - } - } - } - - @Override - public void onUnknownCmd(String cmdString, IMsg msg) { - log.debug("收到未知CMD消息 {}", cmdString); - } - }); - client.connect(); - - client.addStatusChangeListener(evt -> { - ClientStatusEnums newValue = (ClientStatusEnums) evt.getNewValue(); - if (newValue == ClientStatusEnums.CONNECTED) { - ThreadUtil.execAsync(() -> { - ThreadUtil.sleep(5000); - client.clickLike(5, () -> { - log.warn("为主播点赞成功"); - }); - }); - } - }); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/pom.xml deleted file mode 100644 index a3690f87..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - - org.ruoyi - live-chat-clients - ${revision} - ../pom.xml - - jar - - live-chat-client-douyin - live-chat-client-douyin - - - UTF-8 - - - - - org.ruoyi - live-chat-client-servers-netty-client - - - - com.google.protobuf - protobuf-java-util - - - - ch.qos.logback - logback-classic - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/ClientModeExample.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/ClientModeExample.java deleted file mode 100644 index c2c8678b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/ClientModeExample.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin; - -import cn.hutool.core.util.RandomUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; -import tech.ordinaryroad.live.chat.client.douyin.client.DouyinLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyin.config.DouyinLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyin.listener.IDouyinMsgListener; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinDanmuMsg; -import tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinBinaryFrameHandler; - -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; - -public class ClientModeExample { - static Logger log = LoggerFactory.getLogger(ClientModeExample.class); - - public static void main(String[] args) { - // 1. 创建配置 - DouyinLiveChatClientConfig config = DouyinLiveChatClientConfig.builder() - // TODO 浏览器Cookie - .cookie("did=web_6c4ac2a8ef8855d35df4d564baeaa8e8; kuaishou.live.bfb1s=7206d814e5c089a58c910ed8bf52ace5; clientid=3; did=web_6c4ac2a8ef8855d35df4d564baeaa8e8; client_key=65890b29; kpn=GAME_ZONE; userId=3941614875; kuaishou.live.web_st=ChRrdWFpc2hvdS5saXZlLndlYi5zdBKgAbRhgemDxM_Z_lBn7EZ_-5unvtslsh7ci5VY_eg80qqjxy5yb7oBFrdcWSPlz6jMIBz9h_yoLzATE3ngj2WawpxvbJhmq0EnRYIHv308kTBmg4KN2JQf7w2mfrsp1vusFbZ3NkfsEO4PrGQfX0L6mJRbgXeBqyz4tUM5O0q2Jte_NzWkaOnezvIGRAG8Y6yA1dxGUmiA9syTrPrdnSOzZvAaEoJNhwQ4OUDtgURWN6k9Xgm8PSIgAfV-ZvahtgaYhopZno6OuS2pkaFZjrz4ymoEZ1DSnj0oBTAB; kuaishou.live.web_ph=a287be6ab01dce264c0554eed94c2d6ac991; userId=3941614875") - // TODO 直播间id(支持短id) - .roomId("Jiazi-9931") - .build(); - - // 2. 创建Client并传入配置、添加消息回调 - DouyinLiveChatClient client = new DouyinLiveChatClient(config, new IDouyinMsgListener() { -// @Override -// public void onMsg(IMsg msg) { -// log.debug("收到{}消息 {}", msg.getClass(), msg); -// } -// @Override -// public void onUnknownCmd(String cmdString, IMsg msg) { -// log.debug("收到未知CMD消息 {}", cmdString); -// } - - @Override - public void onDanmuMsg(DouyinBinaryFrameHandler douyinBinaryFrameHandler, DouyinDanmuMsg msg) { - log.info("{} 收到弹幕 [{}] {}({}):{}", douyinBinaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - }); - // 3. 开始监听直播间 - client.connect(); - - // 客户端连接状态回调 -// client.addStatusChangeListener(evt -> { -// if (evt.getNewValue().equals(ClientStatusEnums.CONNECTED)) { -// // TODO 要发送的弹幕内容,请注意控制发送频率;框架内置支持设置发送弹幕的最少时间间隔,小于时将忽略该次发送 -// client.sendDanmu("666666" + RandomUtil.randomNumbers(1)); -// } -// }); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/api/DouyinApis.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/api/DouyinApis.java deleted file mode 100644 index d361e3a1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/api/DouyinApis.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.api; - -import cn.hutool.core.util.NumberUtil; -import cn.hutool.core.util.RandomUtil; -import cn.hutool.core.util.ReUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.http.HttpResponse; -import cn.hutool.http.HttpStatus; -import cn.hutool.http.HttpUtil; -import lombok.*; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatCookieUtil; - -import java.util.Map; - -/** - * @author mjz - * @date 2024/1/3 - */ -@Slf4j -public class DouyinApis { - - public static final String KEY_COOKIE_TTWID = "ttwid"; - public static final String KEY_COOKIE_MS_TOKEN = "msToken"; - public static final String KEY_COOKIE_AC_NONCE = "__ac_nonce"; - public static final String MS_TOKEN_BASE_STRING = RandomUtil.BASE_CHAR_NUMBER_LOWER + "=_"; - public static final int MS_TOKEN_LENGTH = 107; - public static final int AC_NONCE_LENGTH = 21; - public static final String PATTERN_USER_UNIQUE_ID = "\\\\\"user_unique_id\\\\\":\\\\\"(\\d+)\\\\\""; - public static final String PATTERN_ROOM_ID = "\\\\\"roomId\\\\\":\\\\\"(\\d+)\\\\\""; - - public static RoomInitResult roomInit(Object roomId, String cookie) { - Map cookieMap = OrLiveChatCookieUtil.parseCookieString(cookie); - - @Cleanup - HttpResponse response1 = HttpUtil.createGet("https://live.douyin.com/").cookie(cookie).execute(); - String ttwid = OrLiveChatCookieUtil.getCookieByName(cookieMap, KEY_COOKIE_TTWID, () -> response1.getCookie(KEY_COOKIE_TTWID).getValue()); - String msToken = OrLiveChatCookieUtil.getCookieByName(cookieMap, KEY_COOKIE_MS_TOKEN, () -> RandomUtil.randomString(MS_TOKEN_BASE_STRING, MS_TOKEN_LENGTH)); - String __ac_nonce = OrLiveChatCookieUtil.getCookieByName(cookieMap, KEY_COOKIE_AC_NONCE, () -> RandomUtil.randomString(AC_NONCE_LENGTH)); - - @Cleanup - HttpResponse response2 = HttpUtil.createGet("https://live.douyin.com/" + roomId) - .cookie(StrUtil.emptyToDefault(cookie, KEY_COOKIE_TTWID + "=" + ttwid + "; " + KEY_COOKIE_MS_TOKEN + "=" + msToken + "; " + KEY_COOKIE_AC_NONCE + "=" + __ac_nonce)) - .execute(); - if (response2.getStatus() != HttpStatus.HTTP_OK) { - throw new BaseException("获取" + roomId + "真实房间ID失败"); - } - String user_unique_id = StrUtil.emptyToDefault(ReUtil.getGroup1(PATTERN_USER_UNIQUE_ID, response2.body()), RandomUtil.randomNumbers(19)); - long realRoomId; - String realRoomIdString = ReUtil.getGroup1(PATTERN_ROOM_ID, response2.body()); - try { - realRoomId = NumberUtil.parseLong(realRoomIdString); - } catch (Exception e) { - throw new BaseException("获取" + roomId + "真实房间ID失败"); - } - - - return RoomInitResult.builder() - .ttwid(ttwid) - .msToken(msToken) - .acNonce(__ac_nonce) - .realRoomId(realRoomId) - .userUniqueId(user_unique_id) - .build(); - } - - public static RoomInitResult roomInit(Object roomId) { - return roomInit(roomId, null); - } - - @Getter - @Setter - @AllArgsConstructor - @NoArgsConstructor - @Builder - public static class RoomInitResult { - private String ttwid; - private String msToken; - private String acNonce; - private long realRoomId; - private String userUniqueId; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/client/DouyinLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/client/DouyinLiveChatClient.java deleted file mode 100644 index 47767a1c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/client/DouyinLiveChatClient.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.client; - -import cn.hutool.core.date.DateUtil; -import cn.hutool.core.util.RandomUtil; -import cn.hutool.http.GlobalHeaders; -import cn.hutool.http.Header; -import cn.hutool.http.HttpUtil; -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.DefaultHttpHeaders; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.douyin.api.DouyinApis; -import tech.ordinaryroad.live.chat.client.douyin.config.DouyinLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyin.constant.DouyinCmdEnum; -import tech.ordinaryroad.live.chat.client.douyin.listener.IDouyinConnectionListener; -import tech.ordinaryroad.live.chat.client.douyin.listener.IDouyinMsgListener; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinMsg; -import tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinConnectionHandler; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; - -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Consumer; - -/** - * @author mjz - * @date 2024/1/2 - */ -@Slf4j -public class DouyinLiveChatClient extends BaseNettyClient< - DouyinLiveChatClientConfig, - DouyinCmdEnum, - IDouyinMsg, - IDouyinMsgListener, - DouyinConnectionHandler, - DouyinBinaryFrameHandler> { - - private DouyinApis.RoomInitResult roomInitResult = new DouyinApis.RoomInitResult(); - - public DouyinLiveChatClient(DouyinLiveChatClientConfig config, List msgListeners, IDouyinConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListeners(msgListeners); - - // 初始化 - this.init(); - } - - public DouyinLiveChatClient(DouyinLiveChatClientConfig config, IDouyinMsgListener msgListener, IDouyinConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListener(msgListener); - - // 初始化 - this.init(); - } - - public DouyinLiveChatClient(DouyinLiveChatClientConfig config, IDouyinMsgListener msgListener, IDouyinConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public DouyinLiveChatClient(DouyinLiveChatClientConfig config, IDouyinMsgListener msgListener) { - this(config, msgListener, null, new NioEventLoopGroup()); - } - - public DouyinLiveChatClient(DouyinLiveChatClientConfig config) { - this(config, null); - } - - @Override - public void init() { - roomInitResult = DouyinApis.roomInit(getConfig().getRoomId(), getConfig().getCookie()); - super.init(); - } - - @Override - public DouyinConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - DefaultHttpHeaders headers = new DefaultHttpHeaders(); - headers.add(Header.COOKIE.name(), DouyinApis.KEY_COOKIE_TTWID + "=" + roomInitResult.getTtwid()); - headers.add(Header.USER_AGENT.name(), GlobalHeaders.INSTANCE.header(Header.USER_AGENT)); - return new DouyinConnectionHandler( - WebSocketClientHandshakerFactory.newHandshaker(getWebsocketUri(), WebSocketVersion.V13, null, true, headers, getConfig().getMaxFramePayloadLength()), - DouyinLiveChatClient.this, clientConnectionListener - ); - } - - @Override - public DouyinBinaryFrameHandler initBinaryFrameHandler() { - return new DouyinBinaryFrameHandler(super.msgListeners, DouyinLiveChatClient.this); - } - - @Override - protected String getWebSocketUriString() { - long realRoomId = roomInitResult.getRealRoomId(); - String userUniqueId = roomInitResult.getUserUniqueId(); - - String webSocketUriString = super.getWebSocketUriString(); - Map queryParams = new HashMap<>(); - queryParams.put("app_name", "douyin_web"); - queryParams.put("version_code", getConfig().getVersionCode()); - queryParams.put("webcast_sdk_version", getConfig().getWebcastSdkVersion()); - queryParams.put("update_version_code", getConfig().getUpdateVersionCode()); - queryParams.put("compress", "gzip"); - queryParams.put("device_platform", "web"); - queryParams.put("cookie_enabled", "true"); - queryParams.put("screen_width", "800"); - queryParams.put("screen_height", "1280"); - queryParams.put("browser_language", "zh-CN"); - queryParams.put("browser_platform", "MacIntel"); - queryParams.put("browser_name", "Mozilla"); - queryParams.put("browser_version", "5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/116.0.0.0%20Safari/537.36"); - queryParams.put("browser_online", "true"); - queryParams.put("tz_name", "Asia/Shanghai"); - queryParams.put("host", "https://live.douyin.com"); - queryParams.put("im_path", "/webcast/im/fetch/"); - queryParams.put("endpoint", "live_pc"); - queryParams.put("identity", "audience"); - - queryParams.put("support_wrds", "1"); - queryParams.put("heartbeatDuration ", "0"); - queryParams.put("live_id", "1"); - queryParams.put("did_rule", "3"); - queryParams.put("aid", "6383"); - - queryParams.put("room_id", Long.toString(realRoomId)); - queryParams.put("user_unique_id", userUniqueId); - // TODO 生成signature - queryParams.put("signature", "00000000"); - queryParams.put("cursor", "t-" + System.currentTimeMillis() + "_r-1_d-1_u-1_h-1"); - queryParams.put("internal_ext", "internal_src:dim|" + - "wss_push_room_id:" + realRoomId + "|" + - "wss_push_did:" + userUniqueId + "|" + - "dim_log_id:" + DateUtil.format(new Date(), "yyyy-MM-dd") + RandomUtil.randomNumbers(6) + RandomUtil.randomString("0123456789ABCDEF", 20) + "|" + - "first_req_ms:" + System.currentTimeMillis() + "|" + - "fetch_time:" + System.currentTimeMillis() + "|" + - "seq:1|" + - "wss_info:0-" + System.currentTimeMillis() + "-0-0|" + - "wrds_kvs:WebcastRoomStatsMessage-" + System.nanoTime() + "_WebcastRoomRankMessage-" + System.nanoTime() + "_LotteryInfoSyncData-" + System.nanoTime() + "_WebcastActivityEmojiGroupsMessage-" + System.nanoTime()); - return webSocketUriString + "?" + HttpUtil.toParams(queryParams); - } - - public void sendDanmu(Object danmu, Runnable success, Consumer failed) { - super.sendDanmu(danmu, success, failed); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/config/DouyinLiveChatClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/config/DouyinLiveChatClientConfig.java deleted file mode 100644 index 6958bb0c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/config/DouyinLiveChatClientConfig.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.config; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.servers.netty.client.config.BaseNettyClientConfig; - -/** - * @author mjz - * @date 2024/1/2 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class DouyinLiveChatClientConfig extends BaseNettyClientConfig { - - @Builder.Default - private int aggregatorMaxContentLength = 64 * 1024 * 1024; - - @Builder.Default - private int maxFramePayloadLength = 64 * 1024 * 1024; - - private String versionCode = "180800"; - - private String webcastSdkVersion = "1.0.12"; - - private String updateVersionCode = "1.0.12"; - - /** - * 示例 - * wss://webcast5-ws-web-lf.douyin.com/webcast/im/push/v2/ - * ?app_name=douyin_web - * &version_code=180800 - * &webcast_sdk_version=1.0.12 - * &update_version_code=1.0.12 - * &compress=gzip - * &device_platform=web - * &cookie_enabled=true - * &screen_width=1512 - * &screen_height=982 - * &browser_language=zh-CN - * &browser_platform=MacIntel - * &browser_name=Mozilla - * &browser_version=5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_15_7)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/118.0.0.0%20Safari/537.36 - * &browser_online=true - * &tz_name=Asia/Shanghai - * &cursor=u-1_h-1_t-1704202376885_r-1_d-1 - * &internal_ext=internal_src:dim|wss_push_room_id:7319486720022301449|wss_push_did:7319492411867170356|dim_log_id:20240102213256AAA5B735ADBE992BEF6A|first_req_ms:1704202376757|fetch_time:1704202376885|seq:1|wss_info:0-1704202376885-0-0|wrds_kvs:WebcastActivityEmojiGroupsMessage-1704200830782138545_WebcastRoomRankMessage-1704202270876589607_WebcastRoomStatsMessage-1704202372842388781 - * &host=https://live.douyin.com - * &aid=6383 - * &live_id=1 - * &did_rule=3 - * &endpoint=live_pc - * &support_wrds=1 - * &user_unique_id=7319492411867170356 - * &im_path=/webcast/im/fetch/ - * &identity=audience - * &need_persist_msg_count=15 - * &room_id=7319486720022301449 - * &heartbeatDuration=0 - * &signature=Wk407jV1/WbnoIGk - */ - @Builder.Default - private String websocketUri = "wss://webcast5-ws-web-lf.douyin.com:443/webcast/im/push/v2/"; - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/constant/DouyinCmdEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/constant/DouyinCmdEnum.java deleted file mode 100644 index d7335cde..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/constant/DouyinCmdEnum.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.constant; - -import cn.hutool.core.util.StrUtil; -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2024/1/2 - */ -@Getter -@RequiredArgsConstructor -public enum DouyinCmdEnum { - - /** - * 弹幕 - */ - WebcastChatMessage, - /** - * 礼物 - */ - WebcastGiftMessage, - /** - * 点赞 - */ - WebcastLikeMessage, - /** - * 入房 - */ - WebcastMemberMessage, - WebcastSocialMessage, - WebcastRoomUserSeqMessage, - WebcastFansclubMessage, - WebcastControlMessage, - ; - - public static DouyinCmdEnum getByName(String name) { - if (StrUtil.isBlank(name)) { - return null; - } - - for (DouyinCmdEnum value : values()) { - if (value.name().equals(name)) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/listener/IDouyinConnectionListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/listener/IDouyinConnectionListener.java deleted file mode 100644 index 9be4cea7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/listener/IDouyinConnectionListener.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.listener; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinConnectionHandler; - -/** - * @author mjz - * @date 2024/1/2 - */ -public interface IDouyinConnectionListener extends IBaseConnectionListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/listener/IDouyinMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/listener/IDouyinMsgListener.java deleted file mode 100644 index 8f1c86ff..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/listener/IDouyinMsgListener.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.listener; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.*; -import tech.ordinaryroad.live.chat.client.douyin.constant.DouyinCmdEnum; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinDanmuMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinEnterRoomMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinGiftMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinLikeMsg; -import tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinBinaryFrameHandler; - -/** - * @author mjz - * @date 2024/1/2 - */ -public interface IDouyinMsgListener extends IBaseMsgListener, - IDanmuMsgListener, - IGiftMsgListener, - IEnterRoomMsgListener, - ILikeMsgListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinDanmuMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinDanmuMsg.java deleted file mode 100644 index 32bb5301..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinDanmuMsg.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.msg; - -import cn.hutool.core.collection.CollUtil; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IDanmuMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinMsg; -import tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg; - -/** - * @author mjz - * @date 2024/1/9 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DouyinDanmuMsg implements IDouyinMsg, IDanmuMsg { - - private douyin_webcast_chat_message_msg msg; - - @Override - public String getBadgeName() { - return msg.getUser().getFansClub().getData().getClubName(); - } - - @Override - public byte getBadgeLevel() { - return (byte) msg.getUser().getFansClub().getData().getLevel(); - } - - @Override - public String getUid() { - return Long.toString(msg.getUser().getId()); - } - - @Override - public String getUsername() { - return msg.getUser().getNickname(); - } - - @Override - public String getUserAvatar() { - return CollUtil.getFirst(msg.getUser().getAvatarThumb().getUrlListListList()); - } - - @Override - public String getContent() { - return msg.getContent(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinEnterRoomMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinEnterRoomMsg.java deleted file mode 100644 index 6c394f56..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinEnterRoomMsg.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.msg; - -import cn.hutool.core.collection.CollUtil; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IEnterRoomMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinMsg; -import tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg; - -/** - * @author mjz - * @date 2024/1/9 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DouyinEnterRoomMsg implements IDouyinMsg, IEnterRoomMsg { - - private douyin_webcast_member_message_msg msg; - - @Override - public String getBadgeName() { - return msg.getUser().getFansClub().getData().getClubName(); - } - - @Override - public byte getBadgeLevel() { - return (byte) msg.getUser().getFansClub().getData().getLevel(); - } - - @Override - public String getUid() { - return Long.toString(msg.getUser().getId()); - } - - @Override - public String getUsername() { - return msg.getUser().getNickname(); - } - - @Override - public String getUserAvatar() { - return CollUtil.getFirst(msg.getUser().getAvatarThumb().getUrlListListList()); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinGiftMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinGiftMsg.java deleted file mode 100644 index 0bd35354..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinGiftMsg.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.msg; - -import cn.hutool.core.collection.CollUtil; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IGiftMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinMsg; -import tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg; - -/** - * @author mjz - * @date 2024/1/9 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DouyinGiftMsg implements IDouyinMsg, IGiftMsg { - - private douyin_webcast_gift_message_msg msg; - - @Override - public String getBadgeName() { - return msg.getUser().getFansClub().getData().getClubName(); - } - - @Override - public byte getBadgeLevel() { - return (byte) msg.getUser().getFansClub().getData().getLevel(); - } - - @Override - public String getUid() { - return Long.toString(msg.getUser().getId()); - } - - @Override - public String getUsername() { - return msg.getUser().getNickname(); - } - - @Override - public String getUserAvatar() { - return CollUtil.getFirst(msg.getUser().getAvatarThumb().getUrlListListList()); - } - - @Override - public String getGiftName() { - return msg.getGift().getName(); - } - - @Override - public String getGiftImg() { - return CollUtil.getFirst(msg.getGift().getImage().getUrlListListList()); - } - - @Override - public String getGiftId() { - return Long.toString(msg.getLongGiftId()); - } - - @Override - public int getGiftCount() { - return (int) msg.getTotalCount(); - } - - @Override - public int getGiftPrice() { - return msg.getGift().getDiamondCount(); - } - - @Override - public String getReceiveUid() { - return Long.toString(msg.getToUser().getId()); - } - - @Override - public String getReceiveUsername() { - return msg.getToUser().getNickname(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinLikeMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinLikeMsg.java deleted file mode 100644 index ce029979..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/DouyinLikeMsg.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.msg; - -import cn.hutool.core.collection.CollUtil; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ILikeMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinMsg; -import tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg; - -/** - * @author mjz - * @date 2024/1/31 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DouyinLikeMsg implements IDouyinMsg, ILikeMsg { - - private douyin_webcast_like_message_msg msg; - - @Override - public String getBadgeName() { - return msg.getUser().getFansClub().getData().getClubName(); - } - - @Override - public byte getBadgeLevel() { - return (byte) msg.getUser().getFansClub().getData().getLevel(); - } - - @Override - public String getUid() { - return Long.toString(msg.getUser().getId()); - } - - @Override - public String getUsername() { - return msg.getUser().getNickname(); - } - - @Override - public String getUserAvatar() { - return CollUtil.getFirst(msg.getUser().getAvatarThumb().getUrlListListList()); - } - - @Override - public int getClickCount() { - return (int) msg.getCount(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/base/IDouyinCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/base/IDouyinCmdMsg.java deleted file mode 100644 index aa264a16..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/base/IDouyinCmdMsg.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.msg.base; - -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.douyin.constant.DouyinCmdEnum; - -/** - * @author mjz - * @date 2024/1/2 - */ -public interface IDouyinCmdMsg extends IDouyinMsg, ICmdMsg { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/base/IDouyinMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/base/IDouyinMsg.java deleted file mode 100644 index 6dc10954..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/msg/base/IDouyinMsg.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.msg.base; - -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; - -/** - * @author mjz - * @date 2024/1/2 - */ -public interface IDouyinMsg extends IMsg { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/netty/handler/DouyinBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/netty/handler/DouyinBinaryFrameHandler.java deleted file mode 100644 index bddf8de0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/netty/handler/DouyinBinaryFrameHandler.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.netty.handler; - -import cn.hutool.core.util.ZipUtil; -import com.google.protobuf.ByteString; -import com.google.protobuf.InvalidProtocolBufferException; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.Unpooled; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.douyin.client.DouyinLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyin.constant.DouyinCmdEnum; -import tech.ordinaryroad.live.chat.client.douyin.listener.IDouyinMsgListener; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinDanmuMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinEnterRoomMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinGiftMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinLikeMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinMsg; -import tech.ordinaryroad.live.chat.client.douyin.protobuf.*; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientBinaryFrameHandler; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * @author mjz - * @date 2024/1/2 - */ -@Slf4j -@ChannelHandler.Sharable -public class DouyinBinaryFrameHandler extends BaseNettyClientBinaryFrameHandler { - - private ChannelHandlerContext channelHandlerContext; - - public DouyinBinaryFrameHandler(List iDouyinMsgListeners, DouyinLiveChatClient client) { - super(iDouyinMsgListeners, client); - } - - public DouyinBinaryFrameHandler(List iDouyinMsgListeners, long roomId) { - super(iDouyinMsgListeners, roomId); - } - - @Override - public void handlerAdded(ChannelHandlerContext ctx) throws Exception { - super.handlerAdded(ctx); - channelHandlerContext = ctx; - } - - @Override - public void handlerRemoved(ChannelHandlerContext ctx) throws Exception { - super.handlerRemoved(ctx); - channelHandlerContext = null; - } - - @Override - public void onCmdMsg(DouyinCmdEnum cmd, ICmdMsg cmdMsg) { - if (super.msgListeners.isEmpty()) { - return; - } - - ByteString payload = ((douyin_cmd_msg) cmdMsg).getPayload(); - switch (cmd) { - case WebcastChatMessage: { - try { - douyin_webcast_chat_message_msg douyinWebcastChatMessageMsg = douyin_webcast_chat_message_msg.parseFrom(payload); - iteratorMsgListeners(msgListener -> msgListener.onDanmuMsg(DouyinBinaryFrameHandler.this, new DouyinDanmuMsg(douyinWebcastChatMessageMsg))); - } catch (IOException e) { - throw new BaseException(e); - } - break; - } - case WebcastGiftMessage: { - try { - douyin_webcast_gift_message_msg douyinWebcastGiftMessageMsg = douyin_webcast_gift_message_msg.parseFrom(payload); - iteratorMsgListeners(msgListener -> msgListener.onGiftMsg(DouyinBinaryFrameHandler.this, new DouyinGiftMsg(douyinWebcastGiftMessageMsg))); - } catch (InvalidProtocolBufferException e) { - throw new BaseException(e); - } - break; - } - case WebcastMemberMessage: { - try { - douyin_webcast_member_message_msg douyinWebcastMemberMessageMsg = douyin_webcast_member_message_msg.parseFrom(payload); - iteratorMsgListeners(msgListener -> msgListener.onEnterRoomMsg(DouyinBinaryFrameHandler.this, new DouyinEnterRoomMsg(douyinWebcastMemberMessageMsg))); - } catch (InvalidProtocolBufferException e) { - throw new BaseException(e); - } - break; - } - case WebcastLikeMessage: { - try { - douyin_webcast_like_message_msg douyinWebcastLikeMessageMsg = douyin_webcast_like_message_msg.parseFrom(payload); - iteratorMsgListeners(msgListener -> msgListener.onLikeMsg(DouyinBinaryFrameHandler.this, new DouyinLikeMsg(douyinWebcastLikeMessageMsg))); - } catch (InvalidProtocolBufferException e) { - throw new BaseException(e); - } - break; - } - default: { - iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(DouyinBinaryFrameHandler.this, cmd, cmdMsg)); - } - } - } - - @Override - protected List decode(ByteBuf byteBuf) { - try { - douyin_websocket_frame douyinWebsocketFrame = douyin_websocket_frame.parseFrom(byteBuf.nioBuffer()); - ByteString payload = douyinWebsocketFrame.getPayload(); - byte[] bytes = ZipUtil.unGzip(payload.newInput()); - douyin_websocket_frame_msg douyinWebsocketFrameMsg = douyin_websocket_frame_msg.parseFrom(bytes); - - // 抖音不是使用心跳,而是ACK - if (douyinWebsocketFrameMsg.getNeedAck()) { - douyin_websocket_frame ack = douyin_websocket_frame.newBuilder() - .setLogId(douyinWebsocketFrame.getLogId()) - .setPayloadType("ack") - .setPayload(douyinWebsocketFrameMsg.getInternalExtBytes()) - .build(); - channelHandlerContext.writeAndFlush(new BinaryWebSocketFrame(Unpooled.wrappedBuffer(ack.toByteArray()))); - } - - return new ArrayList<>(douyinWebsocketFrameMsg.getMessagesListList()); - } catch (InvalidProtocolBufferException e) { - throw new BaseException(e); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/netty/handler/DouyinConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/netty/handler/DouyinConnectionHandler.java deleted file mode 100644 index 1b9c6f8f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/netty/handler/DouyinConnectionHandler.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyin.netty.handler; - -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.douyin.client.DouyinLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyin.config.DouyinLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler; - -/** - * @author mjz - * @date 2024/1/2 - */ -@Slf4j -@ChannelHandler.Sharable -public class DouyinConnectionHandler extends BaseNettyClientConnectionHandler { - - /** - * 以ClientConfig为主 - */ - private final Object roomId; - /** - * 以ClientConfig为主 - */ - private String cookie; - - public DouyinConnectionHandler(WebSocketClientHandshaker handshaker, DouyinLiveChatClient client, IBaseConnectionListener listener) { - super(handshaker, client, listener); - this.roomId = client.getConfig().getRoomId(); - this.cookie = client.getConfig().getCookie(); - } - - public DouyinConnectionHandler(WebSocketClientHandshaker handshaker, DouyinLiveChatClient client) { - this(handshaker, client, null); - } - - public DouyinConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, IBaseConnectionListener listener, String cookie) { - super(handshaker, listener); - this.roomId = roomId; - this.cookie = cookie; - } - - public DouyinConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, IBaseConnectionListener listener) { - this(handshaker, roomId, listener, null); - } - - public DouyinConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, String cookie) { - this(handshaker, roomId, null, cookie); - } - - public DouyinConnectionHandler(WebSocketClientHandshaker handshaker, long roomId) { - this(handshaker, roomId, null, null); - } - - @Override - protected void sendHeartbeat(ChannelHandlerContext ctx) { - // ignore - } - - @Override - public void sendAuthRequest(Channel channel) { - // ignore - } - - @Override - protected long getHeartbeatPeriod() { - if (client == null) { - return DouyinLiveChatClientConfig.DEFAULT_HEARTBEAT_PERIOD; - } else { - return client.getConfig().getHeartbeatPeriod(); - } - } - - @Override - protected long getHeartbeatInitialDelay() { - if (client == null) { - return DouyinLiveChatClientConfig.DEFAULT_HEARTBEAT_INITIAL_DELAY; - } else { - return client.getConfig().getHeartbeatInitialDelay(); - } - } - - public Object getRoomId() { - return client != null ? client.getConfig().getRoomId() : roomId; - } - - private String getCookie() { - return client != null ? client.getConfig().getCookie() : cookie; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_cmd_msgProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_cmd_msgProto.java deleted file mode 100644 index f5ed4b41..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_cmd_msgProto.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_cmd_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class Douyin_cmd_msgProto { - private Douyin_cmd_msgProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024douyin_cmd_msg.proto\0222tech.ordinaryroa" + - "d.live.chat.client.douyin.protobuf\"\250\001\n\016d" + - "ouyin_cmd_msg\022\016\n\006method\030\001 \001(\t\022\017\n\007payload" + - "\030\002 \001(\014\022\016\n\006msg_id\030\003 \001(\003\022\020\n\010msg_type\030\004 \001(\005" + - "\022\016\n\006offset\030\005 \001(\003\022\027\n\017need_wrds_store\030\006 \001(" + - "\010\022\024\n\014wrds_version\030\007 \001(\003\022\024\n\014wrds_sub_key\030" + - "\010 \001(\tBQ\n2tech.ordinaryroad.live.chat.cli" + - "ent.douyin.protobufB\023Douyin_cmd_msgProto" + - "P\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_descriptor, - new java.lang.String[] { "Method", "Payload", "MsgId", "MsgType", "Offset", "NeedWrdsStore", "WrdsVersion", "WrdsSubKey", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_chat_message_msgProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_chat_message_msgProto.java deleted file mode 100644 index 4e5a46d7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_chat_message_msgProto.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_chat_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class Douyin_webcast_chat_message_msgProto { - private Douyin_webcast_chat_message_msgProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%douyin_webcast_chat_message_msg.proto\022" + - "2tech.ordinaryroad.live.chat.client.douy" + - "in.protobuf\032\014Common.proto\032\nUser.proto\032\013I" + - "mage.proto\"\300\003\n\037douyin_webcast_chat_messa" + - "ge_msg\022\027\n\006common\030\001 \001(\0132\007.Common\022\023\n\004user\030" + - "\002 \001(\0132\005.User\022\017\n\007content\030\003 \001(\t\022\031\n\021visible" + - "_to_sender\030\004 \001(\010\022 \n\020background_image\030\005 \001" + - "(\0132\006.Image\022\036\n\026full_screen_text_color\030\006 \001" + - "(\t\022#\n\023background_image_v2\030\007 \001(\0132\006.Image\022" + - "\032\n\ngift_image\030\n \001(\0132\006.Image\022\024\n\014agree_msg" + - "_id\030\013 \001(\004\022\026\n\016priority_level\030\014 \001(\r\022\022\n\neve" + - "nt_time\030\017 \001(\004\022\023\n\013send_review\030\020 \001(\010\022\025\n\rfr" + - "om_intercom\030\021 \001(\010\022\037\n\027intercom_hide_user_" + - "card\030\022 \001(\010\022\017\n\007chat_by\030\024 \001(\t\022 \n\030individua" + - "l_chat_priority\030\025 \001(\rBb\n2tech.ordinaryro" + - "ad.live.chat.client.douyin.protobufB$Dou" + - "yin_webcast_chat_message_msgProtoP\001\242\002\003GP" + - "Bb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_descriptor, - new java.lang.String[] { "Common", "User", "Content", "VisibleToSender", "BackgroundImage", "FullScreenTextColor", "BackgroundImageV2", "GiftImage", "AgreeMsgId", "PriorityLevel", "EventTime", "SendReview", "FromIntercom", "IntercomHideUserCard", "ChatBy", "IndividualChatPriority", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_gift_message_msgProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_gift_message_msgProto.java deleted file mode 100644 index 69ed4f92..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_gift_message_msgProto.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_gift_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class Douyin_webcast_gift_message_msgProto { - private Douyin_webcast_gift_message_msgProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%douyin_webcast_gift_message_msg.proto\022" + - "2tech.ordinaryroad.live.chat.client.douy" + - "in.protobuf\032\014Common.proto\032\nUser.proto\032\020T" + - "extEffect.proto\032\nText.proto\032\024GiftIMPrior" + - "ity.proto\032\020GiftStruct.proto\032\026PublicAreaC" + - "ommon.proto\"\277\006\n\037douyin_webcast_gift_mess" + - "age_msg\022\027\n\006common\030\001 \001(\0132\007.Common\022\024\n\014long" + - "_gift_id\030\002 \001(\004\022\030\n\020fan_ticket_count\030\003 \001(\004" + - "\022\023\n\013group_count\030\004 \001(\004\022\024\n\014repeat_count\030\005 " + - "\001(\004\022\023\n\013combo_count\030\006 \001(\004\022\023\n\004user\030\007 \001(\0132\005" + - ".User\022\026\n\007to_user\030\010 \001(\0132\005.User\022\022\n\nrepeat_" + - "end\030\t \001(\r\022 \n\013text_effect\030\n \001(\0132\013.TextEff" + - "ect\022\020\n\010group_id\030\013 \001(\004\022\030\n\020income_taskgift" + - "s\030\014 \001(\004\022\035\n\025room_fan_ticket_count\030\r \001(\004\022!" + - "\n\010priority\030\016 \001(\0132\017.GiftIMPriority\022\031\n\004gif" + - "t\030\017 \001(\0132\013.GiftStruct\022\016\n\006log_id\030\020 \001(\t\022\021\n\t" + - "send_type\030\021 \001(\004\022-\n\022public_area_common\030\022 " + - "\001(\0132\021.PublicAreaCommon\022 \n\021tray_display_t" + - "ext\030\023 \001(\0132\005.Text\022\036\n\026banned_display_effec" + - "ts\030\024 \001(\004\022\030\n\020display_for_self\030\031 \001(\010\022\032\n\022in" + - "teract_gift_info\030\032 \001(\t\022\025\n\rdiy_item_info\030" + - "\033 \001(\t\022\032\n\022min_asset_set_list\030\034 \003(\004\022\023\n\013tot" + - "al_count\030\035 \001(\004\022\032\n\022client_gift_source\030\036 \001" + - "(\r\022\030\n\020to_user_ids_list\030 \003(\004\022\022\n\nsend_tim" + - "et\030! \001(\004\022\036\n\026force_display_effectst\030\" \001(\004" + - "\022\020\n\010trace_id\030# \001(\t\022\031\n\021effect_display_ts\030" + - "$ \001(\004Bb\n2tech.ordinaryroad.live.chat.cli" + - "ent.douyin.protobufB$Douyin_webcast_gift" + - "_message_msgProtoP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.getDescriptor(), - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_descriptor, - new java.lang.String[] { "Common", "LongGiftId", "FanTicketCount", "GroupCount", "RepeatCount", "ComboCount", "User", "ToUser", "RepeatEnd", "TextEffect", "GroupId", "IncomeTaskgifts", "RoomFanTicketCount", "Priority", "Gift", "LogId", "SendType", "PublicAreaCommon", "TrayDisplayText", "BannedDisplayEffects", "DisplayForSelf", "InteractGiftInfo", "DiyItemInfo", "MinAssetSetList", "TotalCount", "ClientGiftSource", "ToUserIdsList", "SendTimet", "ForceDisplayEffectst", "TraceId", "EffectDisplayTs", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_member_message_msgProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_member_message_msgProto.java deleted file mode 100644 index ccdb0088..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_webcast_member_message_msgProto.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_member_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class Douyin_webcast_member_message_msgProto { - private Douyin_webcast_member_message_msgProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_BuriedPointMapEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_BuriedPointMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'douyin_webcast_member_message_msg.prot" + - "o\0222tech.ordinaryroad.live.chat.client.do" + - "uyin.protobuf\032\014Common.proto\032\nUser.proto\032" + - "\013Image.proto\032\nText.proto\"\203\005\n!douyin_webc" + - "ast_member_message_msg\022\027\n\006common\030\001 \001(\0132\007" + - ".Common\022\023\n\004user\030\002 \001(\0132\005.User\022\023\n\013memberCo" + - "unt\030\003 \001(\004\022\027\n\010operator\030\004 \001(\0132\005.User\022\024\n\014is" + - "SetToAdmin\030\005 \001(\010\022\021\n\tisTopUser\030\006 \001(\010\022\021\n\tr" + - "ankScore\030\007 \001(\003\022\021\n\ttopUserNo\030\010 \001(\003\022\021\n\tent" + - "erType\030\t \001(\003\022\016\n\006action\030\n \001(\003\022\031\n\021actionDe" + - "scription\030\013 \001(\t\022\016\n\006userId\030\014 \001(\003\022\016\n\006popSt" + - "r\030\016 \001(\t\022\037\n\017backgroundImage\030\020 \001(\0132\006.Image" + - "\022!\n\021backgroundImageV2\030\021 \001(\0132\006.Image\022 \n\021a" + - "nchorDisplayText\030\022 \001(\0132\005.Text\022\030\n\020userEnt" + - "erTipType\030\024 \001(\003\022\032\n\022anchorEnterTipType\030\025 " + - "\001(\003\022\201\001\n\016buriedPointMap\030\026 \003(\0132i.tech.ordi" + - "naryroad.live.chat.client.douyin.protobu" + - "f.douyin_webcast_member_message_msg.Buri" + - "edPointMapEntry\0325\n\023BuriedPointMapEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bd\n2tech.o" + - "rdinaryroad.live.chat.client.douyin.prot" + - "obufB&Douyin_webcast_member_message_msgP" + - "rotoP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.getDescriptor(), - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor, - new java.lang.String[] { "Common", "User", "MemberCount", "Operator", "IsSetToAdmin", "IsTopUser", "RankScore", "TopUserNo", "EnterType", "Action", "ActionDescription", "UserId", "PopStr", "BackgroundImage", "BackgroundImageV2", "AnchorDisplayText", "UserEnterTipType", "AnchorEnterTipType", "BuriedPointMap", }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_BuriedPointMapEntry_descriptor = - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor.getNestedTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_BuriedPointMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_BuriedPointMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_websocket_frameProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_websocket_frameProto.java deleted file mode 100644 index 620d99e3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/Douyin_websocket_frameProto.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_websocket_frame.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class Douyin_websocket_frameProto { - private Douyin_websocket_frameProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_HeadersListEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_HeadersListEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034douyin_websocket_frame.proto\0222tech.ord" + - "inaryroad.live.chat.client.douyin.protob" + - "uf\"\301\002\n\026douyin_websocket_frame\022\016\n\006seq_id\030" + - "\001 \001(\004\022\016\n\006log_id\030\002 \001(\004\022\017\n\007service\030\003 \001(\004\022\016" + - "\n\006method\030\004 \001(\004\022q\n\014headers_list\030\005 \003(\0132[.t" + - "ech.ordinaryroad.live.chat.client.douyin" + - ".protobuf.douyin_websocket_frame.Headers" + - "ListEntry\022\030\n\020payload_encoding\030\006 \001(\t\022\024\n\014p" + - "ayload_type\030\007 \001(\t\022\017\n\007payload\030\010 \001(\014\0322\n\020He" + - "adersListEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001BY\n2tech.ordinaryroad.live.chat.cl" + - "ient.douyin.protobufB\033Douyin_websocket_f" + - "rameProtoP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor, - new java.lang.String[] { "SeqId", "LogId", "Service", "Method", "HeadersList", "PayloadEncoding", "PayloadType", "Payload", }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_HeadersListEntry_descriptor = - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor.getNestedTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_HeadersListEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_HeadersListEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_cmd_msg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_cmd_msg.java deleted file mode 100644 index 44f8e78b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_cmd_msg.java +++ /dev/null @@ -1,1122 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_cmd_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -import tech.ordinaryroad.live.chat.client.douyin.constant.DouyinCmdEnum; -import tech.ordinaryroad.live.chat.client.douyin.msg.base.IDouyinCmdMsg; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg} - */ -public final class douyin_cmd_msg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) - douyin_cmd_msgOrBuilder, IDouyinCmdMsg { - - @Override - public String getCmd() { - return getMethod(); - } - - @Override - public void setCmd(String cmd) { - // ignore - // method_ = cmd; - } - - @Override - public DouyinCmdEnum getCmdEnum() { - return DouyinCmdEnum.getByName(getMethod()); - } - -private static final long serialVersionUID = 0L; - // Use douyin_cmd_msg.newBuilder() to construct. - private douyin_cmd_msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_cmd_msg() { - method_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - wrdsSubKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_cmd_msg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder.class); - } - - public static final int METHOD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object method_ = ""; - /** - * string method = 1; - * @return The method. - */ - @java.lang.Override - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } - } - /** - * string method = 1; - * @return The bytes for method. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAYLOAD_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 2; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - public static final int MSG_ID_FIELD_NUMBER = 3; - private long msgId_ = 0L; - /** - * int64 msg_id = 3; - * @return The msgId. - */ - @java.lang.Override - public long getMsgId() { - return msgId_; - } - - public static final int MSG_TYPE_FIELD_NUMBER = 4; - private int msgType_ = 0; - /** - * int32 msg_type = 4; - * @return The msgType. - */ - @java.lang.Override - public int getMsgType() { - return msgType_; - } - - public static final int OFFSET_FIELD_NUMBER = 5; - private long offset_ = 0L; - /** - * int64 offset = 5; - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int NEED_WRDS_STORE_FIELD_NUMBER = 6; - private boolean needWrdsStore_ = false; - /** - * bool need_wrds_store = 6; - * @return The needWrdsStore. - */ - @java.lang.Override - public boolean getNeedWrdsStore() { - return needWrdsStore_; - } - - public static final int WRDS_VERSION_FIELD_NUMBER = 7; - private long wrdsVersion_ = 0L; - /** - * int64 wrds_version = 7; - * @return The wrdsVersion. - */ - @java.lang.Override - public long getWrdsVersion() { - return wrdsVersion_; - } - - public static final int WRDS_SUB_KEY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object wrdsSubKey_ = ""; - /** - * string wrds_sub_key = 8; - * @return The wrdsSubKey. - */ - @java.lang.Override - public java.lang.String getWrdsSubKey() { - java.lang.Object ref = wrdsSubKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - wrdsSubKey_ = s; - return s; - } - } - /** - * string wrds_sub_key = 8; - * @return The bytes for wrdsSubKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWrdsSubKeyBytes() { - java.lang.Object ref = wrdsSubKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - wrdsSubKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); - } - if (!payload_.isEmpty()) { - output.writeBytes(2, payload_); - } - if (msgId_ != 0L) { - output.writeInt64(3, msgId_); - } - if (msgType_ != 0) { - output.writeInt32(4, msgType_); - } - if (offset_ != 0L) { - output.writeInt64(5, offset_); - } - if (needWrdsStore_ != false) { - output.writeBool(6, needWrdsStore_); - } - if (wrdsVersion_ != 0L) { - output.writeInt64(7, wrdsVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wrdsSubKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, wrdsSubKey_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, payload_); - } - if (msgId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, msgId_); - } - if (msgType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, msgType_); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, offset_); - } - if (needWrdsStore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, needWrdsStore_); - } - if (wrdsVersion_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, wrdsVersion_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(wrdsSubKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, wrdsSubKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) obj; - - if (!getMethod() - .equals(other.getMethod())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (getMsgId() - != other.getMsgId()) return false; - if (getMsgType() - != other.getMsgType()) return false; - if (getOffset() - != other.getOffset()) return false; - if (getNeedWrdsStore() - != other.getNeedWrdsStore()) return false; - if (getWrdsVersion() - != other.getWrdsVersion()) return false; - if (!getWrdsSubKey() - .equals(other.getWrdsSubKey())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METHOD_FIELD_NUMBER; - hash = (53 * hash) + getMethod().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (37 * hash) + MSG_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMsgId()); - hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMsgType(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); - hash = (37 * hash) + NEED_WRDS_STORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNeedWrdsStore()); - hash = (37 * hash) + WRDS_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWrdsVersion()); - hash = (37 * hash) + WRDS_SUB_KEY_FIELD_NUMBER; - hash = (53 * hash) + getWrdsSubKey().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - method_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - msgId_ = 0L; - msgType_ = 0; - offset_ = 0L; - needWrdsStore_ = false; - wrdsVersion_ = 0L; - wrdsSubKey_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_cmd_msg_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.method_ = method_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.payload_ = payload_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.msgId_ = msgId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.msgType_ = msgType_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.offset_ = offset_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.needWrdsStore_ = needWrdsStore_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.wrdsVersion_ = wrdsVersion_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.wrdsSubKey_ = wrdsSubKey_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.getDefaultInstance()) return this; - if (!other.getMethod().isEmpty()) { - method_ = other.method_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - if (other.getMsgId() != 0L) { - setMsgId(other.getMsgId()); - } - if (other.getMsgType() != 0) { - setMsgType(other.getMsgType()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getNeedWrdsStore() != false) { - setNeedWrdsStore(other.getNeedWrdsStore()); - } - if (other.getWrdsVersion() != 0L) { - setWrdsVersion(other.getWrdsVersion()); - } - if (!other.getWrdsSubKey().isEmpty()) { - wrdsSubKey_ = other.wrdsSubKey_; - bitField0_ |= 0x00000080; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - payload_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - msgId_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - msgType_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - needWrdsStore_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - wrdsVersion_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - wrdsSubKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object method_ = ""; - /** - * string method = 1; - * @return The method. - */ - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string method = 1; - * @return The bytes for method. - */ - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string method = 1; - * @param value The method to set. - * @return This builder for chaining. - */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - method_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string method = 1; - * @return This builder for chaining. - */ - public Builder clearMethod() { - method_ = getDefaultInstance().getMethod(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string method = 1; - * @param value The bytes for method to set. - * @return This builder for chaining. - */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - method_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 2; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 2; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - payload_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bytes payload = 2; - * @return This builder for chaining. - */ - public Builder clearPayload() { - bitField0_ = (bitField0_ & ~0x00000002); - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - - private long msgId_ ; - /** - * int64 msg_id = 3; - * @return The msgId. - */ - @java.lang.Override - public long getMsgId() { - return msgId_; - } - /** - * int64 msg_id = 3; - * @param value The msgId to set. - * @return This builder for chaining. - */ - public Builder setMsgId(long value) { - - msgId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 msg_id = 3; - * @return This builder for chaining. - */ - public Builder clearMsgId() { - bitField0_ = (bitField0_ & ~0x00000004); - msgId_ = 0L; - onChanged(); - return this; - } - - private int msgType_ ; - /** - * int32 msg_type = 4; - * @return The msgType. - */ - @java.lang.Override - public int getMsgType() { - return msgType_; - } - /** - * int32 msg_type = 4; - * @param value The msgType to set. - * @return This builder for chaining. - */ - public Builder setMsgType(int value) { - - msgType_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int32 msg_type = 4; - * @return This builder for chaining. - */ - public Builder clearMsgType() { - bitField0_ = (bitField0_ & ~0x00000008); - msgType_ = 0; - onChanged(); - return this; - } - - private long offset_ ; - /** - * int64 offset = 5; - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** - * int64 offset = 5; - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int64 offset = 5; - * @return This builder for chaining. - */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000010); - offset_ = 0L; - onChanged(); - return this; - } - - private boolean needWrdsStore_ ; - /** - * bool need_wrds_store = 6; - * @return The needWrdsStore. - */ - @java.lang.Override - public boolean getNeedWrdsStore() { - return needWrdsStore_; - } - /** - * bool need_wrds_store = 6; - * @param value The needWrdsStore to set. - * @return This builder for chaining. - */ - public Builder setNeedWrdsStore(boolean value) { - - needWrdsStore_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * bool need_wrds_store = 6; - * @return This builder for chaining. - */ - public Builder clearNeedWrdsStore() { - bitField0_ = (bitField0_ & ~0x00000020); - needWrdsStore_ = false; - onChanged(); - return this; - } - - private long wrdsVersion_ ; - /** - * int64 wrds_version = 7; - * @return The wrdsVersion. - */ - @java.lang.Override - public long getWrdsVersion() { - return wrdsVersion_; - } - /** - * int64 wrds_version = 7; - * @param value The wrdsVersion to set. - * @return This builder for chaining. - */ - public Builder setWrdsVersion(long value) { - - wrdsVersion_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int64 wrds_version = 7; - * @return This builder for chaining. - */ - public Builder clearWrdsVersion() { - bitField0_ = (bitField0_ & ~0x00000040); - wrdsVersion_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object wrdsSubKey_ = ""; - /** - * string wrds_sub_key = 8; - * @return The wrdsSubKey. - */ - public java.lang.String getWrdsSubKey() { - java.lang.Object ref = wrdsSubKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - wrdsSubKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string wrds_sub_key = 8; - * @return The bytes for wrdsSubKey. - */ - public com.google.protobuf.ByteString - getWrdsSubKeyBytes() { - java.lang.Object ref = wrdsSubKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - wrdsSubKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string wrds_sub_key = 8; - * @param value The wrdsSubKey to set. - * @return This builder for chaining. - */ - public Builder setWrdsSubKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - wrdsSubKey_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * string wrds_sub_key = 8; - * @return This builder for chaining. - */ - public Builder clearWrdsSubKey() { - wrdsSubKey_ = getDefaultInstance().getWrdsSubKey(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * string wrds_sub_key = 8; - * @param value The bytes for wrdsSubKey to set. - * @return This builder for chaining. - */ - public Builder setWrdsSubKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - wrdsSubKey_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_cmd_msg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_cmd_msgOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_cmd_msgOrBuilder.java deleted file mode 100644 index ed0175d5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_cmd_msgOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_cmd_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_cmd_msgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg) - com.google.protobuf.MessageOrBuilder { - - /** - * string method = 1; - * @return The method. - */ - java.lang.String getMethod(); - /** - * string method = 1; - * @return The bytes for method. - */ - com.google.protobuf.ByteString - getMethodBytes(); - - /** - * bytes payload = 2; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - - /** - * int64 msg_id = 3; - * @return The msgId. - */ - long getMsgId(); - - /** - * int32 msg_type = 4; - * @return The msgType. - */ - int getMsgType(); - - /** - * int64 offset = 5; - * @return The offset. - */ - long getOffset(); - - /** - * bool need_wrds_store = 6; - * @return The needWrdsStore. - */ - boolean getNeedWrdsStore(); - - /** - * int64 wrds_version = 7; - * @return The wrdsVersion. - */ - long getWrdsVersion(); - - /** - * string wrds_sub_key = 8; - * @return The wrdsSubKey. - */ - java.lang.String getWrdsSubKey(); - /** - * string wrds_sub_key = 8; - * @return The bytes for wrdsSubKey. - */ - com.google.protobuf.ByteString - getWrdsSubKeyBytes(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_chat_message_msg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_chat_message_msg.java deleted file mode 100644 index ae1a4d49..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_chat_message_msg.java +++ /dev/null @@ -1,2384 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_chat_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg} - */ -public final class douyin_webcast_chat_message_msg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) - douyin_webcast_chat_message_msgOrBuilder { - private static final long serialVersionUID = 0L; - // Use douyin_webcast_chat_message_msg.newBuilder() to construct. - private douyin_webcast_chat_message_msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_webcast_chat_message_msg() { - content_ = ""; - fullScreenTextColor_ = ""; - chatBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_webcast_chat_message_msg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_chat_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_chat_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.Builder.class); - } - - public static final int COMMON_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - @java.lang.Override - public boolean hasCommon() { - return common_ != null; - } - /** - * .Common common = 1; - * @return The common. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - /** - * .Common common = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - /** - * .User user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .User user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - /** - * .User user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - - public static final int CONTENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * string content = 3; - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } - } - /** - * string content = 3; - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VISIBLE_TO_SENDER_FIELD_NUMBER = 4; - private boolean visibleToSender_ = false; - /** - * bool visible_to_sender = 4; - * @return The visibleToSender. - */ - @java.lang.Override - public boolean getVisibleToSender() { - return visibleToSender_; - } - - public static final int BACKGROUND_IMAGE_FIELD_NUMBER = 5; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImage_; - /** - * .Image background_image = 5; - * @return Whether the backgroundImage field is set. - */ - @java.lang.Override - public boolean hasBackgroundImage() { - return backgroundImage_ != null; - } - /** - * .Image background_image = 5; - * @return The backgroundImage. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImage() { - return backgroundImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } - /** - * .Image background_image = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageOrBuilder() { - return backgroundImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } - - public static final int FULL_SCREEN_TEXT_COLOR_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object fullScreenTextColor_ = ""; - /** - * string full_screen_text_color = 6; - * @return The fullScreenTextColor. - */ - @java.lang.Override - public java.lang.String getFullScreenTextColor() { - java.lang.Object ref = fullScreenTextColor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullScreenTextColor_ = s; - return s; - } - } - /** - * string full_screen_text_color = 6; - * @return The bytes for fullScreenTextColor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFullScreenTextColorBytes() { - java.lang.Object ref = fullScreenTextColor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullScreenTextColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BACKGROUND_IMAGE_V2_FIELD_NUMBER = 7; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImageV2_; - /** - * .Image background_image_v2 = 7; - * @return Whether the backgroundImageV2 field is set. - */ - @java.lang.Override - public boolean hasBackgroundImageV2() { - return backgroundImageV2_ != null; - } - /** - * .Image background_image_v2 = 7; - * @return The backgroundImageV2. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImageV2() { - return backgroundImageV2_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } - /** - * .Image background_image_v2 = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageV2OrBuilder() { - return backgroundImageV2_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } - - public static final int GIFT_IMAGE_FIELD_NUMBER = 10; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image giftImage_; - /** - *
-   * PublicAreaCommon public_area_common = 9;
-   * 
- * - * .Image gift_image = 10; - * @return Whether the giftImage field is set. - */ - @java.lang.Override - public boolean hasGiftImage() { - return giftImage_ != null; - } - /** - *
-   * PublicAreaCommon public_area_common = 9;
-   * 
- * - * .Image gift_image = 10; - * @return The giftImage. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getGiftImage() { - return giftImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftImage_; - } - /** - *
-   * PublicAreaCommon public_area_common = 9;
-   * 
- * - * .Image gift_image = 10; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getGiftImageOrBuilder() { - return giftImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftImage_; - } - - public static final int AGREE_MSG_ID_FIELD_NUMBER = 11; - private long agreeMsgId_ = 0L; - /** - * uint64 agree_msg_id = 11; - * @return The agreeMsgId. - */ - @java.lang.Override - public long getAgreeMsgId() { - return agreeMsgId_; - } - - public static final int PRIORITY_LEVEL_FIELD_NUMBER = 12; - private int priorityLevel_ = 0; - /** - * uint32 priority_level = 12; - * @return The priorityLevel. - */ - @java.lang.Override - public int getPriorityLevel() { - return priorityLevel_; - } - - public static final int EVENT_TIME_FIELD_NUMBER = 15; - private long eventTime_ = 0L; - /** - *
-   * LandscapeAreaCommon landscape_area_common = 13;
-   * 
- * - * uint64 event_time = 15; - * @return The eventTime. - */ - @java.lang.Override - public long getEventTime() { - return eventTime_; - } - - public static final int SEND_REVIEW_FIELD_NUMBER = 16; - private boolean sendReview_ = false; - /** - * bool send_review = 16; - * @return The sendReview. - */ - @java.lang.Override - public boolean getSendReview() { - return sendReview_; - } - - public static final int FROM_INTERCOM_FIELD_NUMBER = 17; - private boolean fromIntercom_ = false; - /** - * bool from_intercom = 17; - * @return The fromIntercom. - */ - @java.lang.Override - public boolean getFromIntercom() { - return fromIntercom_; - } - - public static final int INTERCOM_HIDE_USER_CARD_FIELD_NUMBER = 18; - private boolean intercomHideUserCard_ = false; - /** - * bool intercom_hide_user_card = 18; - * @return The intercomHideUserCard. - */ - @java.lang.Override - public boolean getIntercomHideUserCard() { - return intercomHideUserCard_; - } - - public static final int CHAT_BY_FIELD_NUMBER = 20; - @SuppressWarnings("serial") - private volatile java.lang.Object chatBy_ = ""; - /** - *
-   * repeated string chatTagsList = 19;
-   * 
- * - * string chat_by = 20; - * @return The chatBy. - */ - @java.lang.Override - public java.lang.String getChatBy() { - java.lang.Object ref = chatBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chatBy_ = s; - return s; - } - } - /** - *
-   * repeated string chatTagsList = 19;
-   * 
- * - * string chat_by = 20; - * @return The bytes for chatBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getChatByBytes() { - java.lang.Object ref = chatBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDIVIDUAL_CHAT_PRIORITY_FIELD_NUMBER = 21; - private int individualChatPriority_ = 0; - /** - *
-   * Text rtf_content = 22 ;
-   * 
- * - * uint32 individual_chat_priority = 21; - * @return The individualChatPriority. - */ - @java.lang.Override - public int getIndividualChatPriority() { - return individualChatPriority_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (common_ != null) { - output.writeMessage(1, getCommon()); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); - } - if (visibleToSender_ != false) { - output.writeBool(4, visibleToSender_); - } - if (backgroundImage_ != null) { - output.writeMessage(5, getBackgroundImage()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullScreenTextColor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fullScreenTextColor_); - } - if (backgroundImageV2_ != null) { - output.writeMessage(7, getBackgroundImageV2()); - } - if (giftImage_ != null) { - output.writeMessage(10, getGiftImage()); - } - if (agreeMsgId_ != 0L) { - output.writeUInt64(11, agreeMsgId_); - } - if (priorityLevel_ != 0) { - output.writeUInt32(12, priorityLevel_); - } - if (eventTime_ != 0L) { - output.writeUInt64(15, eventTime_); - } - if (sendReview_ != false) { - output.writeBool(16, sendReview_); - } - if (fromIntercom_ != false) { - output.writeBool(17, fromIntercom_); - } - if (intercomHideUserCard_ != false) { - output.writeBool(18, intercomHideUserCard_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chatBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 20, chatBy_); - } - if (individualChatPriority_ != 0) { - output.writeUInt32(21, individualChatPriority_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); - } - if (visibleToSender_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, visibleToSender_); - } - if (backgroundImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getBackgroundImage()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullScreenTextColor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fullScreenTextColor_); - } - if (backgroundImageV2_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getBackgroundImageV2()); - } - if (giftImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getGiftImage()); - } - if (agreeMsgId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, agreeMsgId_); - } - if (priorityLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, priorityLevel_); - } - if (eventTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(15, eventTime_); - } - if (sendReview_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, sendReview_); - } - if (fromIntercom_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, fromIntercom_); - } - if (intercomHideUserCard_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, intercomHideUserCard_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(chatBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, chatBy_); - } - if (individualChatPriority_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(21, individualChatPriority_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) obj; - - if (hasCommon() != other.hasCommon()) return false; - if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; - } - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (!getContent() - .equals(other.getContent())) return false; - if (getVisibleToSender() - != other.getVisibleToSender()) return false; - if (hasBackgroundImage() != other.hasBackgroundImage()) return false; - if (hasBackgroundImage()) { - if (!getBackgroundImage() - .equals(other.getBackgroundImage())) return false; - } - if (!getFullScreenTextColor() - .equals(other.getFullScreenTextColor())) return false; - if (hasBackgroundImageV2() != other.hasBackgroundImageV2()) return false; - if (hasBackgroundImageV2()) { - if (!getBackgroundImageV2() - .equals(other.getBackgroundImageV2())) return false; - } - if (hasGiftImage() != other.hasGiftImage()) return false; - if (hasGiftImage()) { - if (!getGiftImage() - .equals(other.getGiftImage())) return false; - } - if (getAgreeMsgId() - != other.getAgreeMsgId()) return false; - if (getPriorityLevel() - != other.getPriorityLevel()) return false; - if (getEventTime() - != other.getEventTime()) return false; - if (getSendReview() - != other.getSendReview()) return false; - if (getFromIntercom() - != other.getFromIntercom()) return false; - if (getIntercomHideUserCard() - != other.getIntercomHideUserCard()) return false; - if (!getChatBy() - .equals(other.getChatBy())) return false; - if (getIndividualChatPriority() - != other.getIndividualChatPriority()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCommon()) { - hash = (37 * hash) + COMMON_FIELD_NUMBER; - hash = (53 * hash) + getCommon().hashCode(); - } - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + VISIBLE_TO_SENDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVisibleToSender()); - if (hasBackgroundImage()) { - hash = (37 * hash) + BACKGROUND_IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getBackgroundImage().hashCode(); - } - hash = (37 * hash) + FULL_SCREEN_TEXT_COLOR_FIELD_NUMBER; - hash = (53 * hash) + getFullScreenTextColor().hashCode(); - if (hasBackgroundImageV2()) { - hash = (37 * hash) + BACKGROUND_IMAGE_V2_FIELD_NUMBER; - hash = (53 * hash) + getBackgroundImageV2().hashCode(); - } - if (hasGiftImage()) { - hash = (37 * hash) + GIFT_IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getGiftImage().hashCode(); - } - hash = (37 * hash) + AGREE_MSG_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAgreeMsgId()); - hash = (37 * hash) + PRIORITY_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getPriorityLevel(); - hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEventTime()); - hash = (37 * hash) + SEND_REVIEW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSendReview()); - hash = (37 * hash) + FROM_INTERCOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFromIntercom()); - hash = (37 * hash) + INTERCOM_HIDE_USER_CARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIntercomHideUserCard()); - hash = (37 * hash) + CHAT_BY_FIELD_NUMBER; - hash = (53 * hash) + getChatBy().hashCode(); - hash = (37 * hash) + INDIVIDUAL_CHAT_PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getIndividualChatPriority(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_chat_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_chat_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - content_ = ""; - visibleToSender_ = false; - backgroundImage_ = null; - if (backgroundImageBuilder_ != null) { - backgroundImageBuilder_.dispose(); - backgroundImageBuilder_ = null; - } - fullScreenTextColor_ = ""; - backgroundImageV2_ = null; - if (backgroundImageV2Builder_ != null) { - backgroundImageV2Builder_.dispose(); - backgroundImageV2Builder_ = null; - } - giftImage_ = null; - if (giftImageBuilder_ != null) { - giftImageBuilder_.dispose(); - giftImageBuilder_ = null; - } - agreeMsgId_ = 0L; - priorityLevel_ = 0; - eventTime_ = 0L; - sendReview_ = false; - fromIntercom_ = false; - intercomHideUserCard_ = false; - chatBy_ = ""; - individualChatPriority_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_chat_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_chat_message_msg_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.common_ = commonBuilder_ == null - ? common_ - : commonBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.content_ = content_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.visibleToSender_ = visibleToSender_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.backgroundImage_ = backgroundImageBuilder_ == null - ? backgroundImage_ - : backgroundImageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.fullScreenTextColor_ = fullScreenTextColor_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.backgroundImageV2_ = backgroundImageV2Builder_ == null - ? backgroundImageV2_ - : backgroundImageV2Builder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.giftImage_ = giftImageBuilder_ == null - ? giftImage_ - : giftImageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.agreeMsgId_ = agreeMsgId_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.priorityLevel_ = priorityLevel_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.eventTime_ = eventTime_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.sendReview_ = sendReview_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.fromIntercom_ = fromIntercom_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.intercomHideUserCard_ = intercomHideUserCard_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.chatBy_ = chatBy_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.individualChatPriority_ = individualChatPriority_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg.getDefaultInstance()) return this; - if (other.hasCommon()) { - mergeCommon(other.getCommon()); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getVisibleToSender() != false) { - setVisibleToSender(other.getVisibleToSender()); - } - if (other.hasBackgroundImage()) { - mergeBackgroundImage(other.getBackgroundImage()); - } - if (!other.getFullScreenTextColor().isEmpty()) { - fullScreenTextColor_ = other.fullScreenTextColor_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasBackgroundImageV2()) { - mergeBackgroundImageV2(other.getBackgroundImageV2()); - } - if (other.hasGiftImage()) { - mergeGiftImage(other.getGiftImage()); - } - if (other.getAgreeMsgId() != 0L) { - setAgreeMsgId(other.getAgreeMsgId()); - } - if (other.getPriorityLevel() != 0) { - setPriorityLevel(other.getPriorityLevel()); - } - if (other.getEventTime() != 0L) { - setEventTime(other.getEventTime()); - } - if (other.getSendReview() != false) { - setSendReview(other.getSendReview()); - } - if (other.getFromIntercom() != false) { - setFromIntercom(other.getFromIntercom()); - } - if (other.getIntercomHideUserCard() != false) { - setIntercomHideUserCard(other.getIntercomHideUserCard()); - } - if (!other.getChatBy().isEmpty()) { - chatBy_ = other.chatBy_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (other.getIndividualChatPriority() != 0) { - setIndividualChatPriority(other.getIndividualChatPriority()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCommonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - visibleToSender_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getBackgroundImageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - fullScreenTextColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getBackgroundImageV2FieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 82: { - input.readMessage( - getGiftImageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - case 88: { - agreeMsgId_ = input.readUInt64(); - bitField0_ |= 0x00000100; - break; - } // case 88 - case 96: { - priorityLevel_ = input.readUInt32(); - bitField0_ |= 0x00000200; - break; - } // case 96 - case 120: { - eventTime_ = input.readUInt64(); - bitField0_ |= 0x00000400; - break; - } // case 120 - case 128: { - sendReview_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 128 - case 136: { - fromIntercom_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 136 - case 144: { - intercomHideUserCard_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 144 - case 162: { - chatBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 162 - case 168: { - individualChatPriority_ = input.readUInt32(); - bitField0_ |= 0x00008000; - break; - } // case 168 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> commonBuilder_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - public boolean hasCommon() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Common common = 1; - * @return The common. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - if (commonBuilder_ == null) { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } else { - return commonBuilder_.getMessage(); - } - } - /** - * .Common common = 1; - */ - public Builder setCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - common_ = value; - } else { - commonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder setCommon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder builderForValue) { - if (commonBuilder_ == null) { - common_ = builderForValue.build(); - } else { - commonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder mergeCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - common_ != null && - common_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance()) { - getCommonBuilder().mergeFrom(value); - } else { - common_ = value; - } - } else { - commonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder clearCommon() { - bitField0_ = (bitField0_ & ~0x00000001); - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder getCommonBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCommonFieldBuilder().getBuilder(); - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - if (commonBuilder_ != null) { - return commonBuilder_.getMessageOrBuilder(); - } else { - return common_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - } - /** - * .Common common = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> - getCommonFieldBuilder() { - if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); - common_ = null; - } - return commonBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> userBuilder_; - /** - * .User user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .User user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .User user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .User user = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - } - /** - * .User user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private java.lang.Object content_ = ""; - /** - * string content = 3; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 3; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 3; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string content = 3; - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string content = 3; - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private boolean visibleToSender_ ; - /** - * bool visible_to_sender = 4; - * @return The visibleToSender. - */ - @java.lang.Override - public boolean getVisibleToSender() { - return visibleToSender_; - } - /** - * bool visible_to_sender = 4; - * @param value The visibleToSender to set. - * @return This builder for chaining. - */ - public Builder setVisibleToSender(boolean value) { - - visibleToSender_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * bool visible_to_sender = 4; - * @return This builder for chaining. - */ - public Builder clearVisibleToSender() { - bitField0_ = (bitField0_ & ~0x00000008); - visibleToSender_ = false; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImage_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundImageBuilder_; - /** - * .Image background_image = 5; - * @return Whether the backgroundImage field is set. - */ - public boolean hasBackgroundImage() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .Image background_image = 5; - * @return The backgroundImage. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImage() { - if (backgroundImageBuilder_ == null) { - return backgroundImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } else { - return backgroundImageBuilder_.getMessage(); - } - } - /** - * .Image background_image = 5; - */ - public Builder setBackgroundImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - backgroundImage_ = value; - } else { - backgroundImageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .Image background_image = 5; - */ - public Builder setBackgroundImage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundImageBuilder_ == null) { - backgroundImage_ = builderForValue.build(); - } else { - backgroundImageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .Image background_image = 5; - */ - public Builder mergeBackgroundImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - backgroundImage_ != null && - backgroundImage_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundImageBuilder().mergeFrom(value); - } else { - backgroundImage_ = value; - } - } else { - backgroundImageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .Image background_image = 5; - */ - public Builder clearBackgroundImage() { - bitField0_ = (bitField0_ & ~0x00000010); - backgroundImage_ = null; - if (backgroundImageBuilder_ != null) { - backgroundImageBuilder_.dispose(); - backgroundImageBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image background_image = 5; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundImageBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getBackgroundImageFieldBuilder().getBuilder(); - } - /** - * .Image background_image = 5; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageOrBuilder() { - if (backgroundImageBuilder_ != null) { - return backgroundImageBuilder_.getMessageOrBuilder(); - } else { - return backgroundImage_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } - } - /** - * .Image background_image = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundImageFieldBuilder() { - if (backgroundImageBuilder_ == null) { - backgroundImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackgroundImage(), - getParentForChildren(), - isClean()); - backgroundImage_ = null; - } - return backgroundImageBuilder_; - } - - private java.lang.Object fullScreenTextColor_ = ""; - /** - * string full_screen_text_color = 6; - * @return The fullScreenTextColor. - */ - public java.lang.String getFullScreenTextColor() { - java.lang.Object ref = fullScreenTextColor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullScreenTextColor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string full_screen_text_color = 6; - * @return The bytes for fullScreenTextColor. - */ - public com.google.protobuf.ByteString - getFullScreenTextColorBytes() { - java.lang.Object ref = fullScreenTextColor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullScreenTextColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string full_screen_text_color = 6; - * @param value The fullScreenTextColor to set. - * @return This builder for chaining. - */ - public Builder setFullScreenTextColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fullScreenTextColor_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string full_screen_text_color = 6; - * @return This builder for chaining. - */ - public Builder clearFullScreenTextColor() { - fullScreenTextColor_ = getDefaultInstance().getFullScreenTextColor(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string full_screen_text_color = 6; - * @param value The bytes for fullScreenTextColor to set. - * @return This builder for chaining. - */ - public Builder setFullScreenTextColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fullScreenTextColor_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImageV2_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundImageV2Builder_; - /** - * .Image background_image_v2 = 7; - * @return Whether the backgroundImageV2 field is set. - */ - public boolean hasBackgroundImageV2() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .Image background_image_v2 = 7; - * @return The backgroundImageV2. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImageV2() { - if (backgroundImageV2Builder_ == null) { - return backgroundImageV2_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } else { - return backgroundImageV2Builder_.getMessage(); - } - } - /** - * .Image background_image_v2 = 7; - */ - public Builder setBackgroundImageV2(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageV2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - backgroundImageV2_ = value; - } else { - backgroundImageV2Builder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .Image background_image_v2 = 7; - */ - public Builder setBackgroundImageV2( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundImageV2Builder_ == null) { - backgroundImageV2_ = builderForValue.build(); - } else { - backgroundImageV2Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .Image background_image_v2 = 7; - */ - public Builder mergeBackgroundImageV2(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageV2Builder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - backgroundImageV2_ != null && - backgroundImageV2_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundImageV2Builder().mergeFrom(value); - } else { - backgroundImageV2_ = value; - } - } else { - backgroundImageV2Builder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .Image background_image_v2 = 7; - */ - public Builder clearBackgroundImageV2() { - bitField0_ = (bitField0_ & ~0x00000040); - backgroundImageV2_ = null; - if (backgroundImageV2Builder_ != null) { - backgroundImageV2Builder_.dispose(); - backgroundImageV2Builder_ = null; - } - onChanged(); - return this; - } - /** - * .Image background_image_v2 = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundImageV2Builder() { - bitField0_ |= 0x00000040; - onChanged(); - return getBackgroundImageV2FieldBuilder().getBuilder(); - } - /** - * .Image background_image_v2 = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageV2OrBuilder() { - if (backgroundImageV2Builder_ != null) { - return backgroundImageV2Builder_.getMessageOrBuilder(); - } else { - return backgroundImageV2_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } - } - /** - * .Image background_image_v2 = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundImageV2FieldBuilder() { - if (backgroundImageV2Builder_ == null) { - backgroundImageV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackgroundImageV2(), - getParentForChildren(), - isClean()); - backgroundImageV2_ = null; - } - return backgroundImageV2Builder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image giftImage_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> giftImageBuilder_; - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - * @return Whether the giftImage field is set. - */ - public boolean hasGiftImage() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - * @return The giftImage. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getGiftImage() { - if (giftImageBuilder_ == null) { - return giftImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftImage_; - } else { - return giftImageBuilder_.getMessage(); - } - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - public Builder setGiftImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (giftImageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - giftImage_ = value; - } else { - giftImageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - public Builder setGiftImage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (giftImageBuilder_ == null) { - giftImage_ = builderForValue.build(); - } else { - giftImageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - public Builder mergeGiftImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (giftImageBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - giftImage_ != null && - giftImage_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getGiftImageBuilder().mergeFrom(value); - } else { - giftImage_ = value; - } - } else { - giftImageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - public Builder clearGiftImage() { - bitField0_ = (bitField0_ & ~0x00000080); - giftImage_ = null; - if (giftImageBuilder_ != null) { - giftImageBuilder_.dispose(); - giftImageBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getGiftImageBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getGiftImageFieldBuilder().getBuilder(); - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getGiftImageOrBuilder() { - if (giftImageBuilder_ != null) { - return giftImageBuilder_.getMessageOrBuilder(); - } else { - return giftImage_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftImage_; - } - } - /** - *
-     * PublicAreaCommon public_area_common = 9;
-     * 
- * - * .Image gift_image = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getGiftImageFieldBuilder() { - if (giftImageBuilder_ == null) { - giftImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getGiftImage(), - getParentForChildren(), - isClean()); - giftImage_ = null; - } - return giftImageBuilder_; - } - - private long agreeMsgId_ ; - /** - * uint64 agree_msg_id = 11; - * @return The agreeMsgId. - */ - @java.lang.Override - public long getAgreeMsgId() { - return agreeMsgId_; - } - /** - * uint64 agree_msg_id = 11; - * @param value The agreeMsgId to set. - * @return This builder for chaining. - */ - public Builder setAgreeMsgId(long value) { - - agreeMsgId_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint64 agree_msg_id = 11; - * @return This builder for chaining. - */ - public Builder clearAgreeMsgId() { - bitField0_ = (bitField0_ & ~0x00000100); - agreeMsgId_ = 0L; - onChanged(); - return this; - } - - private int priorityLevel_ ; - /** - * uint32 priority_level = 12; - * @return The priorityLevel. - */ - @java.lang.Override - public int getPriorityLevel() { - return priorityLevel_; - } - /** - * uint32 priority_level = 12; - * @param value The priorityLevel to set. - * @return This builder for chaining. - */ - public Builder setPriorityLevel(int value) { - - priorityLevel_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * uint32 priority_level = 12; - * @return This builder for chaining. - */ - public Builder clearPriorityLevel() { - bitField0_ = (bitField0_ & ~0x00000200); - priorityLevel_ = 0; - onChanged(); - return this; - } - - private long eventTime_ ; - /** - *
-     * LandscapeAreaCommon landscape_area_common = 13;
-     * 
- * - * uint64 event_time = 15; - * @return The eventTime. - */ - @java.lang.Override - public long getEventTime() { - return eventTime_; - } - /** - *
-     * LandscapeAreaCommon landscape_area_common = 13;
-     * 
- * - * uint64 event_time = 15; - * @param value The eventTime to set. - * @return This builder for chaining. - */ - public Builder setEventTime(long value) { - - eventTime_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * LandscapeAreaCommon landscape_area_common = 13;
-     * 
- * - * uint64 event_time = 15; - * @return This builder for chaining. - */ - public Builder clearEventTime() { - bitField0_ = (bitField0_ & ~0x00000400); - eventTime_ = 0L; - onChanged(); - return this; - } - - private boolean sendReview_ ; - /** - * bool send_review = 16; - * @return The sendReview. - */ - @java.lang.Override - public boolean getSendReview() { - return sendReview_; - } - /** - * bool send_review = 16; - * @param value The sendReview to set. - * @return This builder for chaining. - */ - public Builder setSendReview(boolean value) { - - sendReview_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * bool send_review = 16; - * @return This builder for chaining. - */ - public Builder clearSendReview() { - bitField0_ = (bitField0_ & ~0x00000800); - sendReview_ = false; - onChanged(); - return this; - } - - private boolean fromIntercom_ ; - /** - * bool from_intercom = 17; - * @return The fromIntercom. - */ - @java.lang.Override - public boolean getFromIntercom() { - return fromIntercom_; - } - /** - * bool from_intercom = 17; - * @param value The fromIntercom to set. - * @return This builder for chaining. - */ - public Builder setFromIntercom(boolean value) { - - fromIntercom_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * bool from_intercom = 17; - * @return This builder for chaining. - */ - public Builder clearFromIntercom() { - bitField0_ = (bitField0_ & ~0x00001000); - fromIntercom_ = false; - onChanged(); - return this; - } - - private boolean intercomHideUserCard_ ; - /** - * bool intercom_hide_user_card = 18; - * @return The intercomHideUserCard. - */ - @java.lang.Override - public boolean getIntercomHideUserCard() { - return intercomHideUserCard_; - } - /** - * bool intercom_hide_user_card = 18; - * @param value The intercomHideUserCard to set. - * @return This builder for chaining. - */ - public Builder setIntercomHideUserCard(boolean value) { - - intercomHideUserCard_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * bool intercom_hide_user_card = 18; - * @return This builder for chaining. - */ - public Builder clearIntercomHideUserCard() { - bitField0_ = (bitField0_ & ~0x00002000); - intercomHideUserCard_ = false; - onChanged(); - return this; - } - - private java.lang.Object chatBy_ = ""; - /** - *
-     * repeated string chatTagsList = 19;
-     * 
- * - * string chat_by = 20; - * @return The chatBy. - */ - public java.lang.String getChatBy() { - java.lang.Object ref = chatBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chatBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * repeated string chatTagsList = 19;
-     * 
- * - * string chat_by = 20; - * @return The bytes for chatBy. - */ - public com.google.protobuf.ByteString - getChatByBytes() { - java.lang.Object ref = chatBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * repeated string chatTagsList = 19;
-     * 
- * - * string chat_by = 20; - * @param value The chatBy to set. - * @return This builder for chaining. - */ - public Builder setChatBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - chatBy_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - *
-     * repeated string chatTagsList = 19;
-     * 
- * - * string chat_by = 20; - * @return This builder for chaining. - */ - public Builder clearChatBy() { - chatBy_ = getDefaultInstance().getChatBy(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - *
-     * repeated string chatTagsList = 19;
-     * 
- * - * string chat_by = 20; - * @param value The bytes for chatBy to set. - * @return This builder for chaining. - */ - public Builder setChatByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - chatBy_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private int individualChatPriority_ ; - /** - *
-     * Text rtf_content = 22 ;
-     * 
- * - * uint32 individual_chat_priority = 21; - * @return The individualChatPriority. - */ - @java.lang.Override - public int getIndividualChatPriority() { - return individualChatPriority_; - } - /** - *
-     * Text rtf_content = 22 ;
-     * 
- * - * uint32 individual_chat_priority = 21; - * @param value The individualChatPriority to set. - * @return This builder for chaining. - */ - public Builder setIndividualChatPriority(int value) { - - individualChatPriority_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - *
-     * Text rtf_content = 22 ;
-     * 
- * - * uint32 individual_chat_priority = 21; - * @return This builder for chaining. - */ - public Builder clearIndividualChatPriority() { - bitField0_ = (bitField0_ & ~0x00008000); - individualChatPriority_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_webcast_chat_message_msg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_chat_message_msgOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_chat_message_msgOrBuilder.java deleted file mode 100644 index 961938ed..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_chat_message_msgOrBuilder.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_chat_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_webcast_chat_message_msgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_chat_message_msg) - com.google.protobuf.MessageOrBuilder { - - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - boolean hasCommon(); - /** - * .Common common = 1; - * @return The common. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon(); - /** - * .Common common = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder(); - - /** - * .User user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .User user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser(); - /** - * .User user = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder(); - - /** - * string content = 3; - * @return The content. - */ - java.lang.String getContent(); - /** - * string content = 3; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); - - /** - * bool visible_to_sender = 4; - * @return The visibleToSender. - */ - boolean getVisibleToSender(); - - /** - * .Image background_image = 5; - * @return Whether the backgroundImage field is set. - */ - boolean hasBackgroundImage(); - /** - * .Image background_image = 5; - * @return The backgroundImage. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImage(); - /** - * .Image background_image = 5; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageOrBuilder(); - - /** - * string full_screen_text_color = 6; - * @return The fullScreenTextColor. - */ - java.lang.String getFullScreenTextColor(); - /** - * string full_screen_text_color = 6; - * @return The bytes for fullScreenTextColor. - */ - com.google.protobuf.ByteString - getFullScreenTextColorBytes(); - - /** - * .Image background_image_v2 = 7; - * @return Whether the backgroundImageV2 field is set. - */ - boolean hasBackgroundImageV2(); - /** - * .Image background_image_v2 = 7; - * @return The backgroundImageV2. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImageV2(); - /** - * .Image background_image_v2 = 7; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageV2OrBuilder(); - - /** - *
-   * PublicAreaCommon public_area_common = 9;
-   * 
- * - * .Image gift_image = 10; - * @return Whether the giftImage field is set. - */ - boolean hasGiftImage(); - /** - *
-   * PublicAreaCommon public_area_common = 9;
-   * 
- * - * .Image gift_image = 10; - * @return The giftImage. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getGiftImage(); - /** - *
-   * PublicAreaCommon public_area_common = 9;
-   * 
- * - * .Image gift_image = 10; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getGiftImageOrBuilder(); - - /** - * uint64 agree_msg_id = 11; - * @return The agreeMsgId. - */ - long getAgreeMsgId(); - - /** - * uint32 priority_level = 12; - * @return The priorityLevel. - */ - int getPriorityLevel(); - - /** - *
-   * LandscapeAreaCommon landscape_area_common = 13;
-   * 
- * - * uint64 event_time = 15; - * @return The eventTime. - */ - long getEventTime(); - - /** - * bool send_review = 16; - * @return The sendReview. - */ - boolean getSendReview(); - - /** - * bool from_intercom = 17; - * @return The fromIntercom. - */ - boolean getFromIntercom(); - - /** - * bool intercom_hide_user_card = 18; - * @return The intercomHideUserCard. - */ - boolean getIntercomHideUserCard(); - - /** - *
-   * repeated string chatTagsList = 19;
-   * 
- * - * string chat_by = 20; - * @return The chatBy. - */ - java.lang.String getChatBy(); - /** - *
-   * repeated string chatTagsList = 19;
-   * 
- * - * string chat_by = 20; - * @return The bytes for chatBy. - */ - com.google.protobuf.ByteString - getChatByBytes(); - - /** - *
-   * Text rtf_content = 22 ;
-   * 
- * - * uint32 individual_chat_priority = 21; - * @return The individualChatPriority. - */ - int getIndividualChatPriority(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_gift_message_msg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_gift_message_msg.java deleted file mode 100644 index d4098dd6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_gift_message_msg.java +++ /dev/null @@ -1,3963 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_gift_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg} - */ -public final class douyin_webcast_gift_message_msg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) - douyin_webcast_gift_message_msgOrBuilder { - private static final long serialVersionUID = 0L; - // Use douyin_webcast_gift_message_msg.newBuilder() to construct. - private douyin_webcast_gift_message_msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_webcast_gift_message_msg() { - logId_ = ""; - interactGiftInfo_ = ""; - diyItemInfo_ = ""; - minAssetSetList_ = emptyLongList(); - toUserIdsList_ = emptyLongList(); - traceId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_webcast_gift_message_msg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_gift_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_gift_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.Builder.class); - } - - public static final int COMMON_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - @java.lang.Override - public boolean hasCommon() { - return common_ != null; - } - /** - * .Common common = 1; - * @return The common. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - /** - * .Common common = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - - public static final int LONG_GIFT_ID_FIELD_NUMBER = 2; - private long longGiftId_ = 0L; - /** - * uint64 long_gift_id = 2; - * @return The longGiftId. - */ - @java.lang.Override - public long getLongGiftId() { - return longGiftId_; - } - - public static final int FAN_TICKET_COUNT_FIELD_NUMBER = 3; - private long fanTicketCount_ = 0L; - /** - * uint64 fan_ticket_count = 3; - * @return The fanTicketCount. - */ - @java.lang.Override - public long getFanTicketCount() { - return fanTicketCount_; - } - - public static final int GROUP_COUNT_FIELD_NUMBER = 4; - private long groupCount_ = 0L; - /** - * uint64 group_count = 4; - * @return The groupCount. - */ - @java.lang.Override - public long getGroupCount() { - return groupCount_; - } - - public static final int REPEAT_COUNT_FIELD_NUMBER = 5; - private long repeatCount_ = 0L; - /** - * uint64 repeat_count = 5; - * @return The repeatCount. - */ - @java.lang.Override - public long getRepeatCount() { - return repeatCount_; - } - - public static final int COMBO_COUNT_FIELD_NUMBER = 6; - private long comboCount_ = 0L; - /** - * uint64 combo_count = 6; - * @return The comboCount. - */ - @java.lang.Override - public long getComboCount() { - return comboCount_; - } - - public static final int USER_FIELD_NUMBER = 7; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - /** - * .User user = 7; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .User user = 7; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - /** - * .User user = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - - public static final int TO_USER_FIELD_NUMBER = 8; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User toUser_; - /** - * .User to_user = 8; - * @return Whether the toUser field is set. - */ - @java.lang.Override - public boolean hasToUser() { - return toUser_ != null; - } - /** - * .User to_user = 8; - * @return The toUser. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getToUser() { - return toUser_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : toUser_; - } - /** - * .User to_user = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getToUserOrBuilder() { - return toUser_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : toUser_; - } - - public static final int REPEAT_END_FIELD_NUMBER = 9; - private int repeatEnd_ = 0; - /** - * uint32 repeat_end = 9; - * @return The repeatEnd. - */ - @java.lang.Override - public int getRepeatEnd() { - return repeatEnd_; - } - - public static final int TEXT_EFFECT_FIELD_NUMBER = 10; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect textEffect_; - /** - * .TextEffect text_effect = 10; - * @return Whether the textEffect field is set. - */ - @java.lang.Override - public boolean hasTextEffect() { - return textEffect_ != null; - } - /** - * .TextEffect text_effect = 10; - * @return The textEffect. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect getTextEffect() { - return textEffect_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance() : textEffect_; - } - /** - * .TextEffect text_effect = 10; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder getTextEffectOrBuilder() { - return textEffect_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance() : textEffect_; - } - - public static final int GROUP_ID_FIELD_NUMBER = 11; - private long groupId_ = 0L; - /** - * uint64 group_id = 11; - * @return The groupId. - */ - @java.lang.Override - public long getGroupId() { - return groupId_; - } - - public static final int INCOME_TASKGIFTS_FIELD_NUMBER = 12; - private long incomeTaskgifts_ = 0L; - /** - * uint64 income_taskgifts = 12; - * @return The incomeTaskgifts. - */ - @java.lang.Override - public long getIncomeTaskgifts() { - return incomeTaskgifts_; - } - - public static final int ROOM_FAN_TICKET_COUNT_FIELD_NUMBER = 13; - private long roomFanTicketCount_ = 0L; - /** - * uint64 room_fan_ticket_count = 13; - * @return The roomFanTicketCount. - */ - @java.lang.Override - public long getRoomFanTicketCount() { - return roomFanTicketCount_; - } - - public static final int PRIORITY_FIELD_NUMBER = 14; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority priority_; - /** - * .GiftIMPriority priority = 14; - * @return Whether the priority field is set. - */ - @java.lang.Override - public boolean hasPriority() { - return priority_ != null; - } - /** - * .GiftIMPriority priority = 14; - * @return The priority. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority getPriority() { - return priority_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance() : priority_; - } - /** - * .GiftIMPriority priority = 14; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder getPriorityOrBuilder() { - return priority_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance() : priority_; - } - - public static final int GIFT_FIELD_NUMBER = 15; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct gift_; - /** - * .GiftStruct gift = 15; - * @return Whether the gift field is set. - */ - @java.lang.Override - public boolean hasGift() { - return gift_ != null; - } - /** - * .GiftStruct gift = 15; - * @return The gift. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct getGift() { - return gift_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance() : gift_; - } - /** - * .GiftStruct gift = 15; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder getGiftOrBuilder() { - return gift_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance() : gift_; - } - - public static final int LOG_ID_FIELD_NUMBER = 16; - @SuppressWarnings("serial") - private volatile java.lang.Object logId_ = ""; - /** - * string log_id = 16; - * @return The logId. - */ - @java.lang.Override - public java.lang.String getLogId() { - java.lang.Object ref = logId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logId_ = s; - return s; - } - } - /** - * string log_id = 16; - * @return The bytes for logId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLogIdBytes() { - java.lang.Object ref = logId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEND_TYPE_FIELD_NUMBER = 17; - private long sendType_ = 0L; - /** - * uint64 send_type = 17; - * @return The sendType. - */ - @java.lang.Override - public long getSendType() { - return sendType_; - } - - public static final int PUBLIC_AREA_COMMON_FIELD_NUMBER = 18; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon publicAreaCommon_; - /** - * .PublicAreaCommon public_area_common = 18; - * @return Whether the publicAreaCommon field is set. - */ - @java.lang.Override - public boolean hasPublicAreaCommon() { - return publicAreaCommon_ != null; - } - /** - * .PublicAreaCommon public_area_common = 18; - * @return The publicAreaCommon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon getPublicAreaCommon() { - return publicAreaCommon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance() : publicAreaCommon_; - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder getPublicAreaCommonOrBuilder() { - return publicAreaCommon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance() : publicAreaCommon_; - } - - public static final int TRAY_DISPLAY_TEXT_FIELD_NUMBER = 19; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text trayDisplayText_; - /** - * .Text tray_display_text = 19; - * @return Whether the trayDisplayText field is set. - */ - @java.lang.Override - public boolean hasTrayDisplayText() { - return trayDisplayText_ != null; - } - /** - * .Text tray_display_text = 19; - * @return The trayDisplayText. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getTrayDisplayText() { - return trayDisplayText_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : trayDisplayText_; - } - /** - * .Text tray_display_text = 19; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getTrayDisplayTextOrBuilder() { - return trayDisplayText_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : trayDisplayText_; - } - - public static final int BANNED_DISPLAY_EFFECTS_FIELD_NUMBER = 20; - private long bannedDisplayEffects_ = 0L; - /** - * uint64 banned_display_effects = 20; - * @return The bannedDisplayEffects. - */ - @java.lang.Override - public long getBannedDisplayEffects() { - return bannedDisplayEffects_; - } - - public static final int DISPLAY_FOR_SELF_FIELD_NUMBER = 25; - private boolean displayForSelf_ = false; - /** - *
-   * GiftTrayInfo trayInfo = 21;
-   * AssetEffectMixInfo assetEffectMixInfo = 22;
-   * 
- * - * bool display_for_self = 25; - * @return The displayForSelf. - */ - @java.lang.Override - public boolean getDisplayForSelf() { - return displayForSelf_; - } - - public static final int INTERACT_GIFT_INFO_FIELD_NUMBER = 26; - @SuppressWarnings("serial") - private volatile java.lang.Object interactGiftInfo_ = ""; - /** - * string interact_gift_info = 26; - * @return The interactGiftInfo. - */ - @java.lang.Override - public java.lang.String getInteractGiftInfo() { - java.lang.Object ref = interactGiftInfo_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - interactGiftInfo_ = s; - return s; - } - } - /** - * string interact_gift_info = 26; - * @return The bytes for interactGiftInfo. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInteractGiftInfoBytes() { - java.lang.Object ref = interactGiftInfo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - interactGiftInfo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIY_ITEM_INFO_FIELD_NUMBER = 27; - @SuppressWarnings("serial") - private volatile java.lang.Object diyItemInfo_ = ""; - /** - * string diy_item_info = 27; - * @return The diyItemInfo. - */ - @java.lang.Override - public java.lang.String getDiyItemInfo() { - java.lang.Object ref = diyItemInfo_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diyItemInfo_ = s; - return s; - } - } - /** - * string diy_item_info = 27; - * @return The bytes for diyItemInfo. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDiyItemInfoBytes() { - java.lang.Object ref = diyItemInfo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diyItemInfo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_ASSET_SET_LIST_FIELD_NUMBER = 28; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList minAssetSetList_; - /** - * repeated uint64 min_asset_set_list = 28; - * @return A list containing the minAssetSetList. - */ - @java.lang.Override - public java.util.List - getMinAssetSetListList() { - return minAssetSetList_; - } - /** - * repeated uint64 min_asset_set_list = 28; - * @return The count of minAssetSetList. - */ - public int getMinAssetSetListCount() { - return minAssetSetList_.size(); - } - /** - * repeated uint64 min_asset_set_list = 28; - * @param index The index of the element to return. - * @return The minAssetSetList at the given index. - */ - public long getMinAssetSetList(int index) { - return minAssetSetList_.getLong(index); - } - private int minAssetSetListMemoizedSerializedSize = -1; - - public static final int TOTAL_COUNT_FIELD_NUMBER = 29; - private long totalCount_ = 0L; - /** - * uint64 total_count = 29; - * @return The totalCount. - */ - @java.lang.Override - public long getTotalCount() { - return totalCount_; - } - - public static final int CLIENT_GIFT_SOURCE_FIELD_NUMBER = 30; - private int clientGiftSource_ = 0; - /** - * uint32 client_gift_source = 30; - * @return The clientGiftSource. - */ - @java.lang.Override - public int getClientGiftSource() { - return clientGiftSource_; - } - - public static final int TO_USER_IDS_LIST_FIELD_NUMBER = 32; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList toUserIdsList_; - /** - *
-   * AnchorGiftData anchorGift = 31;
-   * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return A list containing the toUserIdsList. - */ - @java.lang.Override - public java.util.List - getToUserIdsListList() { - return toUserIdsList_; - } - /** - *
-   * AnchorGiftData anchorGift = 31;
-   * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return The count of toUserIdsList. - */ - public int getToUserIdsListCount() { - return toUserIdsList_.size(); - } - /** - *
-   * AnchorGiftData anchorGift = 31;
-   * 
- * - * repeated uint64 to_user_ids_list = 32; - * @param index The index of the element to return. - * @return The toUserIdsList at the given index. - */ - public long getToUserIdsList(int index) { - return toUserIdsList_.getLong(index); - } - private int toUserIdsListMemoizedSerializedSize = -1; - - public static final int SEND_TIMET_FIELD_NUMBER = 33; - private long sendTimet_ = 0L; - /** - * uint64 send_timet = 33; - * @return The sendTimet. - */ - @java.lang.Override - public long getSendTimet() { - return sendTimet_; - } - - public static final int FORCE_DISPLAY_EFFECTST_FIELD_NUMBER = 34; - private long forceDisplayEffectst_ = 0L; - /** - * uint64 force_display_effectst = 34; - * @return The forceDisplayEffectst. - */ - @java.lang.Override - public long getForceDisplayEffectst() { - return forceDisplayEffectst_; - } - - public static final int TRACE_ID_FIELD_NUMBER = 35; - @SuppressWarnings("serial") - private volatile java.lang.Object traceId_ = ""; - /** - * string trace_id = 35; - * @return The traceId. - */ - @java.lang.Override - public java.lang.String getTraceId() { - java.lang.Object ref = traceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - traceId_ = s; - return s; - } - } - /** - * string trace_id = 35; - * @return The bytes for traceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTraceIdBytes() { - java.lang.Object ref = traceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - traceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EFFECT_DISPLAY_TS_FIELD_NUMBER = 36; - private long effectDisplayTs_ = 0L; - /** - * uint64 effect_display_ts = 36; - * @return The effectDisplayTs. - */ - @java.lang.Override - public long getEffectDisplayTs() { - return effectDisplayTs_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (common_ != null) { - output.writeMessage(1, getCommon()); - } - if (longGiftId_ != 0L) { - output.writeUInt64(2, longGiftId_); - } - if (fanTicketCount_ != 0L) { - output.writeUInt64(3, fanTicketCount_); - } - if (groupCount_ != 0L) { - output.writeUInt64(4, groupCount_); - } - if (repeatCount_ != 0L) { - output.writeUInt64(5, repeatCount_); - } - if (comboCount_ != 0L) { - output.writeUInt64(6, comboCount_); - } - if (user_ != null) { - output.writeMessage(7, getUser()); - } - if (toUser_ != null) { - output.writeMessage(8, getToUser()); - } - if (repeatEnd_ != 0) { - output.writeUInt32(9, repeatEnd_); - } - if (textEffect_ != null) { - output.writeMessage(10, getTextEffect()); - } - if (groupId_ != 0L) { - output.writeUInt64(11, groupId_); - } - if (incomeTaskgifts_ != 0L) { - output.writeUInt64(12, incomeTaskgifts_); - } - if (roomFanTicketCount_ != 0L) { - output.writeUInt64(13, roomFanTicketCount_); - } - if (priority_ != null) { - output.writeMessage(14, getPriority()); - } - if (gift_ != null) { - output.writeMessage(15, getGift()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, logId_); - } - if (sendType_ != 0L) { - output.writeUInt64(17, sendType_); - } - if (publicAreaCommon_ != null) { - output.writeMessage(18, getPublicAreaCommon()); - } - if (trayDisplayText_ != null) { - output.writeMessage(19, getTrayDisplayText()); - } - if (bannedDisplayEffects_ != 0L) { - output.writeUInt64(20, bannedDisplayEffects_); - } - if (displayForSelf_ != false) { - output.writeBool(25, displayForSelf_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interactGiftInfo_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, interactGiftInfo_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diyItemInfo_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 27, diyItemInfo_); - } - if (getMinAssetSetListList().size() > 0) { - output.writeUInt32NoTag(226); - output.writeUInt32NoTag(minAssetSetListMemoizedSerializedSize); - } - for (int i = 0; i < minAssetSetList_.size(); i++) { - output.writeUInt64NoTag(minAssetSetList_.getLong(i)); - } - if (totalCount_ != 0L) { - output.writeUInt64(29, totalCount_); - } - if (clientGiftSource_ != 0) { - output.writeUInt32(30, clientGiftSource_); - } - if (getToUserIdsListList().size() > 0) { - output.writeUInt32NoTag(258); - output.writeUInt32NoTag(toUserIdsListMemoizedSerializedSize); - } - for (int i = 0; i < toUserIdsList_.size(); i++) { - output.writeUInt64NoTag(toUserIdsList_.getLong(i)); - } - if (sendTimet_ != 0L) { - output.writeUInt64(33, sendTimet_); - } - if (forceDisplayEffectst_ != 0L) { - output.writeUInt64(34, forceDisplayEffectst_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 35, traceId_); - } - if (effectDisplayTs_ != 0L) { - output.writeUInt64(36, effectDisplayTs_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); - } - if (longGiftId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, longGiftId_); - } - if (fanTicketCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, fanTicketCount_); - } - if (groupCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, groupCount_); - } - if (repeatCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, repeatCount_); - } - if (comboCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, comboCount_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUser()); - } - if (toUser_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getToUser()); - } - if (repeatEnd_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, repeatEnd_); - } - if (textEffect_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getTextEffect()); - } - if (groupId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, groupId_); - } - if (incomeTaskgifts_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(12, incomeTaskgifts_); - } - if (roomFanTicketCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(13, roomFanTicketCount_); - } - if (priority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getPriority()); - } - if (gift_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getGift()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, logId_); - } - if (sendType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(17, sendType_); - } - if (publicAreaCommon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getPublicAreaCommon()); - } - if (trayDisplayText_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getTrayDisplayText()); - } - if (bannedDisplayEffects_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(20, bannedDisplayEffects_); - } - if (displayForSelf_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(25, displayForSelf_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interactGiftInfo_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, interactGiftInfo_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diyItemInfo_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, diyItemInfo_); - } - { - int dataSize = 0; - for (int i = 0; i < minAssetSetList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(minAssetSetList_.getLong(i)); - } - size += dataSize; - if (!getMinAssetSetListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - minAssetSetListMemoizedSerializedSize = dataSize; - } - if (totalCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(29, totalCount_); - } - if (clientGiftSource_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(30, clientGiftSource_); - } - { - int dataSize = 0; - for (int i = 0; i < toUserIdsList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(toUserIdsList_.getLong(i)); - } - size += dataSize; - if (!getToUserIdsListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - toUserIdsListMemoizedSerializedSize = dataSize; - } - if (sendTimet_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(33, sendTimet_); - } - if (forceDisplayEffectst_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(34, forceDisplayEffectst_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(35, traceId_); - } - if (effectDisplayTs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(36, effectDisplayTs_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) obj; - - if (hasCommon() != other.hasCommon()) return false; - if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; - } - if (getLongGiftId() - != other.getLongGiftId()) return false; - if (getFanTicketCount() - != other.getFanTicketCount()) return false; - if (getGroupCount() - != other.getGroupCount()) return false; - if (getRepeatCount() - != other.getRepeatCount()) return false; - if (getComboCount() - != other.getComboCount()) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (hasToUser() != other.hasToUser()) return false; - if (hasToUser()) { - if (!getToUser() - .equals(other.getToUser())) return false; - } - if (getRepeatEnd() - != other.getRepeatEnd()) return false; - if (hasTextEffect() != other.hasTextEffect()) return false; - if (hasTextEffect()) { - if (!getTextEffect() - .equals(other.getTextEffect())) return false; - } - if (getGroupId() - != other.getGroupId()) return false; - if (getIncomeTaskgifts() - != other.getIncomeTaskgifts()) return false; - if (getRoomFanTicketCount() - != other.getRoomFanTicketCount()) return false; - if (hasPriority() != other.hasPriority()) return false; - if (hasPriority()) { - if (!getPriority() - .equals(other.getPriority())) return false; - } - if (hasGift() != other.hasGift()) return false; - if (hasGift()) { - if (!getGift() - .equals(other.getGift())) return false; - } - if (!getLogId() - .equals(other.getLogId())) return false; - if (getSendType() - != other.getSendType()) return false; - if (hasPublicAreaCommon() != other.hasPublicAreaCommon()) return false; - if (hasPublicAreaCommon()) { - if (!getPublicAreaCommon() - .equals(other.getPublicAreaCommon())) return false; - } - if (hasTrayDisplayText() != other.hasTrayDisplayText()) return false; - if (hasTrayDisplayText()) { - if (!getTrayDisplayText() - .equals(other.getTrayDisplayText())) return false; - } - if (getBannedDisplayEffects() - != other.getBannedDisplayEffects()) return false; - if (getDisplayForSelf() - != other.getDisplayForSelf()) return false; - if (!getInteractGiftInfo() - .equals(other.getInteractGiftInfo())) return false; - if (!getDiyItemInfo() - .equals(other.getDiyItemInfo())) return false; - if (!getMinAssetSetListList() - .equals(other.getMinAssetSetListList())) return false; - if (getTotalCount() - != other.getTotalCount()) return false; - if (getClientGiftSource() - != other.getClientGiftSource()) return false; - if (!getToUserIdsListList() - .equals(other.getToUserIdsListList())) return false; - if (getSendTimet() - != other.getSendTimet()) return false; - if (getForceDisplayEffectst() - != other.getForceDisplayEffectst()) return false; - if (!getTraceId() - .equals(other.getTraceId())) return false; - if (getEffectDisplayTs() - != other.getEffectDisplayTs()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCommon()) { - hash = (37 * hash) + COMMON_FIELD_NUMBER; - hash = (53 * hash) + getCommon().hashCode(); - } - hash = (37 * hash) + LONG_GIFT_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLongGiftId()); - hash = (37 * hash) + FAN_TICKET_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFanTicketCount()); - hash = (37 * hash) + GROUP_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGroupCount()); - hash = (37 * hash) + REPEAT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRepeatCount()); - hash = (37 * hash) + COMBO_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getComboCount()); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - if (hasToUser()) { - hash = (37 * hash) + TO_USER_FIELD_NUMBER; - hash = (53 * hash) + getToUser().hashCode(); - } - hash = (37 * hash) + REPEAT_END_FIELD_NUMBER; - hash = (53 * hash) + getRepeatEnd(); - if (hasTextEffect()) { - hash = (37 * hash) + TEXT_EFFECT_FIELD_NUMBER; - hash = (53 * hash) + getTextEffect().hashCode(); - } - hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGroupId()); - hash = (37 * hash) + INCOME_TASKGIFTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIncomeTaskgifts()); - hash = (37 * hash) + ROOM_FAN_TICKET_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRoomFanTicketCount()); - if (hasPriority()) { - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority().hashCode(); - } - if (hasGift()) { - hash = (37 * hash) + GIFT_FIELD_NUMBER; - hash = (53 * hash) + getGift().hashCode(); - } - hash = (37 * hash) + LOG_ID_FIELD_NUMBER; - hash = (53 * hash) + getLogId().hashCode(); - hash = (37 * hash) + SEND_TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSendType()); - if (hasPublicAreaCommon()) { - hash = (37 * hash) + PUBLIC_AREA_COMMON_FIELD_NUMBER; - hash = (53 * hash) + getPublicAreaCommon().hashCode(); - } - if (hasTrayDisplayText()) { - hash = (37 * hash) + TRAY_DISPLAY_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getTrayDisplayText().hashCode(); - } - hash = (37 * hash) + BANNED_DISPLAY_EFFECTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBannedDisplayEffects()); - hash = (37 * hash) + DISPLAY_FOR_SELF_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisplayForSelf()); - hash = (37 * hash) + INTERACT_GIFT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getInteractGiftInfo().hashCode(); - hash = (37 * hash) + DIY_ITEM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getDiyItemInfo().hashCode(); - if (getMinAssetSetListCount() > 0) { - hash = (37 * hash) + MIN_ASSET_SET_LIST_FIELD_NUMBER; - hash = (53 * hash) + getMinAssetSetListList().hashCode(); - } - hash = (37 * hash) + TOTAL_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalCount()); - hash = (37 * hash) + CLIENT_GIFT_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getClientGiftSource(); - if (getToUserIdsListCount() > 0) { - hash = (37 * hash) + TO_USER_IDS_LIST_FIELD_NUMBER; - hash = (53 * hash) + getToUserIdsListList().hashCode(); - } - hash = (37 * hash) + SEND_TIMET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSendTimet()); - hash = (37 * hash) + FORCE_DISPLAY_EFFECTST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getForceDisplayEffectst()); - hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; - hash = (53 * hash) + getTraceId().hashCode(); - hash = (37 * hash) + EFFECT_DISPLAY_TS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEffectDisplayTs()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_gift_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_gift_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - longGiftId_ = 0L; - fanTicketCount_ = 0L; - groupCount_ = 0L; - repeatCount_ = 0L; - comboCount_ = 0L; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - toUser_ = null; - if (toUserBuilder_ != null) { - toUserBuilder_.dispose(); - toUserBuilder_ = null; - } - repeatEnd_ = 0; - textEffect_ = null; - if (textEffectBuilder_ != null) { - textEffectBuilder_.dispose(); - textEffectBuilder_ = null; - } - groupId_ = 0L; - incomeTaskgifts_ = 0L; - roomFanTicketCount_ = 0L; - priority_ = null; - if (priorityBuilder_ != null) { - priorityBuilder_.dispose(); - priorityBuilder_ = null; - } - gift_ = null; - if (giftBuilder_ != null) { - giftBuilder_.dispose(); - giftBuilder_ = null; - } - logId_ = ""; - sendType_ = 0L; - publicAreaCommon_ = null; - if (publicAreaCommonBuilder_ != null) { - publicAreaCommonBuilder_.dispose(); - publicAreaCommonBuilder_ = null; - } - trayDisplayText_ = null; - if (trayDisplayTextBuilder_ != null) { - trayDisplayTextBuilder_.dispose(); - trayDisplayTextBuilder_ = null; - } - bannedDisplayEffects_ = 0L; - displayForSelf_ = false; - interactGiftInfo_ = ""; - diyItemInfo_ = ""; - minAssetSetList_ = emptyLongList(); - totalCount_ = 0L; - clientGiftSource_ = 0; - toUserIdsList_ = emptyLongList(); - sendTimet_ = 0L; - forceDisplayEffectst_ = 0L; - traceId_ = ""; - effectDisplayTs_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_gift_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_gift_message_msg_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg result) { - if (((bitField0_ & 0x00800000) != 0)) { - minAssetSetList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00800000); - } - result.minAssetSetList_ = minAssetSetList_; - if (((bitField0_ & 0x04000000) != 0)) { - toUserIdsList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x04000000); - } - result.toUserIdsList_ = toUserIdsList_; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.common_ = commonBuilder_ == null - ? common_ - : commonBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.longGiftId_ = longGiftId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fanTicketCount_ = fanTicketCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.groupCount_ = groupCount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.repeatCount_ = repeatCount_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.comboCount_ = comboCount_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.toUser_ = toUserBuilder_ == null - ? toUser_ - : toUserBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.repeatEnd_ = repeatEnd_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.textEffect_ = textEffectBuilder_ == null - ? textEffect_ - : textEffectBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.groupId_ = groupId_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.incomeTaskgifts_ = incomeTaskgifts_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.roomFanTicketCount_ = roomFanTicketCount_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.priority_ = priorityBuilder_ == null - ? priority_ - : priorityBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.gift_ = giftBuilder_ == null - ? gift_ - : giftBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.logId_ = logId_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.sendType_ = sendType_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.publicAreaCommon_ = publicAreaCommonBuilder_ == null - ? publicAreaCommon_ - : publicAreaCommonBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.trayDisplayText_ = trayDisplayTextBuilder_ == null - ? trayDisplayText_ - : trayDisplayTextBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.bannedDisplayEffects_ = bannedDisplayEffects_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.displayForSelf_ = displayForSelf_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.interactGiftInfo_ = interactGiftInfo_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.diyItemInfo_ = diyItemInfo_; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.totalCount_ = totalCount_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.clientGiftSource_ = clientGiftSource_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.sendTimet_ = sendTimet_; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.forceDisplayEffectst_ = forceDisplayEffectst_; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.traceId_ = traceId_; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.effectDisplayTs_ = effectDisplayTs_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg.getDefaultInstance()) return this; - if (other.hasCommon()) { - mergeCommon(other.getCommon()); - } - if (other.getLongGiftId() != 0L) { - setLongGiftId(other.getLongGiftId()); - } - if (other.getFanTicketCount() != 0L) { - setFanTicketCount(other.getFanTicketCount()); - } - if (other.getGroupCount() != 0L) { - setGroupCount(other.getGroupCount()); - } - if (other.getRepeatCount() != 0L) { - setRepeatCount(other.getRepeatCount()); - } - if (other.getComboCount() != 0L) { - setComboCount(other.getComboCount()); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.hasToUser()) { - mergeToUser(other.getToUser()); - } - if (other.getRepeatEnd() != 0) { - setRepeatEnd(other.getRepeatEnd()); - } - if (other.hasTextEffect()) { - mergeTextEffect(other.getTextEffect()); - } - if (other.getGroupId() != 0L) { - setGroupId(other.getGroupId()); - } - if (other.getIncomeTaskgifts() != 0L) { - setIncomeTaskgifts(other.getIncomeTaskgifts()); - } - if (other.getRoomFanTicketCount() != 0L) { - setRoomFanTicketCount(other.getRoomFanTicketCount()); - } - if (other.hasPriority()) { - mergePriority(other.getPriority()); - } - if (other.hasGift()) { - mergeGift(other.getGift()); - } - if (!other.getLogId().isEmpty()) { - logId_ = other.logId_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.getSendType() != 0L) { - setSendType(other.getSendType()); - } - if (other.hasPublicAreaCommon()) { - mergePublicAreaCommon(other.getPublicAreaCommon()); - } - if (other.hasTrayDisplayText()) { - mergeTrayDisplayText(other.getTrayDisplayText()); - } - if (other.getBannedDisplayEffects() != 0L) { - setBannedDisplayEffects(other.getBannedDisplayEffects()); - } - if (other.getDisplayForSelf() != false) { - setDisplayForSelf(other.getDisplayForSelf()); - } - if (!other.getInteractGiftInfo().isEmpty()) { - interactGiftInfo_ = other.interactGiftInfo_; - bitField0_ |= 0x00200000; - onChanged(); - } - if (!other.getDiyItemInfo().isEmpty()) { - diyItemInfo_ = other.diyItemInfo_; - bitField0_ |= 0x00400000; - onChanged(); - } - if (!other.minAssetSetList_.isEmpty()) { - if (minAssetSetList_.isEmpty()) { - minAssetSetList_ = other.minAssetSetList_; - bitField0_ = (bitField0_ & ~0x00800000); - } else { - ensureMinAssetSetListIsMutable(); - minAssetSetList_.addAll(other.minAssetSetList_); - } - onChanged(); - } - if (other.getTotalCount() != 0L) { - setTotalCount(other.getTotalCount()); - } - if (other.getClientGiftSource() != 0) { - setClientGiftSource(other.getClientGiftSource()); - } - if (!other.toUserIdsList_.isEmpty()) { - if (toUserIdsList_.isEmpty()) { - toUserIdsList_ = other.toUserIdsList_; - bitField0_ = (bitField0_ & ~0x04000000); - } else { - ensureToUserIdsListIsMutable(); - toUserIdsList_.addAll(other.toUserIdsList_); - } - onChanged(); - } - if (other.getSendTimet() != 0L) { - setSendTimet(other.getSendTimet()); - } - if (other.getForceDisplayEffectst() != 0L) { - setForceDisplayEffectst(other.getForceDisplayEffectst()); - } - if (!other.getTraceId().isEmpty()) { - traceId_ = other.traceId_; - bitField0_ |= 0x20000000; - onChanged(); - } - if (other.getEffectDisplayTs() != 0L) { - setEffectDisplayTs(other.getEffectDisplayTs()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCommonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - longGiftId_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - fanTicketCount_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - groupCount_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - repeatCount_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - comboCount_ = input.readUInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getToUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: { - repeatEnd_ = input.readUInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - input.readMessage( - getTextEffectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: { - groupId_ = input.readUInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - incomeTaskgifts_ = input.readUInt64(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 104: { - roomFanTicketCount_ = input.readUInt64(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 114: { - input.readMessage( - getPriorityFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 122: { - input.readMessage( - getGiftFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: { - logId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 136: { - sendType_ = input.readUInt64(); - bitField0_ |= 0x00010000; - break; - } // case 136 - case 146: { - input.readMessage( - getPublicAreaCommonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 146 - case 154: { - input.readMessage( - getTrayDisplayTextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 154 - case 160: { - bannedDisplayEffects_ = input.readUInt64(); - bitField0_ |= 0x00080000; - break; - } // case 160 - case 200: { - displayForSelf_ = input.readBool(); - bitField0_ |= 0x00100000; - break; - } // case 200 - case 210: { - interactGiftInfo_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; - break; - } // case 210 - case 218: { - diyItemInfo_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; - break; - } // case 218 - case 224: { - long v = input.readUInt64(); - ensureMinAssetSetListIsMutable(); - minAssetSetList_.addLong(v); - break; - } // case 224 - case 226: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureMinAssetSetListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - minAssetSetList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } // case 226 - case 232: { - totalCount_ = input.readUInt64(); - bitField0_ |= 0x01000000; - break; - } // case 232 - case 240: { - clientGiftSource_ = input.readUInt32(); - bitField0_ |= 0x02000000; - break; - } // case 240 - case 256: { - long v = input.readUInt64(); - ensureToUserIdsListIsMutable(); - toUserIdsList_.addLong(v); - break; - } // case 256 - case 258: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureToUserIdsListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - toUserIdsList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } // case 258 - case 264: { - sendTimet_ = input.readUInt64(); - bitField0_ |= 0x08000000; - break; - } // case 264 - case 272: { - forceDisplayEffectst_ = input.readUInt64(); - bitField0_ |= 0x10000000; - break; - } // case 272 - case 282: { - traceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; - break; - } // case 282 - case 288: { - effectDisplayTs_ = input.readUInt64(); - bitField0_ |= 0x40000000; - break; - } // case 288 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> commonBuilder_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - public boolean hasCommon() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Common common = 1; - * @return The common. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - if (commonBuilder_ == null) { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } else { - return commonBuilder_.getMessage(); - } - } - /** - * .Common common = 1; - */ - public Builder setCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - common_ = value; - } else { - commonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder setCommon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder builderForValue) { - if (commonBuilder_ == null) { - common_ = builderForValue.build(); - } else { - commonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder mergeCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - common_ != null && - common_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance()) { - getCommonBuilder().mergeFrom(value); - } else { - common_ = value; - } - } else { - commonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder clearCommon() { - bitField0_ = (bitField0_ & ~0x00000001); - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder getCommonBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCommonFieldBuilder().getBuilder(); - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - if (commonBuilder_ != null) { - return commonBuilder_.getMessageOrBuilder(); - } else { - return common_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - } - /** - * .Common common = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> - getCommonFieldBuilder() { - if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); - common_ = null; - } - return commonBuilder_; - } - - private long longGiftId_ ; - /** - * uint64 long_gift_id = 2; - * @return The longGiftId. - */ - @java.lang.Override - public long getLongGiftId() { - return longGiftId_; - } - /** - * uint64 long_gift_id = 2; - * @param value The longGiftId to set. - * @return This builder for chaining. - */ - public Builder setLongGiftId(long value) { - - longGiftId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 long_gift_id = 2; - * @return This builder for chaining. - */ - public Builder clearLongGiftId() { - bitField0_ = (bitField0_ & ~0x00000002); - longGiftId_ = 0L; - onChanged(); - return this; - } - - private long fanTicketCount_ ; - /** - * uint64 fan_ticket_count = 3; - * @return The fanTicketCount. - */ - @java.lang.Override - public long getFanTicketCount() { - return fanTicketCount_; - } - /** - * uint64 fan_ticket_count = 3; - * @param value The fanTicketCount to set. - * @return This builder for chaining. - */ - public Builder setFanTicketCount(long value) { - - fanTicketCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 fan_ticket_count = 3; - * @return This builder for chaining. - */ - public Builder clearFanTicketCount() { - bitField0_ = (bitField0_ & ~0x00000004); - fanTicketCount_ = 0L; - onChanged(); - return this; - } - - private long groupCount_ ; - /** - * uint64 group_count = 4; - * @return The groupCount. - */ - @java.lang.Override - public long getGroupCount() { - return groupCount_; - } - /** - * uint64 group_count = 4; - * @param value The groupCount to set. - * @return This builder for chaining. - */ - public Builder setGroupCount(long value) { - - groupCount_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 group_count = 4; - * @return This builder for chaining. - */ - public Builder clearGroupCount() { - bitField0_ = (bitField0_ & ~0x00000008); - groupCount_ = 0L; - onChanged(); - return this; - } - - private long repeatCount_ ; - /** - * uint64 repeat_count = 5; - * @return The repeatCount. - */ - @java.lang.Override - public long getRepeatCount() { - return repeatCount_; - } - /** - * uint64 repeat_count = 5; - * @param value The repeatCount to set. - * @return This builder for chaining. - */ - public Builder setRepeatCount(long value) { - - repeatCount_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 repeat_count = 5; - * @return This builder for chaining. - */ - public Builder clearRepeatCount() { - bitField0_ = (bitField0_ & ~0x00000010); - repeatCount_ = 0L; - onChanged(); - return this; - } - - private long comboCount_ ; - /** - * uint64 combo_count = 6; - * @return The comboCount. - */ - @java.lang.Override - public long getComboCount() { - return comboCount_; - } - /** - * uint64 combo_count = 6; - * @param value The comboCount to set. - * @return This builder for chaining. - */ - public Builder setComboCount(long value) { - - comboCount_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint64 combo_count = 6; - * @return This builder for chaining. - */ - public Builder clearComboCount() { - bitField0_ = (bitField0_ & ~0x00000020); - comboCount_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> userBuilder_; - /** - * .User user = 7; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .User user = 7; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .User user = 7; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .User user = 7; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .User user = 7; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .User user = 7; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000040); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User user = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getUserBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .User user = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - } - /** - * .User user = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User toUser_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> toUserBuilder_; - /** - * .User to_user = 8; - * @return Whether the toUser field is set. - */ - public boolean hasToUser() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * .User to_user = 8; - * @return The toUser. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getToUser() { - if (toUserBuilder_ == null) { - return toUser_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : toUser_; - } else { - return toUserBuilder_.getMessage(); - } - } - /** - * .User to_user = 8; - */ - public Builder setToUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (toUserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toUser_ = value; - } else { - toUserBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .User to_user = 8; - */ - public Builder setToUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (toUserBuilder_ == null) { - toUser_ = builderForValue.build(); - } else { - toUserBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .User to_user = 8; - */ - public Builder mergeToUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (toUserBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - toUser_ != null && - toUser_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getToUserBuilder().mergeFrom(value); - } else { - toUser_ = value; - } - } else { - toUserBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .User to_user = 8; - */ - public Builder clearToUser() { - bitField0_ = (bitField0_ & ~0x00000080); - toUser_ = null; - if (toUserBuilder_ != null) { - toUserBuilder_.dispose(); - toUserBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User to_user = 8; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getToUserBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getToUserFieldBuilder().getBuilder(); - } - /** - * .User to_user = 8; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getToUserOrBuilder() { - if (toUserBuilder_ != null) { - return toUserBuilder_.getMessageOrBuilder(); - } else { - return toUser_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : toUser_; - } - } - /** - * .User to_user = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getToUserFieldBuilder() { - if (toUserBuilder_ == null) { - toUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getToUser(), - getParentForChildren(), - isClean()); - toUser_ = null; - } - return toUserBuilder_; - } - - private int repeatEnd_ ; - /** - * uint32 repeat_end = 9; - * @return The repeatEnd. - */ - @java.lang.Override - public int getRepeatEnd() { - return repeatEnd_; - } - /** - * uint32 repeat_end = 9; - * @param value The repeatEnd to set. - * @return This builder for chaining. - */ - public Builder setRepeatEnd(int value) { - - repeatEnd_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint32 repeat_end = 9; - * @return This builder for chaining. - */ - public Builder clearRepeatEnd() { - bitField0_ = (bitField0_ & ~0x00000100); - repeatEnd_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect textEffect_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder> textEffectBuilder_; - /** - * .TextEffect text_effect = 10; - * @return Whether the textEffect field is set. - */ - public boolean hasTextEffect() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * .TextEffect text_effect = 10; - * @return The textEffect. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect getTextEffect() { - if (textEffectBuilder_ == null) { - return textEffect_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance() : textEffect_; - } else { - return textEffectBuilder_.getMessage(); - } - } - /** - * .TextEffect text_effect = 10; - */ - public Builder setTextEffect(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect value) { - if (textEffectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textEffect_ = value; - } else { - textEffectBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .TextEffect text_effect = 10; - */ - public Builder setTextEffect( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder builderForValue) { - if (textEffectBuilder_ == null) { - textEffect_ = builderForValue.build(); - } else { - textEffectBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .TextEffect text_effect = 10; - */ - public Builder mergeTextEffect(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect value) { - if (textEffectBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - textEffect_ != null && - textEffect_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance()) { - getTextEffectBuilder().mergeFrom(value); - } else { - textEffect_ = value; - } - } else { - textEffectBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .TextEffect text_effect = 10; - */ - public Builder clearTextEffect() { - bitField0_ = (bitField0_ & ~0x00000200); - textEffect_ = null; - if (textEffectBuilder_ != null) { - textEffectBuilder_.dispose(); - textEffectBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextEffect text_effect = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder getTextEffectBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getTextEffectFieldBuilder().getBuilder(); - } - /** - * .TextEffect text_effect = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder getTextEffectOrBuilder() { - if (textEffectBuilder_ != null) { - return textEffectBuilder_.getMessageOrBuilder(); - } else { - return textEffect_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance() : textEffect_; - } - } - /** - * .TextEffect text_effect = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder> - getTextEffectFieldBuilder() { - if (textEffectBuilder_ == null) { - textEffectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder>( - getTextEffect(), - getParentForChildren(), - isClean()); - textEffect_ = null; - } - return textEffectBuilder_; - } - - private long groupId_ ; - /** - * uint64 group_id = 11; - * @return The groupId. - */ - @java.lang.Override - public long getGroupId() { - return groupId_; - } - /** - * uint64 group_id = 11; - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(long value) { - - groupId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * uint64 group_id = 11; - * @return This builder for chaining. - */ - public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000400); - groupId_ = 0L; - onChanged(); - return this; - } - - private long incomeTaskgifts_ ; - /** - * uint64 income_taskgifts = 12; - * @return The incomeTaskgifts. - */ - @java.lang.Override - public long getIncomeTaskgifts() { - return incomeTaskgifts_; - } - /** - * uint64 income_taskgifts = 12; - * @param value The incomeTaskgifts to set. - * @return This builder for chaining. - */ - public Builder setIncomeTaskgifts(long value) { - - incomeTaskgifts_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * uint64 income_taskgifts = 12; - * @return This builder for chaining. - */ - public Builder clearIncomeTaskgifts() { - bitField0_ = (bitField0_ & ~0x00000800); - incomeTaskgifts_ = 0L; - onChanged(); - return this; - } - - private long roomFanTicketCount_ ; - /** - * uint64 room_fan_ticket_count = 13; - * @return The roomFanTicketCount. - */ - @java.lang.Override - public long getRoomFanTicketCount() { - return roomFanTicketCount_; - } - /** - * uint64 room_fan_ticket_count = 13; - * @param value The roomFanTicketCount to set. - * @return This builder for chaining. - */ - public Builder setRoomFanTicketCount(long value) { - - roomFanTicketCount_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * uint64 room_fan_ticket_count = 13; - * @return This builder for chaining. - */ - public Builder clearRoomFanTicketCount() { - bitField0_ = (bitField0_ & ~0x00001000); - roomFanTicketCount_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority priority_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder> priorityBuilder_; - /** - * .GiftIMPriority priority = 14; - * @return Whether the priority field is set. - */ - public boolean hasPriority() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * .GiftIMPriority priority = 14; - * @return The priority. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority getPriority() { - if (priorityBuilder_ == null) { - return priority_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance() : priority_; - } else { - return priorityBuilder_.getMessage(); - } - } - /** - * .GiftIMPriority priority = 14; - */ - public Builder setPriority(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority value) { - if (priorityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - priority_ = value; - } else { - priorityBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .GiftIMPriority priority = 14; - */ - public Builder setPriority( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder builderForValue) { - if (priorityBuilder_ == null) { - priority_ = builderForValue.build(); - } else { - priorityBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .GiftIMPriority priority = 14; - */ - public Builder mergePriority(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority value) { - if (priorityBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - priority_ != null && - priority_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance()) { - getPriorityBuilder().mergeFrom(value); - } else { - priority_ = value; - } - } else { - priorityBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .GiftIMPriority priority = 14; - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00002000); - priority_ = null; - if (priorityBuilder_ != null) { - priorityBuilder_.dispose(); - priorityBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .GiftIMPriority priority = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder getPriorityBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getPriorityFieldBuilder().getBuilder(); - } - /** - * .GiftIMPriority priority = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder getPriorityOrBuilder() { - if (priorityBuilder_ != null) { - return priorityBuilder_.getMessageOrBuilder(); - } else { - return priority_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance() : priority_; - } - } - /** - * .GiftIMPriority priority = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder> - getPriorityFieldBuilder() { - if (priorityBuilder_ == null) { - priorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder>( - getPriority(), - getParentForChildren(), - isClean()); - priority_ = null; - } - return priorityBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct gift_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder> giftBuilder_; - /** - * .GiftStruct gift = 15; - * @return Whether the gift field is set. - */ - public boolean hasGift() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * .GiftStruct gift = 15; - * @return The gift. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct getGift() { - if (giftBuilder_ == null) { - return gift_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance() : gift_; - } else { - return giftBuilder_.getMessage(); - } - } - /** - * .GiftStruct gift = 15; - */ - public Builder setGift(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct value) { - if (giftBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gift_ = value; - } else { - giftBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .GiftStruct gift = 15; - */ - public Builder setGift( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder builderForValue) { - if (giftBuilder_ == null) { - gift_ = builderForValue.build(); - } else { - giftBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .GiftStruct gift = 15; - */ - public Builder mergeGift(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct value) { - if (giftBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - gift_ != null && - gift_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance()) { - getGiftBuilder().mergeFrom(value); - } else { - gift_ = value; - } - } else { - giftBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .GiftStruct gift = 15; - */ - public Builder clearGift() { - bitField0_ = (bitField0_ & ~0x00004000); - gift_ = null; - if (giftBuilder_ != null) { - giftBuilder_.dispose(); - giftBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .GiftStruct gift = 15; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder getGiftBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getGiftFieldBuilder().getBuilder(); - } - /** - * .GiftStruct gift = 15; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder getGiftOrBuilder() { - if (giftBuilder_ != null) { - return giftBuilder_.getMessageOrBuilder(); - } else { - return gift_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance() : gift_; - } - } - /** - * .GiftStruct gift = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder> - getGiftFieldBuilder() { - if (giftBuilder_ == null) { - giftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder>( - getGift(), - getParentForChildren(), - isClean()); - gift_ = null; - } - return giftBuilder_; - } - - private java.lang.Object logId_ = ""; - /** - * string log_id = 16; - * @return The logId. - */ - public java.lang.String getLogId() { - java.lang.Object ref = logId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string log_id = 16; - * @return The bytes for logId. - */ - public com.google.protobuf.ByteString - getLogIdBytes() { - java.lang.Object ref = logId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string log_id = 16; - * @param value The logId to set. - * @return This builder for chaining. - */ - public Builder setLogId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - logId_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * string log_id = 16; - * @return This builder for chaining. - */ - public Builder clearLogId() { - logId_ = getDefaultInstance().getLogId(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * string log_id = 16; - * @param value The bytes for logId to set. - * @return This builder for chaining. - */ - public Builder setLogIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - logId_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private long sendType_ ; - /** - * uint64 send_type = 17; - * @return The sendType. - */ - @java.lang.Override - public long getSendType() { - return sendType_; - } - /** - * uint64 send_type = 17; - * @param value The sendType to set. - * @return This builder for chaining. - */ - public Builder setSendType(long value) { - - sendType_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * uint64 send_type = 17; - * @return This builder for chaining. - */ - public Builder clearSendType() { - bitField0_ = (bitField0_ & ~0x00010000); - sendType_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon publicAreaCommon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder> publicAreaCommonBuilder_; - /** - * .PublicAreaCommon public_area_common = 18; - * @return Whether the publicAreaCommon field is set. - */ - public boolean hasPublicAreaCommon() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * .PublicAreaCommon public_area_common = 18; - * @return The publicAreaCommon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon getPublicAreaCommon() { - if (publicAreaCommonBuilder_ == null) { - return publicAreaCommon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance() : publicAreaCommon_; - } else { - return publicAreaCommonBuilder_.getMessage(); - } - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - public Builder setPublicAreaCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon value) { - if (publicAreaCommonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publicAreaCommon_ = value; - } else { - publicAreaCommonBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - public Builder setPublicAreaCommon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder builderForValue) { - if (publicAreaCommonBuilder_ == null) { - publicAreaCommon_ = builderForValue.build(); - } else { - publicAreaCommonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - public Builder mergePublicAreaCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon value) { - if (publicAreaCommonBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) && - publicAreaCommon_ != null && - publicAreaCommon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance()) { - getPublicAreaCommonBuilder().mergeFrom(value); - } else { - publicAreaCommon_ = value; - } - } else { - publicAreaCommonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - public Builder clearPublicAreaCommon() { - bitField0_ = (bitField0_ & ~0x00020000); - publicAreaCommon_ = null; - if (publicAreaCommonBuilder_ != null) { - publicAreaCommonBuilder_.dispose(); - publicAreaCommonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder getPublicAreaCommonBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getPublicAreaCommonFieldBuilder().getBuilder(); - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder getPublicAreaCommonOrBuilder() { - if (publicAreaCommonBuilder_ != null) { - return publicAreaCommonBuilder_.getMessageOrBuilder(); - } else { - return publicAreaCommon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance() : publicAreaCommon_; - } - } - /** - * .PublicAreaCommon public_area_common = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder> - getPublicAreaCommonFieldBuilder() { - if (publicAreaCommonBuilder_ == null) { - publicAreaCommonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder>( - getPublicAreaCommon(), - getParentForChildren(), - isClean()); - publicAreaCommon_ = null; - } - return publicAreaCommonBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text trayDisplayText_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder> trayDisplayTextBuilder_; - /** - * .Text tray_display_text = 19; - * @return Whether the trayDisplayText field is set. - */ - public boolean hasTrayDisplayText() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * .Text tray_display_text = 19; - * @return The trayDisplayText. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getTrayDisplayText() { - if (trayDisplayTextBuilder_ == null) { - return trayDisplayText_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : trayDisplayText_; - } else { - return trayDisplayTextBuilder_.getMessage(); - } - } - /** - * .Text tray_display_text = 19; - */ - public Builder setTrayDisplayText(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text value) { - if (trayDisplayTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - trayDisplayText_ = value; - } else { - trayDisplayTextBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .Text tray_display_text = 19; - */ - public Builder setTrayDisplayText( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder builderForValue) { - if (trayDisplayTextBuilder_ == null) { - trayDisplayText_ = builderForValue.build(); - } else { - trayDisplayTextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .Text tray_display_text = 19; - */ - public Builder mergeTrayDisplayText(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text value) { - if (trayDisplayTextBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) && - trayDisplayText_ != null && - trayDisplayText_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance()) { - getTrayDisplayTextBuilder().mergeFrom(value); - } else { - trayDisplayText_ = value; - } - } else { - trayDisplayTextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .Text tray_display_text = 19; - */ - public Builder clearTrayDisplayText() { - bitField0_ = (bitField0_ & ~0x00040000); - trayDisplayText_ = null; - if (trayDisplayTextBuilder_ != null) { - trayDisplayTextBuilder_.dispose(); - trayDisplayTextBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Text tray_display_text = 19; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder getTrayDisplayTextBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getTrayDisplayTextFieldBuilder().getBuilder(); - } - /** - * .Text tray_display_text = 19; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getTrayDisplayTextOrBuilder() { - if (trayDisplayTextBuilder_ != null) { - return trayDisplayTextBuilder_.getMessageOrBuilder(); - } else { - return trayDisplayText_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : trayDisplayText_; - } - } - /** - * .Text tray_display_text = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder> - getTrayDisplayTextFieldBuilder() { - if (trayDisplayTextBuilder_ == null) { - trayDisplayTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder>( - getTrayDisplayText(), - getParentForChildren(), - isClean()); - trayDisplayText_ = null; - } - return trayDisplayTextBuilder_; - } - - private long bannedDisplayEffects_ ; - /** - * uint64 banned_display_effects = 20; - * @return The bannedDisplayEffects. - */ - @java.lang.Override - public long getBannedDisplayEffects() { - return bannedDisplayEffects_; - } - /** - * uint64 banned_display_effects = 20; - * @param value The bannedDisplayEffects to set. - * @return This builder for chaining. - */ - public Builder setBannedDisplayEffects(long value) { - - bannedDisplayEffects_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * uint64 banned_display_effects = 20; - * @return This builder for chaining. - */ - public Builder clearBannedDisplayEffects() { - bitField0_ = (bitField0_ & ~0x00080000); - bannedDisplayEffects_ = 0L; - onChanged(); - return this; - } - - private boolean displayForSelf_ ; - /** - *
-     * GiftTrayInfo trayInfo = 21;
-     * AssetEffectMixInfo assetEffectMixInfo = 22;
-     * 
- * - * bool display_for_self = 25; - * @return The displayForSelf. - */ - @java.lang.Override - public boolean getDisplayForSelf() { - return displayForSelf_; - } - /** - *
-     * GiftTrayInfo trayInfo = 21;
-     * AssetEffectMixInfo assetEffectMixInfo = 22;
-     * 
- * - * bool display_for_self = 25; - * @param value The displayForSelf to set. - * @return This builder for chaining. - */ - public Builder setDisplayForSelf(boolean value) { - - displayForSelf_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - *
-     * GiftTrayInfo trayInfo = 21;
-     * AssetEffectMixInfo assetEffectMixInfo = 22;
-     * 
- * - * bool display_for_self = 25; - * @return This builder for chaining. - */ - public Builder clearDisplayForSelf() { - bitField0_ = (bitField0_ & ~0x00100000); - displayForSelf_ = false; - onChanged(); - return this; - } - - private java.lang.Object interactGiftInfo_ = ""; - /** - * string interact_gift_info = 26; - * @return The interactGiftInfo. - */ - public java.lang.String getInteractGiftInfo() { - java.lang.Object ref = interactGiftInfo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - interactGiftInfo_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string interact_gift_info = 26; - * @return The bytes for interactGiftInfo. - */ - public com.google.protobuf.ByteString - getInteractGiftInfoBytes() { - java.lang.Object ref = interactGiftInfo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - interactGiftInfo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string interact_gift_info = 26; - * @param value The interactGiftInfo to set. - * @return This builder for chaining. - */ - public Builder setInteractGiftInfo( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - interactGiftInfo_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * string interact_gift_info = 26; - * @return This builder for chaining. - */ - public Builder clearInteractGiftInfo() { - interactGiftInfo_ = getDefaultInstance().getInteractGiftInfo(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - return this; - } - /** - * string interact_gift_info = 26; - * @param value The bytes for interactGiftInfo to set. - * @return This builder for chaining. - */ - public Builder setInteractGiftInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - interactGiftInfo_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - - private java.lang.Object diyItemInfo_ = ""; - /** - * string diy_item_info = 27; - * @return The diyItemInfo. - */ - public java.lang.String getDiyItemInfo() { - java.lang.Object ref = diyItemInfo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diyItemInfo_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string diy_item_info = 27; - * @return The bytes for diyItemInfo. - */ - public com.google.protobuf.ByteString - getDiyItemInfoBytes() { - java.lang.Object ref = diyItemInfo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diyItemInfo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string diy_item_info = 27; - * @param value The diyItemInfo to set. - * @return This builder for chaining. - */ - public Builder setDiyItemInfo( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - diyItemInfo_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * string diy_item_info = 27; - * @return This builder for chaining. - */ - public Builder clearDiyItemInfo() { - diyItemInfo_ = getDefaultInstance().getDiyItemInfo(); - bitField0_ = (bitField0_ & ~0x00400000); - onChanged(); - return this; - } - /** - * string diy_item_info = 27; - * @param value The bytes for diyItemInfo to set. - * @return This builder for chaining. - */ - public Builder setDiyItemInfoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - diyItemInfo_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList minAssetSetList_ = emptyLongList(); - private void ensureMinAssetSetListIsMutable() { - if (!((bitField0_ & 0x00800000) != 0)) { - minAssetSetList_ = mutableCopy(minAssetSetList_); - bitField0_ |= 0x00800000; - } - } - /** - * repeated uint64 min_asset_set_list = 28; - * @return A list containing the minAssetSetList. - */ - public java.util.List - getMinAssetSetListList() { - return ((bitField0_ & 0x00800000) != 0) ? - java.util.Collections.unmodifiableList(minAssetSetList_) : minAssetSetList_; - } - /** - * repeated uint64 min_asset_set_list = 28; - * @return The count of minAssetSetList. - */ - public int getMinAssetSetListCount() { - return minAssetSetList_.size(); - } - /** - * repeated uint64 min_asset_set_list = 28; - * @param index The index of the element to return. - * @return The minAssetSetList at the given index. - */ - public long getMinAssetSetList(int index) { - return minAssetSetList_.getLong(index); - } - /** - * repeated uint64 min_asset_set_list = 28; - * @param index The index to set the value at. - * @param value The minAssetSetList to set. - * @return This builder for chaining. - */ - public Builder setMinAssetSetList( - int index, long value) { - - ensureMinAssetSetListIsMutable(); - minAssetSetList_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 min_asset_set_list = 28; - * @param value The minAssetSetList to add. - * @return This builder for chaining. - */ - public Builder addMinAssetSetList(long value) { - - ensureMinAssetSetListIsMutable(); - minAssetSetList_.addLong(value); - onChanged(); - return this; - } - /** - * repeated uint64 min_asset_set_list = 28; - * @param values The minAssetSetList to add. - * @return This builder for chaining. - */ - public Builder addAllMinAssetSetList( - java.lang.Iterable values) { - ensureMinAssetSetListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, minAssetSetList_); - onChanged(); - return this; - } - /** - * repeated uint64 min_asset_set_list = 28; - * @return This builder for chaining. - */ - public Builder clearMinAssetSetList() { - minAssetSetList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00800000); - onChanged(); - return this; - } - - private long totalCount_ ; - /** - * uint64 total_count = 29; - * @return The totalCount. - */ - @java.lang.Override - public long getTotalCount() { - return totalCount_; - } - /** - * uint64 total_count = 29; - * @param value The totalCount to set. - * @return This builder for chaining. - */ - public Builder setTotalCount(long value) { - - totalCount_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * uint64 total_count = 29; - * @return This builder for chaining. - */ - public Builder clearTotalCount() { - bitField0_ = (bitField0_ & ~0x01000000); - totalCount_ = 0L; - onChanged(); - return this; - } - - private int clientGiftSource_ ; - /** - * uint32 client_gift_source = 30; - * @return The clientGiftSource. - */ - @java.lang.Override - public int getClientGiftSource() { - return clientGiftSource_; - } - /** - * uint32 client_gift_source = 30; - * @param value The clientGiftSource to set. - * @return This builder for chaining. - */ - public Builder setClientGiftSource(int value) { - - clientGiftSource_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * uint32 client_gift_source = 30; - * @return This builder for chaining. - */ - public Builder clearClientGiftSource() { - bitField0_ = (bitField0_ & ~0x02000000); - clientGiftSource_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList toUserIdsList_ = emptyLongList(); - private void ensureToUserIdsListIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { - toUserIdsList_ = mutableCopy(toUserIdsList_); - bitField0_ |= 0x04000000; - } - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return A list containing the toUserIdsList. - */ - public java.util.List - getToUserIdsListList() { - return ((bitField0_ & 0x04000000) != 0) ? - java.util.Collections.unmodifiableList(toUserIdsList_) : toUserIdsList_; - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return The count of toUserIdsList. - */ - public int getToUserIdsListCount() { - return toUserIdsList_.size(); - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @param index The index of the element to return. - * @return The toUserIdsList at the given index. - */ - public long getToUserIdsList(int index) { - return toUserIdsList_.getLong(index); - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @param index The index to set the value at. - * @param value The toUserIdsList to set. - * @return This builder for chaining. - */ - public Builder setToUserIdsList( - int index, long value) { - - ensureToUserIdsListIsMutable(); - toUserIdsList_.setLong(index, value); - onChanged(); - return this; - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @param value The toUserIdsList to add. - * @return This builder for chaining. - */ - public Builder addToUserIdsList(long value) { - - ensureToUserIdsListIsMutable(); - toUserIdsList_.addLong(value); - onChanged(); - return this; - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @param values The toUserIdsList to add. - * @return This builder for chaining. - */ - public Builder addAllToUserIdsList( - java.lang.Iterable values) { - ensureToUserIdsListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, toUserIdsList_); - onChanged(); - return this; - } - /** - *
-     * AnchorGiftData anchorGift = 31;
-     * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return This builder for chaining. - */ - public Builder clearToUserIdsList() { - toUserIdsList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x04000000); - onChanged(); - return this; - } - - private long sendTimet_ ; - /** - * uint64 send_timet = 33; - * @return The sendTimet. - */ - @java.lang.Override - public long getSendTimet() { - return sendTimet_; - } - /** - * uint64 send_timet = 33; - * @param value The sendTimet to set. - * @return This builder for chaining. - */ - public Builder setSendTimet(long value) { - - sendTimet_ = value; - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * uint64 send_timet = 33; - * @return This builder for chaining. - */ - public Builder clearSendTimet() { - bitField0_ = (bitField0_ & ~0x08000000); - sendTimet_ = 0L; - onChanged(); - return this; - } - - private long forceDisplayEffectst_ ; - /** - * uint64 force_display_effectst = 34; - * @return The forceDisplayEffectst. - */ - @java.lang.Override - public long getForceDisplayEffectst() { - return forceDisplayEffectst_; - } - /** - * uint64 force_display_effectst = 34; - * @param value The forceDisplayEffectst to set. - * @return This builder for chaining. - */ - public Builder setForceDisplayEffectst(long value) { - - forceDisplayEffectst_ = value; - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * uint64 force_display_effectst = 34; - * @return This builder for chaining. - */ - public Builder clearForceDisplayEffectst() { - bitField0_ = (bitField0_ & ~0x10000000); - forceDisplayEffectst_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object traceId_ = ""; - /** - * string trace_id = 35; - * @return The traceId. - */ - public java.lang.String getTraceId() { - java.lang.Object ref = traceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - traceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string trace_id = 35; - * @return The bytes for traceId. - */ - public com.google.protobuf.ByteString - getTraceIdBytes() { - java.lang.Object ref = traceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - traceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string trace_id = 35; - * @param value The traceId to set. - * @return This builder for chaining. - */ - public Builder setTraceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - traceId_ = value; - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * string trace_id = 35; - * @return This builder for chaining. - */ - public Builder clearTraceId() { - traceId_ = getDefaultInstance().getTraceId(); - bitField0_ = (bitField0_ & ~0x20000000); - onChanged(); - return this; - } - /** - * string trace_id = 35; - * @param value The bytes for traceId to set. - * @return This builder for chaining. - */ - public Builder setTraceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - traceId_ = value; - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - - private long effectDisplayTs_ ; - /** - * uint64 effect_display_ts = 36; - * @return The effectDisplayTs. - */ - @java.lang.Override - public long getEffectDisplayTs() { - return effectDisplayTs_; - } - /** - * uint64 effect_display_ts = 36; - * @param value The effectDisplayTs to set. - * @return This builder for chaining. - */ - public Builder setEffectDisplayTs(long value) { - - effectDisplayTs_ = value; - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * uint64 effect_display_ts = 36; - * @return This builder for chaining. - */ - public Builder clearEffectDisplayTs() { - bitField0_ = (bitField0_ & ~0x40000000); - effectDisplayTs_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_webcast_gift_message_msg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_gift_message_msgOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_gift_message_msgOrBuilder.java deleted file mode 100644 index 48301993..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_gift_message_msgOrBuilder.java +++ /dev/null @@ -1,354 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_gift_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_webcast_gift_message_msgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_gift_message_msg) - com.google.protobuf.MessageOrBuilder { - - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - boolean hasCommon(); - /** - * .Common common = 1; - * @return The common. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon(); - /** - * .Common common = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder(); - - /** - * uint64 long_gift_id = 2; - * @return The longGiftId. - */ - long getLongGiftId(); - - /** - * uint64 fan_ticket_count = 3; - * @return The fanTicketCount. - */ - long getFanTicketCount(); - - /** - * uint64 group_count = 4; - * @return The groupCount. - */ - long getGroupCount(); - - /** - * uint64 repeat_count = 5; - * @return The repeatCount. - */ - long getRepeatCount(); - - /** - * uint64 combo_count = 6; - * @return The comboCount. - */ - long getComboCount(); - - /** - * .User user = 7; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .User user = 7; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser(); - /** - * .User user = 7; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder(); - - /** - * .User to_user = 8; - * @return Whether the toUser field is set. - */ - boolean hasToUser(); - /** - * .User to_user = 8; - * @return The toUser. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getToUser(); - /** - * .User to_user = 8; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getToUserOrBuilder(); - - /** - * uint32 repeat_end = 9; - * @return The repeatEnd. - */ - int getRepeatEnd(); - - /** - * .TextEffect text_effect = 10; - * @return Whether the textEffect field is set. - */ - boolean hasTextEffect(); - /** - * .TextEffect text_effect = 10; - * @return The textEffect. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect getTextEffect(); - /** - * .TextEffect text_effect = 10; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder getTextEffectOrBuilder(); - - /** - * uint64 group_id = 11; - * @return The groupId. - */ - long getGroupId(); - - /** - * uint64 income_taskgifts = 12; - * @return The incomeTaskgifts. - */ - long getIncomeTaskgifts(); - - /** - * uint64 room_fan_ticket_count = 13; - * @return The roomFanTicketCount. - */ - long getRoomFanTicketCount(); - - /** - * .GiftIMPriority priority = 14; - * @return Whether the priority field is set. - */ - boolean hasPriority(); - /** - * .GiftIMPriority priority = 14; - * @return The priority. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority getPriority(); - /** - * .GiftIMPriority priority = 14; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder getPriorityOrBuilder(); - - /** - * .GiftStruct gift = 15; - * @return Whether the gift field is set. - */ - boolean hasGift(); - /** - * .GiftStruct gift = 15; - * @return The gift. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct getGift(); - /** - * .GiftStruct gift = 15; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder getGiftOrBuilder(); - - /** - * string log_id = 16; - * @return The logId. - */ - java.lang.String getLogId(); - /** - * string log_id = 16; - * @return The bytes for logId. - */ - com.google.protobuf.ByteString - getLogIdBytes(); - - /** - * uint64 send_type = 17; - * @return The sendType. - */ - long getSendType(); - - /** - * .PublicAreaCommon public_area_common = 18; - * @return Whether the publicAreaCommon field is set. - */ - boolean hasPublicAreaCommon(); - /** - * .PublicAreaCommon public_area_common = 18; - * @return The publicAreaCommon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon getPublicAreaCommon(); - /** - * .PublicAreaCommon public_area_common = 18; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder getPublicAreaCommonOrBuilder(); - - /** - * .Text tray_display_text = 19; - * @return Whether the trayDisplayText field is set. - */ - boolean hasTrayDisplayText(); - /** - * .Text tray_display_text = 19; - * @return The trayDisplayText. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getTrayDisplayText(); - /** - * .Text tray_display_text = 19; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getTrayDisplayTextOrBuilder(); - - /** - * uint64 banned_display_effects = 20; - * @return The bannedDisplayEffects. - */ - long getBannedDisplayEffects(); - - /** - *
-   * GiftTrayInfo trayInfo = 21;
-   * AssetEffectMixInfo assetEffectMixInfo = 22;
-   * 
- * - * bool display_for_self = 25; - * @return The displayForSelf. - */ - boolean getDisplayForSelf(); - - /** - * string interact_gift_info = 26; - * @return The interactGiftInfo. - */ - java.lang.String getInteractGiftInfo(); - /** - * string interact_gift_info = 26; - * @return The bytes for interactGiftInfo. - */ - com.google.protobuf.ByteString - getInteractGiftInfoBytes(); - - /** - * string diy_item_info = 27; - * @return The diyItemInfo. - */ - java.lang.String getDiyItemInfo(); - /** - * string diy_item_info = 27; - * @return The bytes for diyItemInfo. - */ - com.google.protobuf.ByteString - getDiyItemInfoBytes(); - - /** - * repeated uint64 min_asset_set_list = 28; - * @return A list containing the minAssetSetList. - */ - java.util.List getMinAssetSetListList(); - /** - * repeated uint64 min_asset_set_list = 28; - * @return The count of minAssetSetList. - */ - int getMinAssetSetListCount(); - /** - * repeated uint64 min_asset_set_list = 28; - * @param index The index of the element to return. - * @return The minAssetSetList at the given index. - */ - long getMinAssetSetList(int index); - - /** - * uint64 total_count = 29; - * @return The totalCount. - */ - long getTotalCount(); - - /** - * uint32 client_gift_source = 30; - * @return The clientGiftSource. - */ - int getClientGiftSource(); - - /** - *
-   * AnchorGiftData anchorGift = 31;
-   * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return A list containing the toUserIdsList. - */ - java.util.List getToUserIdsListList(); - /** - *
-   * AnchorGiftData anchorGift = 31;
-   * 
- * - * repeated uint64 to_user_ids_list = 32; - * @return The count of toUserIdsList. - */ - int getToUserIdsListCount(); - /** - *
-   * AnchorGiftData anchorGift = 31;
-   * 
- * - * repeated uint64 to_user_ids_list = 32; - * @param index The index of the element to return. - * @return The toUserIdsList at the given index. - */ - long getToUserIdsList(int index); - - /** - * uint64 send_timet = 33; - * @return The sendTimet. - */ - long getSendTimet(); - - /** - * uint64 force_display_effectst = 34; - * @return The forceDisplayEffectst. - */ - long getForceDisplayEffectst(); - - /** - * string trace_id = 35; - * @return The traceId. - */ - java.lang.String getTraceId(); - /** - * string trace_id = 35; - * @return The bytes for traceId. - */ - com.google.protobuf.ByteString - getTraceIdBytes(); - - /** - * uint64 effect_display_ts = 36; - * @return The effectDisplayTs. - */ - long getEffectDisplayTs(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msg.java deleted file mode 100644 index 8e79778c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msg.java +++ /dev/null @@ -1,1563 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_like_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg} - */ -public final class douyin_webcast_like_message_msg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) - douyin_webcast_like_message_msgOrBuilder { -private static final long serialVersionUID = 0L; - // Use douyin_webcast_like_message_msg.newBuilder() to construct. - private douyin_webcast_like_message_msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_webcast_like_message_msg() { - icon_ = ""; - scene_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_webcast_like_message_msg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.Builder.class); - } - - public static final int COMMON_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - @java.lang.Override - public boolean hasCommon() { - return common_ != null; - } - /** - * .Common common = 1; - * @return The common. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - /** - * .Common common = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - - public static final int COUNT_FIELD_NUMBER = 2; - private long count_ = 0L; - /** - * uint64 count = 2; - * @return The count. - */ - @java.lang.Override - public long getCount() { - return count_; - } - - public static final int TOTAL_FIELD_NUMBER = 3; - private long total_ = 0L; - /** - * uint64 total = 3; - * @return The total. - */ - @java.lang.Override - public long getTotal() { - return total_; - } - - public static final int COLOR_FIELD_NUMBER = 4; - private long color_ = 0L; - /** - * uint64 color = 4; - * @return The color. - */ - @java.lang.Override - public long getColor() { - return color_; - } - - public static final int USER_FIELD_NUMBER = 5; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - /** - * .User user = 5; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .User user = 5; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - /** - * .User user = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - - public static final int ICON_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object icon_ = ""; - /** - * string icon = 6; - * @return The icon. - */ - @java.lang.Override - public java.lang.String getIcon() { - java.lang.Object ref = icon_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - icon_ = s; - return s; - } - } - /** - * string icon = 6; - * @return The bytes for icon. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIconBytes() { - java.lang.Object ref = icon_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - icon_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOUBLELIKEDETAIL_FIELD_NUMBER = 7; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail doubleLikeDetail_; - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - * @return Whether the doubleLikeDetail field is set. - */ - @java.lang.Override - public boolean hasDoubleLikeDetail() { - return doubleLikeDetail_ != null; - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - * @return The doubleLikeDetail. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail getDoubleLikeDetail() { - return doubleLikeDetail_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance() : doubleLikeDetail_; - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder getDoubleLikeDetailOrBuilder() { - return doubleLikeDetail_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance() : doubleLikeDetail_; - } - - public static final int LINKMICGUESTUID_FIELD_NUMBER = 9; - private long linkmicGuestUid_ = 0L; - /** - *
-   * DisplayControlInfo displayControlInfo = 8;
-   * 
- * - * uint64 linkmicGuestUid = 9; - * @return The linkmicGuestUid. - */ - @java.lang.Override - public long getLinkmicGuestUid() { - return linkmicGuestUid_; - } - - public static final int SCENE_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object scene_ = ""; - /** - *
-   * PicoDisplayInfo picoDisplayInfo = 11;
-   * = 12;
-   * 
- * - * string scene = 10; - * @return The scene. - */ - @java.lang.Override - public java.lang.String getScene() { - java.lang.Object ref = scene_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scene_ = s; - return s; - } - } - /** - *
-   * PicoDisplayInfo picoDisplayInfo = 11;
-   * = 12;
-   * 
- * - * string scene = 10; - * @return The bytes for scene. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSceneBytes() { - java.lang.Object ref = scene_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scene_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (common_ != null) { - output.writeMessage(1, getCommon()); - } - if (count_ != 0L) { - output.writeUInt64(2, count_); - } - if (total_ != 0L) { - output.writeUInt64(3, total_); - } - if (color_ != 0L) { - output.writeUInt64(4, color_); - } - if (user_ != null) { - output.writeMessage(5, getUser()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icon_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, icon_); - } - if (doubleLikeDetail_ != null) { - output.writeMessage(7, getDoubleLikeDetail()); - } - if (linkmicGuestUid_ != 0L) { - output.writeUInt64(9, linkmicGuestUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scene_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, scene_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); - } - if (count_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, count_); - } - if (total_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, total_); - } - if (color_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, color_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUser()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(icon_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, icon_); - } - if (doubleLikeDetail_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDoubleLikeDetail()); - } - if (linkmicGuestUid_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, linkmicGuestUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scene_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, scene_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) obj; - - if (hasCommon() != other.hasCommon()) return false; - if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; - } - if (getCount() - != other.getCount()) return false; - if (getTotal() - != other.getTotal()) return false; - if (getColor() - != other.getColor()) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (!getIcon() - .equals(other.getIcon())) return false; - if (hasDoubleLikeDetail() != other.hasDoubleLikeDetail()) return false; - if (hasDoubleLikeDetail()) { - if (!getDoubleLikeDetail() - .equals(other.getDoubleLikeDetail())) return false; - } - if (getLinkmicGuestUid() - != other.getLinkmicGuestUid()) return false; - if (!getScene() - .equals(other.getScene())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCommon()) { - hash = (37 * hash) + COMMON_FIELD_NUMBER; - hash = (53 * hash) + getCommon().hashCode(); - } - hash = (37 * hash) + COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCount()); - hash = (37 * hash) + TOTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotal()); - hash = (37 * hash) + COLOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getColor()); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + ICON_FIELD_NUMBER; - hash = (53 * hash) + getIcon().hashCode(); - if (hasDoubleLikeDetail()) { - hash = (37 * hash) + DOUBLELIKEDETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDoubleLikeDetail().hashCode(); - } - hash = (37 * hash) + LINKMICGUESTUID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLinkmicGuestUid()); - hash = (37 * hash) + SCENE_FIELD_NUMBER; - hash = (53 * hash) + getScene().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - count_ = 0L; - total_ = 0L; - color_ = 0L; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - icon_ = ""; - doubleLikeDetail_ = null; - if (doubleLikeDetailBuilder_ != null) { - doubleLikeDetailBuilder_.dispose(); - doubleLikeDetailBuilder_ = null; - } - linkmicGuestUid_ = 0L; - scene_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.common_ = commonBuilder_ == null - ? common_ - : commonBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.count_ = count_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.total_ = total_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.color_ = color_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.icon_ = icon_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.doubleLikeDetail_ = doubleLikeDetailBuilder_ == null - ? doubleLikeDetail_ - : doubleLikeDetailBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.linkmicGuestUid_ = linkmicGuestUid_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.scene_ = scene_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg.getDefaultInstance()) return this; - if (other.hasCommon()) { - mergeCommon(other.getCommon()); - } - if (other.getCount() != 0L) { - setCount(other.getCount()); - } - if (other.getTotal() != 0L) { - setTotal(other.getTotal()); - } - if (other.getColor() != 0L) { - setColor(other.getColor()); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (!other.getIcon().isEmpty()) { - icon_ = other.icon_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasDoubleLikeDetail()) { - mergeDoubleLikeDetail(other.getDoubleLikeDetail()); - } - if (other.getLinkmicGuestUid() != 0L) { - setLinkmicGuestUid(other.getLinkmicGuestUid()); - } - if (!other.getScene().isEmpty()) { - scene_ = other.scene_; - bitField0_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCommonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - count_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - total_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - color_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - icon_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getDoubleLikeDetailFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 72: { - linkmicGuestUid_ = input.readUInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - scene_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> commonBuilder_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - public boolean hasCommon() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Common common = 1; - * @return The common. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - if (commonBuilder_ == null) { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } else { - return commonBuilder_.getMessage(); - } - } - /** - * .Common common = 1; - */ - public Builder setCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - common_ = value; - } else { - commonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder setCommon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder builderForValue) { - if (commonBuilder_ == null) { - common_ = builderForValue.build(); - } else { - commonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder mergeCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - common_ != null && - common_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance()) { - getCommonBuilder().mergeFrom(value); - } else { - common_ = value; - } - } else { - commonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder clearCommon() { - bitField0_ = (bitField0_ & ~0x00000001); - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder getCommonBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCommonFieldBuilder().getBuilder(); - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - if (commonBuilder_ != null) { - return commonBuilder_.getMessageOrBuilder(); - } else { - return common_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - } - /** - * .Common common = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> - getCommonFieldBuilder() { - if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); - common_ = null; - } - return commonBuilder_; - } - - private long count_ ; - /** - * uint64 count = 2; - * @return The count. - */ - @java.lang.Override - public long getCount() { - return count_; - } - /** - * uint64 count = 2; - * @param value The count to set. - * @return This builder for chaining. - */ - public Builder setCount(long value) { - - count_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 count = 2; - * @return This builder for chaining. - */ - public Builder clearCount() { - bitField0_ = (bitField0_ & ~0x00000002); - count_ = 0L; - onChanged(); - return this; - } - - private long total_ ; - /** - * uint64 total = 3; - * @return The total. - */ - @java.lang.Override - public long getTotal() { - return total_; - } - /** - * uint64 total = 3; - * @param value The total to set. - * @return This builder for chaining. - */ - public Builder setTotal(long value) { - - total_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 total = 3; - * @return This builder for chaining. - */ - public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000004); - total_ = 0L; - onChanged(); - return this; - } - - private long color_ ; - /** - * uint64 color = 4; - * @return The color. - */ - @java.lang.Override - public long getColor() { - return color_; - } - /** - * uint64 color = 4; - * @param value The color to set. - * @return This builder for chaining. - */ - public Builder setColor(long value) { - - color_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 color = 4; - * @return This builder for chaining. - */ - public Builder clearColor() { - bitField0_ = (bitField0_ & ~0x00000008); - color_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> userBuilder_; - /** - * .User user = 5; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .User user = 5; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .User user = 5; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .User user = 5; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .User user = 5; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .User user = 5; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000010); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User user = 5; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getUserBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .User user = 5; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - } - /** - * .User user = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private java.lang.Object icon_ = ""; - /** - * string icon = 6; - * @return The icon. - */ - public java.lang.String getIcon() { - java.lang.Object ref = icon_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - icon_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string icon = 6; - * @return The bytes for icon. - */ - public com.google.protobuf.ByteString - getIconBytes() { - java.lang.Object ref = icon_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - icon_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string icon = 6; - * @param value The icon to set. - * @return This builder for chaining. - */ - public Builder setIcon( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - icon_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string icon = 6; - * @return This builder for chaining. - */ - public Builder clearIcon() { - icon_ = getDefaultInstance().getIcon(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string icon = 6; - * @param value The bytes for icon to set. - * @return This builder for chaining. - */ - public Builder setIconBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - icon_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail doubleLikeDetail_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder> doubleLikeDetailBuilder_; - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - * @return Whether the doubleLikeDetail field is set. - */ - public boolean hasDoubleLikeDetail() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - * @return The doubleLikeDetail. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail getDoubleLikeDetail() { - if (doubleLikeDetailBuilder_ == null) { - return doubleLikeDetail_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance() : doubleLikeDetail_; - } else { - return doubleLikeDetailBuilder_.getMessage(); - } - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - public Builder setDoubleLikeDetail(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail value) { - if (doubleLikeDetailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - doubleLikeDetail_ = value; - } else { - doubleLikeDetailBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - public Builder setDoubleLikeDetail( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder builderForValue) { - if (doubleLikeDetailBuilder_ == null) { - doubleLikeDetail_ = builderForValue.build(); - } else { - doubleLikeDetailBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - public Builder mergeDoubleLikeDetail(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail value) { - if (doubleLikeDetailBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - doubleLikeDetail_ != null && - doubleLikeDetail_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance()) { - getDoubleLikeDetailBuilder().mergeFrom(value); - } else { - doubleLikeDetail_ = value; - } - } else { - doubleLikeDetailBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - public Builder clearDoubleLikeDetail() { - bitField0_ = (bitField0_ & ~0x00000040); - doubleLikeDetail_ = null; - if (doubleLikeDetailBuilder_ != null) { - doubleLikeDetailBuilder_.dispose(); - doubleLikeDetailBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder getDoubleLikeDetailBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getDoubleLikeDetailFieldBuilder().getBuilder(); - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder getDoubleLikeDetailOrBuilder() { - if (doubleLikeDetailBuilder_ != null) { - return doubleLikeDetailBuilder_.getMessageOrBuilder(); - } else { - return doubleLikeDetail_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance() : doubleLikeDetail_; - } - } - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder> - getDoubleLikeDetailFieldBuilder() { - if (doubleLikeDetailBuilder_ == null) { - doubleLikeDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder>( - getDoubleLikeDetail(), - getParentForChildren(), - isClean()); - doubleLikeDetail_ = null; - } - return doubleLikeDetailBuilder_; - } - - private long linkmicGuestUid_ ; - /** - *
-     * DisplayControlInfo displayControlInfo = 8;
-     * 
- * - * uint64 linkmicGuestUid = 9; - * @return The linkmicGuestUid. - */ - @java.lang.Override - public long getLinkmicGuestUid() { - return linkmicGuestUid_; - } - /** - *
-     * DisplayControlInfo displayControlInfo = 8;
-     * 
- * - * uint64 linkmicGuestUid = 9; - * @param value The linkmicGuestUid to set. - * @return This builder for chaining. - */ - public Builder setLinkmicGuestUid(long value) { - - linkmicGuestUid_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * DisplayControlInfo displayControlInfo = 8;
-     * 
- * - * uint64 linkmicGuestUid = 9; - * @return This builder for chaining. - */ - public Builder clearLinkmicGuestUid() { - bitField0_ = (bitField0_ & ~0x00000080); - linkmicGuestUid_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object scene_ = ""; - /** - *
-     * PicoDisplayInfo picoDisplayInfo = 11;
-     * = 12;
-     * 
- * - * string scene = 10; - * @return The scene. - */ - public java.lang.String getScene() { - java.lang.Object ref = scene_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scene_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * PicoDisplayInfo picoDisplayInfo = 11;
-     * = 12;
-     * 
- * - * string scene = 10; - * @return The bytes for scene. - */ - public com.google.protobuf.ByteString - getSceneBytes() { - java.lang.Object ref = scene_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scene_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * PicoDisplayInfo picoDisplayInfo = 11;
-     * = 12;
-     * 
- * - * string scene = 10; - * @param value The scene to set. - * @return This builder for chaining. - */ - public Builder setScene( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - scene_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * PicoDisplayInfo picoDisplayInfo = 11;
-     * = 12;
-     * 
- * - * string scene = 10; - * @return This builder for chaining. - */ - public Builder clearScene() { - scene_ = getDefaultInstance().getScene(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * PicoDisplayInfo picoDisplayInfo = 11;
-     * = 12;
-     * 
- * - * string scene = 10; - * @param value The bytes for scene to set. - * @return This builder for chaining. - */ - public Builder setSceneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - scene_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_webcast_like_message_msg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msgOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msgOrBuilder.java deleted file mode 100644 index b5b088a5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msgOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_like_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_webcast_like_message_msgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_like_message_msg) - com.google.protobuf.MessageOrBuilder { - - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - boolean hasCommon(); - /** - * .Common common = 1; - * @return The common. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon(); - /** - * .Common common = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder(); - - /** - * uint64 count = 2; - * @return The count. - */ - long getCount(); - - /** - * uint64 total = 3; - * @return The total. - */ - long getTotal(); - - /** - * uint64 color = 4; - * @return The color. - */ - long getColor(); - - /** - * .User user = 5; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .User user = 5; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser(); - /** - * .User user = 5; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder(); - - /** - * string icon = 6; - * @return The icon. - */ - java.lang.String getIcon(); - /** - * string icon = 6; - * @return The bytes for icon. - */ - com.google.protobuf.ByteString - getIconBytes(); - - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - * @return Whether the doubleLikeDetail field is set. - */ - boolean hasDoubleLikeDetail(); - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - * @return The doubleLikeDetail. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail getDoubleLikeDetail(); - /** - * .DoubleLikeDetail doubleLikeDetail = 7; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder getDoubleLikeDetailOrBuilder(); - - /** - *
-   * DisplayControlInfo displayControlInfo = 8;
-   * 
- * - * uint64 linkmicGuestUid = 9; - * @return The linkmicGuestUid. - */ - long getLinkmicGuestUid(); - - /** - *
-   * PicoDisplayInfo picoDisplayInfo = 11;
-   * = 12;
-   * 
- * - * string scene = 10; - * @return The scene. - */ - java.lang.String getScene(); - /** - *
-   * PicoDisplayInfo picoDisplayInfo = 11;
-   * = 12;
-   * 
- * - * string scene = 10; - * @return The bytes for scene. - */ - com.google.protobuf.ByteString - getSceneBytes(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msgProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msgProto.java deleted file mode 100644 index 153557b6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_like_message_msgProto.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_like_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class douyin_webcast_like_message_msgProto { - private douyin_webcast_like_message_msgProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n%douyin_webcast_like_message_msg.proto\022" + - "2tech.ordinaryroad.live.chat.client.douy" + - "in.protobuf\032\014Common.proto\032\nUser.proto\032\026D" + - "oubleLikeDetail.proto\"\337\001\n\037douyin_webcast" + - "_like_message_msg\022\027\n\006common\030\001 \001(\0132\007.Comm" + - "on\022\r\n\005count\030\002 \001(\004\022\r\n\005total\030\003 \001(\004\022\r\n\005colo" + - "r\030\004 \001(\004\022\023\n\004user\030\005 \001(\0132\005.User\022\014\n\004icon\030\006 \001" + - "(\t\022+\n\020doubleLikeDetail\030\007 \001(\0132\021.DoubleLik" + - "eDetail\022\027\n\017linkmicGuestUid\030\t \001(\004\022\r\n\005scen" + - "e\030\n \001(\tBb\n2tech.ordinaryroad.live.chat.c" + - "lient.douyin.protobufB$douyin_webcast_li" + - "ke_message_msgProtoP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.getDescriptor(), - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_like_message_msg_descriptor, - new java.lang.String[] { "Common", "Count", "Total", "Color", "User", "Icon", "DoubleLikeDetail", "LinkmicGuestUid", "Scene", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_member_message_msg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_member_message_msg.java deleted file mode 100644 index 63c75d62..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_member_message_msg.java +++ /dev/null @@ -1,2828 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_member_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg} - */ -public final class douyin_webcast_member_message_msg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) - douyin_webcast_member_message_msgOrBuilder { - private static final long serialVersionUID = 0L; - // Use douyin_webcast_member_message_msg.newBuilder() to construct. - private douyin_webcast_member_message_msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_webcast_member_message_msg() { - actionDescription_ = ""; - popStr_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_webcast_member_message_msg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_member_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 22: - return internalGetBuriedPointMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_member_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.Builder.class); - } - - public static final int COMMON_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - @java.lang.Override - public boolean hasCommon() { - return common_ != null; - } - /** - * .Common common = 1; - * @return The common. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - /** - * .Common common = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - /** - * .User user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .User user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - /** - * .User user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - - public static final int MEMBERCOUNT_FIELD_NUMBER = 3; - private long memberCount_ = 0L; - /** - * uint64 memberCount = 3; - * @return The memberCount. - */ - @java.lang.Override - public long getMemberCount() { - return memberCount_; - } - - public static final int OPERATOR_FIELD_NUMBER = 4; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User operator_; - /** - * .User operator = 4; - * @return Whether the operator field is set. - */ - @java.lang.Override - public boolean hasOperator() { - return operator_ != null; - } - /** - * .User operator = 4; - * @return The operator. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getOperator() { - return operator_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : operator_; - } - /** - * .User operator = 4; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getOperatorOrBuilder() { - return operator_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : operator_; - } - - public static final int ISSETTOADMIN_FIELD_NUMBER = 5; - private boolean isSetToAdmin_ = false; - /** - * bool isSetToAdmin = 5; - * @return The isSetToAdmin. - */ - @java.lang.Override - public boolean getIsSetToAdmin() { - return isSetToAdmin_; - } - - public static final int ISTOPUSER_FIELD_NUMBER = 6; - private boolean isTopUser_ = false; - /** - * bool isTopUser = 6; - * @return The isTopUser. - */ - @java.lang.Override - public boolean getIsTopUser() { - return isTopUser_; - } - - public static final int RANKSCORE_FIELD_NUMBER = 7; - private long rankScore_ = 0L; - /** - * int64 rankScore = 7; - * @return The rankScore. - */ - @java.lang.Override - public long getRankScore() { - return rankScore_; - } - - public static final int TOPUSERNO_FIELD_NUMBER = 8; - private long topUserNo_ = 0L; - /** - * int64 topUserNo = 8; - * @return The topUserNo. - */ - @java.lang.Override - public long getTopUserNo() { - return topUserNo_; - } - - public static final int ENTERTYPE_FIELD_NUMBER = 9; - private long enterType_ = 0L; - /** - * int64 enterType = 9; - * @return The enterType. - */ - @java.lang.Override - public long getEnterType() { - return enterType_; - } - - public static final int ACTION_FIELD_NUMBER = 10; - private long action_ = 0L; - /** - * int64 action = 10; - * @return The action. - */ - @java.lang.Override - public long getAction() { - return action_; - } - - public static final int ACTIONDESCRIPTION_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object actionDescription_ = ""; - /** - * string actionDescription = 11; - * @return The actionDescription. - */ - @java.lang.Override - public java.lang.String getActionDescription() { - java.lang.Object ref = actionDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionDescription_ = s; - return s; - } - } - /** - * string actionDescription = 11; - * @return The bytes for actionDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getActionDescriptionBytes() { - java.lang.Object ref = actionDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERID_FIELD_NUMBER = 12; - private long userId_ = 0L; - /** - * int64 userId = 12; - * @return The userId. - */ - @java.lang.Override - public long getUserId() { - return userId_; - } - - public static final int POPSTR_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object popStr_ = ""; - /** - *
-   * EffectConfig effectConfig = 13;
-   * 
- * - * string popStr = 14; - * @return The popStr. - */ - @java.lang.Override - public java.lang.String getPopStr() { - java.lang.Object ref = popStr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - popStr_ = s; - return s; - } - } - /** - *
-   * EffectConfig effectConfig = 13;
-   * 
- * - * string popStr = 14; - * @return The bytes for popStr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPopStrBytes() { - java.lang.Object ref = popStr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - popStr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BACKGROUNDIMAGE_FIELD_NUMBER = 16; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImage_; - /** - *
-   * EffectConfig enterEffectConfig = 15;
-   * 
- * - * .Image backgroundImage = 16; - * @return Whether the backgroundImage field is set. - */ - @java.lang.Override - public boolean hasBackgroundImage() { - return backgroundImage_ != null; - } - /** - *
-   * EffectConfig enterEffectConfig = 15;
-   * 
- * - * .Image backgroundImage = 16; - * @return The backgroundImage. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImage() { - return backgroundImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } - /** - *
-   * EffectConfig enterEffectConfig = 15;
-   * 
- * - * .Image backgroundImage = 16; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageOrBuilder() { - return backgroundImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } - - public static final int BACKGROUNDIMAGEV2_FIELD_NUMBER = 17; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImageV2_; - /** - * .Image backgroundImageV2 = 17; - * @return Whether the backgroundImageV2 field is set. - */ - @java.lang.Override - public boolean hasBackgroundImageV2() { - return backgroundImageV2_ != null; - } - /** - * .Image backgroundImageV2 = 17; - * @return The backgroundImageV2. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImageV2() { - return backgroundImageV2_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } - /** - * .Image backgroundImageV2 = 17; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageV2OrBuilder() { - return backgroundImageV2_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } - - public static final int ANCHORDISPLAYTEXT_FIELD_NUMBER = 18; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text anchorDisplayText_; - /** - * .Text anchorDisplayText = 18; - * @return Whether the anchorDisplayText field is set. - */ - @java.lang.Override - public boolean hasAnchorDisplayText() { - return anchorDisplayText_ != null; - } - /** - * .Text anchorDisplayText = 18; - * @return The anchorDisplayText. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getAnchorDisplayText() { - return anchorDisplayText_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : anchorDisplayText_; - } - /** - * .Text anchorDisplayText = 18; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getAnchorDisplayTextOrBuilder() { - return anchorDisplayText_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : anchorDisplayText_; - } - - public static final int USERENTERTIPTYPE_FIELD_NUMBER = 20; - private long userEnterTipType_ = 0L; - /** - *
-   * PublicAreaCommon publicAreaCommon = 19;
-   * 
- * - * int64 userEnterTipType = 20; - * @return The userEnterTipType. - */ - @java.lang.Override - public long getUserEnterTipType() { - return userEnterTipType_; - } - - public static final int ANCHORENTERTIPTYPE_FIELD_NUMBER = 21; - private long anchorEnterTipType_ = 0L; - /** - * int64 anchorEnterTipType = 21; - * @return The anchorEnterTipType. - */ - @java.lang.Override - public long getAnchorEnterTipType() { - return anchorEnterTipType_; - } - - public static final int BURIEDPOINTMAP_FIELD_NUMBER = 22; - private static final class BuriedPointMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_member_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_BuriedPointMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> buriedPointMap_; - private com.google.protobuf.MapField - internalGetBuriedPointMap() { - if (buriedPointMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BuriedPointMapDefaultEntryHolder.defaultEntry); - } - return buriedPointMap_; - } - public int getBuriedPointMapCount() { - return internalGetBuriedPointMap().getMap().size(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public boolean containsBuriedPointMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetBuriedPointMap().getMap().containsKey(key); - } - /** - * Use {@link #getBuriedPointMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getBuriedPointMap() { - return getBuriedPointMapMap(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public java.util.Map getBuriedPointMapMap() { - return internalGetBuriedPointMap().getMap(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getBuriedPointMapOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetBuriedPointMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public java.lang.String getBuriedPointMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetBuriedPointMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (common_ != null) { - output.writeMessage(1, getCommon()); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (memberCount_ != 0L) { - output.writeUInt64(3, memberCount_); - } - if (operator_ != null) { - output.writeMessage(4, getOperator()); - } - if (isSetToAdmin_ != false) { - output.writeBool(5, isSetToAdmin_); - } - if (isTopUser_ != false) { - output.writeBool(6, isTopUser_); - } - if (rankScore_ != 0L) { - output.writeInt64(7, rankScore_); - } - if (topUserNo_ != 0L) { - output.writeInt64(8, topUserNo_); - } - if (enterType_ != 0L) { - output.writeInt64(9, enterType_); - } - if (action_ != 0L) { - output.writeInt64(10, action_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, actionDescription_); - } - if (userId_ != 0L) { - output.writeInt64(12, userId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(popStr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, popStr_); - } - if (backgroundImage_ != null) { - output.writeMessage(16, getBackgroundImage()); - } - if (backgroundImageV2_ != null) { - output.writeMessage(17, getBackgroundImageV2()); - } - if (anchorDisplayText_ != null) { - output.writeMessage(18, getAnchorDisplayText()); - } - if (userEnterTipType_ != 0L) { - output.writeInt64(20, userEnterTipType_); - } - if (anchorEnterTipType_ != 0L) { - output.writeInt64(21, anchorEnterTipType_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetBuriedPointMap(), - BuriedPointMapDefaultEntryHolder.defaultEntry, - 22); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (common_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommon()); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (memberCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, memberCount_); - } - if (operator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOperator()); - } - if (isSetToAdmin_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isSetToAdmin_); - } - if (isTopUser_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isTopUser_); - } - if (rankScore_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, rankScore_); - } - if (topUserNo_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, topUserNo_); - } - if (enterType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, enterType_); - } - if (action_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, action_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, actionDescription_); - } - if (userId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, userId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(popStr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, popStr_); - } - if (backgroundImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getBackgroundImage()); - } - if (backgroundImageV2_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getBackgroundImageV2()); - } - if (anchorDisplayText_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getAnchorDisplayText()); - } - if (userEnterTipType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(20, userEnterTipType_); - } - if (anchorEnterTipType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(21, anchorEnterTipType_); - } - for (java.util.Map.Entry entry - : internalGetBuriedPointMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - buriedPointMap__ = BuriedPointMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, buriedPointMap__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) obj; - - if (hasCommon() != other.hasCommon()) return false; - if (hasCommon()) { - if (!getCommon() - .equals(other.getCommon())) return false; - } - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getMemberCount() - != other.getMemberCount()) return false; - if (hasOperator() != other.hasOperator()) return false; - if (hasOperator()) { - if (!getOperator() - .equals(other.getOperator())) return false; - } - if (getIsSetToAdmin() - != other.getIsSetToAdmin()) return false; - if (getIsTopUser() - != other.getIsTopUser()) return false; - if (getRankScore() - != other.getRankScore()) return false; - if (getTopUserNo() - != other.getTopUserNo()) return false; - if (getEnterType() - != other.getEnterType()) return false; - if (getAction() - != other.getAction()) return false; - if (!getActionDescription() - .equals(other.getActionDescription())) return false; - if (getUserId() - != other.getUserId()) return false; - if (!getPopStr() - .equals(other.getPopStr())) return false; - if (hasBackgroundImage() != other.hasBackgroundImage()) return false; - if (hasBackgroundImage()) { - if (!getBackgroundImage() - .equals(other.getBackgroundImage())) return false; - } - if (hasBackgroundImageV2() != other.hasBackgroundImageV2()) return false; - if (hasBackgroundImageV2()) { - if (!getBackgroundImageV2() - .equals(other.getBackgroundImageV2())) return false; - } - if (hasAnchorDisplayText() != other.hasAnchorDisplayText()) return false; - if (hasAnchorDisplayText()) { - if (!getAnchorDisplayText() - .equals(other.getAnchorDisplayText())) return false; - } - if (getUserEnterTipType() - != other.getUserEnterTipType()) return false; - if (getAnchorEnterTipType() - != other.getAnchorEnterTipType()) return false; - if (!internalGetBuriedPointMap().equals( - other.internalGetBuriedPointMap())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCommon()) { - hash = (37 * hash) + COMMON_FIELD_NUMBER; - hash = (53 * hash) + getCommon().hashCode(); - } - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + MEMBERCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMemberCount()); - if (hasOperator()) { - hash = (37 * hash) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + getOperator().hashCode(); - } - hash = (37 * hash) + ISSETTOADMIN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsSetToAdmin()); - hash = (37 * hash) + ISTOPUSER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsTopUser()); - hash = (37 * hash) + RANKSCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRankScore()); - hash = (37 * hash) + TOPUSERNO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTopUserNo()); - hash = (37 * hash) + ENTERTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnterType()); - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAction()); - hash = (37 * hash) + ACTIONDESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getActionDescription().hashCode(); - hash = (37 * hash) + USERID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserId()); - hash = (37 * hash) + POPSTR_FIELD_NUMBER; - hash = (53 * hash) + getPopStr().hashCode(); - if (hasBackgroundImage()) { - hash = (37 * hash) + BACKGROUNDIMAGE_FIELD_NUMBER; - hash = (53 * hash) + getBackgroundImage().hashCode(); - } - if (hasBackgroundImageV2()) { - hash = (37 * hash) + BACKGROUNDIMAGEV2_FIELD_NUMBER; - hash = (53 * hash) + getBackgroundImageV2().hashCode(); - } - if (hasAnchorDisplayText()) { - hash = (37 * hash) + ANCHORDISPLAYTEXT_FIELD_NUMBER; - hash = (53 * hash) + getAnchorDisplayText().hashCode(); - } - hash = (37 * hash) + USERENTERTIPTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserEnterTipType()); - hash = (37 * hash) + ANCHORENTERTIPTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnchorEnterTipType()); - if (!internalGetBuriedPointMap().getMap().isEmpty()) { - hash = (37 * hash) + BURIEDPOINTMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetBuriedPointMap().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_member_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 22: - return internalGetBuriedPointMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 22: - return internalGetMutableBuriedPointMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_member_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - memberCount_ = 0L; - operator_ = null; - if (operatorBuilder_ != null) { - operatorBuilder_.dispose(); - operatorBuilder_ = null; - } - isSetToAdmin_ = false; - isTopUser_ = false; - rankScore_ = 0L; - topUserNo_ = 0L; - enterType_ = 0L; - action_ = 0L; - actionDescription_ = ""; - userId_ = 0L; - popStr_ = ""; - backgroundImage_ = null; - if (backgroundImageBuilder_ != null) { - backgroundImageBuilder_.dispose(); - backgroundImageBuilder_ = null; - } - backgroundImageV2_ = null; - if (backgroundImageV2Builder_ != null) { - backgroundImageV2Builder_.dispose(); - backgroundImageV2Builder_ = null; - } - anchorDisplayText_ = null; - if (anchorDisplayTextBuilder_ != null) { - anchorDisplayTextBuilder_.dispose(); - anchorDisplayTextBuilder_ = null; - } - userEnterTipType_ = 0L; - anchorEnterTipType_ = 0L; - internalGetMutableBuriedPointMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_webcast_member_message_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_webcast_member_message_msg_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.common_ = commonBuilder_ == null - ? common_ - : commonBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.memberCount_ = memberCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.operator_ = operatorBuilder_ == null - ? operator_ - : operatorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.isSetToAdmin_ = isSetToAdmin_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.isTopUser_ = isTopUser_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.rankScore_ = rankScore_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.topUserNo_ = topUserNo_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.enterType_ = enterType_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.action_ = action_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.actionDescription_ = actionDescription_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.userId_ = userId_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.popStr_ = popStr_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.backgroundImage_ = backgroundImageBuilder_ == null - ? backgroundImage_ - : backgroundImageBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.backgroundImageV2_ = backgroundImageV2Builder_ == null - ? backgroundImageV2_ - : backgroundImageV2Builder_.build(); - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.anchorDisplayText_ = anchorDisplayTextBuilder_ == null - ? anchorDisplayText_ - : anchorDisplayTextBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.userEnterTipType_ = userEnterTipType_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.anchorEnterTipType_ = anchorEnterTipType_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.buriedPointMap_ = internalGetBuriedPointMap(); - result.buriedPointMap_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg.getDefaultInstance()) return this; - if (other.hasCommon()) { - mergeCommon(other.getCommon()); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getMemberCount() != 0L) { - setMemberCount(other.getMemberCount()); - } - if (other.hasOperator()) { - mergeOperator(other.getOperator()); - } - if (other.getIsSetToAdmin() != false) { - setIsSetToAdmin(other.getIsSetToAdmin()); - } - if (other.getIsTopUser() != false) { - setIsTopUser(other.getIsTopUser()); - } - if (other.getRankScore() != 0L) { - setRankScore(other.getRankScore()); - } - if (other.getTopUserNo() != 0L) { - setTopUserNo(other.getTopUserNo()); - } - if (other.getEnterType() != 0L) { - setEnterType(other.getEnterType()); - } - if (other.getAction() != 0L) { - setAction(other.getAction()); - } - if (!other.getActionDescription().isEmpty()) { - actionDescription_ = other.actionDescription_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.getUserId() != 0L) { - setUserId(other.getUserId()); - } - if (!other.getPopStr().isEmpty()) { - popStr_ = other.popStr_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.hasBackgroundImage()) { - mergeBackgroundImage(other.getBackgroundImage()); - } - if (other.hasBackgroundImageV2()) { - mergeBackgroundImageV2(other.getBackgroundImageV2()); - } - if (other.hasAnchorDisplayText()) { - mergeAnchorDisplayText(other.getAnchorDisplayText()); - } - if (other.getUserEnterTipType() != 0L) { - setUserEnterTipType(other.getUserEnterTipType()); - } - if (other.getAnchorEnterTipType() != 0L) { - setAnchorEnterTipType(other.getAnchorEnterTipType()); - } - internalGetMutableBuriedPointMap().mergeFrom( - other.internalGetBuriedPointMap()); - bitField0_ |= 0x00040000; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCommonFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - memberCount_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getOperatorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - isSetToAdmin_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - isTopUser_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - rankScore_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - topUserNo_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - enterType_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - action_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - actionDescription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: { - userId_ = input.readInt64(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 114: { - popStr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 114 - case 130: { - input.readMessage( - getBackgroundImageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 130 - case 138: { - input.readMessage( - getBackgroundImageV2FieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 138 - case 146: { - input.readMessage( - getAnchorDisplayTextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 146 - case 160: { - userEnterTipType_ = input.readInt64(); - bitField0_ |= 0x00010000; - break; - } // case 160 - case 168: { - anchorEnterTipType_ = input.readInt64(); - bitField0_ |= 0x00020000; - break; - } // case 168 - case 178: { - com.google.protobuf.MapEntry - buriedPointMap__ = input.readMessage( - BuriedPointMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableBuriedPointMap().getMutableMap().put( - buriedPointMap__.getKey(), buriedPointMap__.getValue()); - bitField0_ |= 0x00040000; - break; - } // case 178 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common common_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> commonBuilder_; - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - public boolean hasCommon() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Common common = 1; - * @return The common. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon() { - if (commonBuilder_ == null) { - return common_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } else { - return commonBuilder_.getMessage(); - } - } - /** - * .Common common = 1; - */ - public Builder setCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - common_ = value; - } else { - commonBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder setCommon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder builderForValue) { - if (commonBuilder_ == null) { - common_ = builderForValue.build(); - } else { - commonBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder mergeCommon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common value) { - if (commonBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - common_ != null && - common_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance()) { - getCommonBuilder().mergeFrom(value); - } else { - common_ = value; - } - } else { - commonBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public Builder clearCommon() { - bitField0_ = (bitField0_ & ~0x00000001); - common_ = null; - if (commonBuilder_ != null) { - commonBuilder_.dispose(); - commonBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder getCommonBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCommonFieldBuilder().getBuilder(); - } - /** - * .Common common = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder() { - if (commonBuilder_ != null) { - return commonBuilder_.getMessageOrBuilder(); - } else { - return common_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance() : common_; - } - } - /** - * .Common common = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder> - getCommonFieldBuilder() { - if (commonBuilder_ == null) { - commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder>( - getCommon(), - getParentForChildren(), - isClean()); - common_ = null; - } - return commonBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> userBuilder_; - /** - * .User user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .User user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .User user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User user = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .User user = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - } - /** - * .User user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private long memberCount_ ; - /** - * uint64 memberCount = 3; - * @return The memberCount. - */ - @java.lang.Override - public long getMemberCount() { - return memberCount_; - } - /** - * uint64 memberCount = 3; - * @param value The memberCount to set. - * @return This builder for chaining. - */ - public Builder setMemberCount(long value) { - - memberCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 memberCount = 3; - * @return This builder for chaining. - */ - public Builder clearMemberCount() { - bitField0_ = (bitField0_ & ~0x00000004); - memberCount_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User operator_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> operatorBuilder_; - /** - * .User operator = 4; - * @return Whether the operator field is set. - */ - public boolean hasOperator() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * .User operator = 4; - * @return The operator. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getOperator() { - if (operatorBuilder_ == null) { - return operator_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : operator_; - } else { - return operatorBuilder_.getMessage(); - } - } - /** - * .User operator = 4; - */ - public Builder setOperator(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (operatorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - operator_ = value; - } else { - operatorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User operator = 4; - */ - public Builder setOperator( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (operatorBuilder_ == null) { - operator_ = builderForValue.build(); - } else { - operatorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User operator = 4; - */ - public Builder mergeOperator(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (operatorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - operator_ != null && - operator_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getOperatorBuilder().mergeFrom(value); - } else { - operator_ = value; - } - } else { - operatorBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User operator = 4; - */ - public Builder clearOperator() { - bitField0_ = (bitField0_ & ~0x00000008); - operator_ = null; - if (operatorBuilder_ != null) { - operatorBuilder_.dispose(); - operatorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User operator = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getOperatorBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getOperatorFieldBuilder().getBuilder(); - } - /** - * .User operator = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getOperatorOrBuilder() { - if (operatorBuilder_ != null) { - return operatorBuilder_.getMessageOrBuilder(); - } else { - return operator_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : operator_; - } - } - /** - * .User operator = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getOperatorFieldBuilder() { - if (operatorBuilder_ == null) { - operatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getOperator(), - getParentForChildren(), - isClean()); - operator_ = null; - } - return operatorBuilder_; - } - - private boolean isSetToAdmin_ ; - /** - * bool isSetToAdmin = 5; - * @return The isSetToAdmin. - */ - @java.lang.Override - public boolean getIsSetToAdmin() { - return isSetToAdmin_; - } - /** - * bool isSetToAdmin = 5; - * @param value The isSetToAdmin to set. - * @return This builder for chaining. - */ - public Builder setIsSetToAdmin(boolean value) { - - isSetToAdmin_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * bool isSetToAdmin = 5; - * @return This builder for chaining. - */ - public Builder clearIsSetToAdmin() { - bitField0_ = (bitField0_ & ~0x00000010); - isSetToAdmin_ = false; - onChanged(); - return this; - } - - private boolean isTopUser_ ; - /** - * bool isTopUser = 6; - * @return The isTopUser. - */ - @java.lang.Override - public boolean getIsTopUser() { - return isTopUser_; - } - /** - * bool isTopUser = 6; - * @param value The isTopUser to set. - * @return This builder for chaining. - */ - public Builder setIsTopUser(boolean value) { - - isTopUser_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * bool isTopUser = 6; - * @return This builder for chaining. - */ - public Builder clearIsTopUser() { - bitField0_ = (bitField0_ & ~0x00000020); - isTopUser_ = false; - onChanged(); - return this; - } - - private long rankScore_ ; - /** - * int64 rankScore = 7; - * @return The rankScore. - */ - @java.lang.Override - public long getRankScore() { - return rankScore_; - } - /** - * int64 rankScore = 7; - * @param value The rankScore to set. - * @return This builder for chaining. - */ - public Builder setRankScore(long value) { - - rankScore_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int64 rankScore = 7; - * @return This builder for chaining. - */ - public Builder clearRankScore() { - bitField0_ = (bitField0_ & ~0x00000040); - rankScore_ = 0L; - onChanged(); - return this; - } - - private long topUserNo_ ; - /** - * int64 topUserNo = 8; - * @return The topUserNo. - */ - @java.lang.Override - public long getTopUserNo() { - return topUserNo_; - } - /** - * int64 topUserNo = 8; - * @param value The topUserNo to set. - * @return This builder for chaining. - */ - public Builder setTopUserNo(long value) { - - topUserNo_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * int64 topUserNo = 8; - * @return This builder for chaining. - */ - public Builder clearTopUserNo() { - bitField0_ = (bitField0_ & ~0x00000080); - topUserNo_ = 0L; - onChanged(); - return this; - } - - private long enterType_ ; - /** - * int64 enterType = 9; - * @return The enterType. - */ - @java.lang.Override - public long getEnterType() { - return enterType_; - } - /** - * int64 enterType = 9; - * @param value The enterType to set. - * @return This builder for chaining. - */ - public Builder setEnterType(long value) { - - enterType_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * int64 enterType = 9; - * @return This builder for chaining. - */ - public Builder clearEnterType() { - bitField0_ = (bitField0_ & ~0x00000100); - enterType_ = 0L; - onChanged(); - return this; - } - - private long action_ ; - /** - * int64 action = 10; - * @return The action. - */ - @java.lang.Override - public long getAction() { - return action_; - } - /** - * int64 action = 10; - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(long value) { - - action_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * int64 action = 10; - * @return This builder for chaining. - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000200); - action_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object actionDescription_ = ""; - /** - * string actionDescription = 11; - * @return The actionDescription. - */ - public java.lang.String getActionDescription() { - java.lang.Object ref = actionDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - actionDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string actionDescription = 11; - * @return The bytes for actionDescription. - */ - public com.google.protobuf.ByteString - getActionDescriptionBytes() { - java.lang.Object ref = actionDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string actionDescription = 11; - * @param value The actionDescription to set. - * @return This builder for chaining. - */ - public Builder setActionDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - actionDescription_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * string actionDescription = 11; - * @return This builder for chaining. - */ - public Builder clearActionDescription() { - actionDescription_ = getDefaultInstance().getActionDescription(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * string actionDescription = 11; - * @param value The bytes for actionDescription to set. - * @return This builder for chaining. - */ - public Builder setActionDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - actionDescription_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private long userId_ ; - /** - * int64 userId = 12; - * @return The userId. - */ - @java.lang.Override - public long getUserId() { - return userId_; - } - /** - * int64 userId = 12; - * @param value The userId to set. - * @return This builder for chaining. - */ - public Builder setUserId(long value) { - - userId_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * int64 userId = 12; - * @return This builder for chaining. - */ - public Builder clearUserId() { - bitField0_ = (bitField0_ & ~0x00000800); - userId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object popStr_ = ""; - /** - *
-     * EffectConfig effectConfig = 13;
-     * 
- * - * string popStr = 14; - * @return The popStr. - */ - public java.lang.String getPopStr() { - java.lang.Object ref = popStr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - popStr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * EffectConfig effectConfig = 13;
-     * 
- * - * string popStr = 14; - * @return The bytes for popStr. - */ - public com.google.protobuf.ByteString - getPopStrBytes() { - java.lang.Object ref = popStr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - popStr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * EffectConfig effectConfig = 13;
-     * 
- * - * string popStr = 14; - * @param value The popStr to set. - * @return This builder for chaining. - */ - public Builder setPopStr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - popStr_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * EffectConfig effectConfig = 13;
-     * 
- * - * string popStr = 14; - * @return This builder for chaining. - */ - public Builder clearPopStr() { - popStr_ = getDefaultInstance().getPopStr(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - *
-     * EffectConfig effectConfig = 13;
-     * 
- * - * string popStr = 14; - * @param value The bytes for popStr to set. - * @return This builder for chaining. - */ - public Builder setPopStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - popStr_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImage_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundImageBuilder_; - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - * @return Whether the backgroundImage field is set. - */ - public boolean hasBackgroundImage() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - * @return The backgroundImage. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImage() { - if (backgroundImageBuilder_ == null) { - return backgroundImage_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } else { - return backgroundImageBuilder_.getMessage(); - } - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - public Builder setBackgroundImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - backgroundImage_ = value; - } else { - backgroundImageBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - public Builder setBackgroundImage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundImageBuilder_ == null) { - backgroundImage_ = builderForValue.build(); - } else { - backgroundImageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - public Builder mergeBackgroundImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - backgroundImage_ != null && - backgroundImage_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundImageBuilder().mergeFrom(value); - } else { - backgroundImage_ = value; - } - } else { - backgroundImageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - public Builder clearBackgroundImage() { - bitField0_ = (bitField0_ & ~0x00002000); - backgroundImage_ = null; - if (backgroundImageBuilder_ != null) { - backgroundImageBuilder_.dispose(); - backgroundImageBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundImageBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getBackgroundImageFieldBuilder().getBuilder(); - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageOrBuilder() { - if (backgroundImageBuilder_ != null) { - return backgroundImageBuilder_.getMessageOrBuilder(); - } else { - return backgroundImage_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImage_; - } - } - /** - *
-     * EffectConfig enterEffectConfig = 15;
-     * 
- * - * .Image backgroundImage = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundImageFieldBuilder() { - if (backgroundImageBuilder_ == null) { - backgroundImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackgroundImage(), - getParentForChildren(), - isClean()); - backgroundImage_ = null; - } - return backgroundImageBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundImageV2_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundImageV2Builder_; - /** - * .Image backgroundImageV2 = 17; - * @return Whether the backgroundImageV2 field is set. - */ - public boolean hasBackgroundImageV2() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - * .Image backgroundImageV2 = 17; - * @return The backgroundImageV2. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImageV2() { - if (backgroundImageV2Builder_ == null) { - return backgroundImageV2_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } else { - return backgroundImageV2Builder_.getMessage(); - } - } - /** - * .Image backgroundImageV2 = 17; - */ - public Builder setBackgroundImageV2(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageV2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - backgroundImageV2_ = value; - } else { - backgroundImageV2Builder_.setMessage(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .Image backgroundImageV2 = 17; - */ - public Builder setBackgroundImageV2( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundImageV2Builder_ == null) { - backgroundImageV2_ = builderForValue.build(); - } else { - backgroundImageV2Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .Image backgroundImageV2 = 17; - */ - public Builder mergeBackgroundImageV2(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundImageV2Builder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - backgroundImageV2_ != null && - backgroundImageV2_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundImageV2Builder().mergeFrom(value); - } else { - backgroundImageV2_ = value; - } - } else { - backgroundImageV2Builder_.mergeFrom(value); - } - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .Image backgroundImageV2 = 17; - */ - public Builder clearBackgroundImageV2() { - bitField0_ = (bitField0_ & ~0x00004000); - backgroundImageV2_ = null; - if (backgroundImageV2Builder_ != null) { - backgroundImageV2Builder_.dispose(); - backgroundImageV2Builder_ = null; - } - onChanged(); - return this; - } - /** - * .Image backgroundImageV2 = 17; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundImageV2Builder() { - bitField0_ |= 0x00004000; - onChanged(); - return getBackgroundImageV2FieldBuilder().getBuilder(); - } - /** - * .Image backgroundImageV2 = 17; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageV2OrBuilder() { - if (backgroundImageV2Builder_ != null) { - return backgroundImageV2Builder_.getMessageOrBuilder(); - } else { - return backgroundImageV2_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundImageV2_; - } - } - /** - * .Image backgroundImageV2 = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundImageV2FieldBuilder() { - if (backgroundImageV2Builder_ == null) { - backgroundImageV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackgroundImageV2(), - getParentForChildren(), - isClean()); - backgroundImageV2_ = null; - } - return backgroundImageV2Builder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text anchorDisplayText_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder> anchorDisplayTextBuilder_; - /** - * .Text anchorDisplayText = 18; - * @return Whether the anchorDisplayText field is set. - */ - public boolean hasAnchorDisplayText() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * .Text anchorDisplayText = 18; - * @return The anchorDisplayText. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getAnchorDisplayText() { - if (anchorDisplayTextBuilder_ == null) { - return anchorDisplayText_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : anchorDisplayText_; - } else { - return anchorDisplayTextBuilder_.getMessage(); - } - } - /** - * .Text anchorDisplayText = 18; - */ - public Builder setAnchorDisplayText(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text value) { - if (anchorDisplayTextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - anchorDisplayText_ = value; - } else { - anchorDisplayTextBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .Text anchorDisplayText = 18; - */ - public Builder setAnchorDisplayText( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder builderForValue) { - if (anchorDisplayTextBuilder_ == null) { - anchorDisplayText_ = builderForValue.build(); - } else { - anchorDisplayTextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .Text anchorDisplayText = 18; - */ - public Builder mergeAnchorDisplayText(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text value) { - if (anchorDisplayTextBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - anchorDisplayText_ != null && - anchorDisplayText_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance()) { - getAnchorDisplayTextBuilder().mergeFrom(value); - } else { - anchorDisplayText_ = value; - } - } else { - anchorDisplayTextBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .Text anchorDisplayText = 18; - */ - public Builder clearAnchorDisplayText() { - bitField0_ = (bitField0_ & ~0x00008000); - anchorDisplayText_ = null; - if (anchorDisplayTextBuilder_ != null) { - anchorDisplayTextBuilder_.dispose(); - anchorDisplayTextBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Text anchorDisplayText = 18; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder getAnchorDisplayTextBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getAnchorDisplayTextFieldBuilder().getBuilder(); - } - /** - * .Text anchorDisplayText = 18; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getAnchorDisplayTextOrBuilder() { - if (anchorDisplayTextBuilder_ != null) { - return anchorDisplayTextBuilder_.getMessageOrBuilder(); - } else { - return anchorDisplayText_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : anchorDisplayText_; - } - } - /** - * .Text anchorDisplayText = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder> - getAnchorDisplayTextFieldBuilder() { - if (anchorDisplayTextBuilder_ == null) { - anchorDisplayTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder>( - getAnchorDisplayText(), - getParentForChildren(), - isClean()); - anchorDisplayText_ = null; - } - return anchorDisplayTextBuilder_; - } - - private long userEnterTipType_ ; - /** - *
-     * PublicAreaCommon publicAreaCommon = 19;
-     * 
- * - * int64 userEnterTipType = 20; - * @return The userEnterTipType. - */ - @java.lang.Override - public long getUserEnterTipType() { - return userEnterTipType_; - } - /** - *
-     * PublicAreaCommon publicAreaCommon = 19;
-     * 
- * - * int64 userEnterTipType = 20; - * @param value The userEnterTipType to set. - * @return This builder for chaining. - */ - public Builder setUserEnterTipType(long value) { - - userEnterTipType_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - *
-     * PublicAreaCommon publicAreaCommon = 19;
-     * 
- * - * int64 userEnterTipType = 20; - * @return This builder for chaining. - */ - public Builder clearUserEnterTipType() { - bitField0_ = (bitField0_ & ~0x00010000); - userEnterTipType_ = 0L; - onChanged(); - return this; - } - - private long anchorEnterTipType_ ; - /** - * int64 anchorEnterTipType = 21; - * @return The anchorEnterTipType. - */ - @java.lang.Override - public long getAnchorEnterTipType() { - return anchorEnterTipType_; - } - /** - * int64 anchorEnterTipType = 21; - * @param value The anchorEnterTipType to set. - * @return This builder for chaining. - */ - public Builder setAnchorEnterTipType(long value) { - - anchorEnterTipType_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * int64 anchorEnterTipType = 21; - * @return This builder for chaining. - */ - public Builder clearAnchorEnterTipType() { - bitField0_ = (bitField0_ & ~0x00020000); - anchorEnterTipType_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> buriedPointMap_; - private com.google.protobuf.MapField - internalGetBuriedPointMap() { - if (buriedPointMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BuriedPointMapDefaultEntryHolder.defaultEntry); - } - return buriedPointMap_; - } - private com.google.protobuf.MapField - internalGetMutableBuriedPointMap() { - if (buriedPointMap_ == null) { - buriedPointMap_ = com.google.protobuf.MapField.newMapField( - BuriedPointMapDefaultEntryHolder.defaultEntry); - } - if (!buriedPointMap_.isMutable()) { - buriedPointMap_ = buriedPointMap_.copy(); - } - bitField0_ |= 0x00040000; - onChanged(); - return buriedPointMap_; - } - public int getBuriedPointMapCount() { - return internalGetBuriedPointMap().getMap().size(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public boolean containsBuriedPointMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetBuriedPointMap().getMap().containsKey(key); - } - /** - * Use {@link #getBuriedPointMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getBuriedPointMap() { - return getBuriedPointMapMap(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public java.util.Map getBuriedPointMapMap() { - return internalGetBuriedPointMap().getMap(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getBuriedPointMapOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetBuriedPointMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> buriedPointMap = 22; - */ - @java.lang.Override - public java.lang.String getBuriedPointMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetBuriedPointMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearBuriedPointMap() { - bitField0_ = (bitField0_ & ~0x00040000); - internalGetMutableBuriedPointMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> buriedPointMap = 22; - */ - public Builder removeBuriedPointMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableBuriedPointMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableBuriedPointMap() { - bitField0_ |= 0x00040000; - return internalGetMutableBuriedPointMap().getMutableMap(); - } - /** - * map<string, string> buriedPointMap = 22; - */ - public Builder putBuriedPointMap( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableBuriedPointMap().getMutableMap() - .put(key, value); - bitField0_ |= 0x00040000; - return this; - } - /** - * map<string, string> buriedPointMap = 22; - */ - public Builder putAllBuriedPointMap( - java.util.Map values) { - internalGetMutableBuriedPointMap().getMutableMap() - .putAll(values); - bitField0_ |= 0x00040000; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_webcast_member_message_msg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_member_message_msgOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_member_message_msgOrBuilder.java deleted file mode 100644 index 52d111be..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_webcast_member_message_msgOrBuilder.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_webcast_member_message_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_webcast_member_message_msgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_webcast_member_message_msg) - com.google.protobuf.MessageOrBuilder { - - /** - * .Common common = 1; - * @return Whether the common field is set. - */ - boolean hasCommon(); - /** - * .Common common = 1; - * @return The common. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getCommon(); - /** - * .Common common = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder getCommonOrBuilder(); - - /** - * .User user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .User user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser(); - /** - * .User user = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder(); - - /** - * uint64 memberCount = 3; - * @return The memberCount. - */ - long getMemberCount(); - - /** - * .User operator = 4; - * @return Whether the operator field is set. - */ - boolean hasOperator(); - /** - * .User operator = 4; - * @return The operator. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getOperator(); - /** - * .User operator = 4; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getOperatorOrBuilder(); - - /** - * bool isSetToAdmin = 5; - * @return The isSetToAdmin. - */ - boolean getIsSetToAdmin(); - - /** - * bool isTopUser = 6; - * @return The isTopUser. - */ - boolean getIsTopUser(); - - /** - * int64 rankScore = 7; - * @return The rankScore. - */ - long getRankScore(); - - /** - * int64 topUserNo = 8; - * @return The topUserNo. - */ - long getTopUserNo(); - - /** - * int64 enterType = 9; - * @return The enterType. - */ - long getEnterType(); - - /** - * int64 action = 10; - * @return The action. - */ - long getAction(); - - /** - * string actionDescription = 11; - * @return The actionDescription. - */ - java.lang.String getActionDescription(); - /** - * string actionDescription = 11; - * @return The bytes for actionDescription. - */ - com.google.protobuf.ByteString - getActionDescriptionBytes(); - - /** - * int64 userId = 12; - * @return The userId. - */ - long getUserId(); - - /** - *
-   * EffectConfig effectConfig = 13;
-   * 
- * - * string popStr = 14; - * @return The popStr. - */ - java.lang.String getPopStr(); - /** - *
-   * EffectConfig effectConfig = 13;
-   * 
- * - * string popStr = 14; - * @return The bytes for popStr. - */ - com.google.protobuf.ByteString - getPopStrBytes(); - - /** - *
-   * EffectConfig enterEffectConfig = 15;
-   * 
- * - * .Image backgroundImage = 16; - * @return Whether the backgroundImage field is set. - */ - boolean hasBackgroundImage(); - /** - *
-   * EffectConfig enterEffectConfig = 15;
-   * 
- * - * .Image backgroundImage = 16; - * @return The backgroundImage. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImage(); - /** - *
-   * EffectConfig enterEffectConfig = 15;
-   * 
- * - * .Image backgroundImage = 16; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageOrBuilder(); - - /** - * .Image backgroundImageV2 = 17; - * @return Whether the backgroundImageV2 field is set. - */ - boolean hasBackgroundImageV2(); - /** - * .Image backgroundImageV2 = 17; - * @return The backgroundImageV2. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundImageV2(); - /** - * .Image backgroundImageV2 = 17; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundImageV2OrBuilder(); - - /** - * .Text anchorDisplayText = 18; - * @return Whether the anchorDisplayText field is set. - */ - boolean hasAnchorDisplayText(); - /** - * .Text anchorDisplayText = 18; - * @return The anchorDisplayText. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getAnchorDisplayText(); - /** - * .Text anchorDisplayText = 18; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getAnchorDisplayTextOrBuilder(); - - /** - *
-   * PublicAreaCommon publicAreaCommon = 19;
-   * 
- * - * int64 userEnterTipType = 20; - * @return The userEnterTipType. - */ - long getUserEnterTipType(); - - /** - * int64 anchorEnterTipType = 21; - * @return The anchorEnterTipType. - */ - long getAnchorEnterTipType(); - - /** - * map<string, string> buriedPointMap = 22; - */ - int getBuriedPointMapCount(); - /** - * map<string, string> buriedPointMap = 22; - */ - boolean containsBuriedPointMap( - java.lang.String key); - /** - * Use {@link #getBuriedPointMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getBuriedPointMap(); - /** - * map<string, string> buriedPointMap = 22; - */ - java.util.Map - getBuriedPointMapMap(); - /** - * map<string, string> buriedPointMap = 22; - */ - /* nullable */ -java.lang.String getBuriedPointMapOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> buriedPointMap = 22; - */ - java.lang.String getBuriedPointMapOrThrow( - java.lang.String key); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame.java deleted file mode 100644 index 8caffe8a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame.java +++ /dev/null @@ -1,1315 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_websocket_frame.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame} - */ -public final class douyin_websocket_frame extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) - douyin_websocket_frameOrBuilder { -private static final long serialVersionUID = 0L; - // Use douyin_websocket_frame.newBuilder() to construct. - private douyin_websocket_frame(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_websocket_frame() { - payloadEncoding_ = ""; - payloadType_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_websocket_frame(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_websocket_frameProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetHeadersList(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_websocket_frameProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.Builder.class); - } - - public static final int SEQ_ID_FIELD_NUMBER = 1; - private long seqId_ = 0L; - /** - * uint64 seq_id = 1; - * @return The seqId. - */ - @java.lang.Override - public long getSeqId() { - return seqId_; - } - - public static final int LOG_ID_FIELD_NUMBER = 2; - private long logId_ = 0L; - /** - * uint64 log_id = 2; - * @return The logId. - */ - @java.lang.Override - public long getLogId() { - return logId_; - } - - public static final int SERVICE_FIELD_NUMBER = 3; - private long service_ = 0L; - /** - * uint64 service = 3; - * @return The service. - */ - @java.lang.Override - public long getService() { - return service_; - } - - public static final int METHOD_FIELD_NUMBER = 4; - private long method_ = 0L; - /** - * uint64 method = 4; - * @return The method. - */ - @java.lang.Override - public long getMethod() { - return method_; - } - - public static final int HEADERS_LIST_FIELD_NUMBER = 5; - private static final class HeadersListDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_websocket_frameProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_HeadersListEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> headersList_; - private com.google.protobuf.MapField - internalGetHeadersList() { - if (headersList_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HeadersListDefaultEntryHolder.defaultEntry); - } - return headersList_; - } - public int getHeadersListCount() { - return internalGetHeadersList().getMap().size(); - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public boolean containsHeadersList( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetHeadersList().getMap().containsKey(key); - } - /** - * Use {@link #getHeadersListMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeadersList() { - return getHeadersListMap(); - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public java.util.Map getHeadersListMap() { - return internalGetHeadersList().getMap(); - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getHeadersListOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHeadersList().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public java.lang.String getHeadersListOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHeadersList().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PAYLOAD_ENCODING_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object payloadEncoding_ = ""; - /** - * string payload_encoding = 6; - * @return The payloadEncoding. - */ - @java.lang.Override - public java.lang.String getPayloadEncoding() { - java.lang.Object ref = payloadEncoding_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payloadEncoding_ = s; - return s; - } - } - /** - * string payload_encoding = 6; - * @return The bytes for payloadEncoding. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPayloadEncodingBytes() { - java.lang.Object ref = payloadEncoding_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payloadEncoding_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAYLOAD_TYPE_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object payloadType_ = ""; - /** - * string payload_type = 7; - * @return The payloadType. - */ - @java.lang.Override - public java.lang.String getPayloadType() { - java.lang.Object ref = payloadType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payloadType_ = s; - return s; - } - } - /** - * string payload_type = 7; - * @return The bytes for payloadType. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPayloadTypeBytes() { - java.lang.Object ref = payloadType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payloadType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAYLOAD_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 8; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (seqId_ != 0L) { - output.writeUInt64(1, seqId_); - } - if (logId_ != 0L) { - output.writeUInt64(2, logId_); - } - if (service_ != 0L) { - output.writeUInt64(3, service_); - } - if (method_ != 0L) { - output.writeUInt64(4, method_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHeadersList(), - HeadersListDefaultEntryHolder.defaultEntry, - 5); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadEncoding_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, payloadEncoding_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, payloadType_); - } - if (!payload_.isEmpty()) { - output.writeBytes(8, payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (seqId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, seqId_); - } - if (logId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, logId_); - } - if (service_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, service_); - } - if (method_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, method_); - } - for (java.util.Map.Entry entry - : internalGetHeadersList().getMap().entrySet()) { - com.google.protobuf.MapEntry - headersList__ = HeadersListDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, headersList__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadEncoding_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, payloadEncoding_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, payloadType_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) obj; - - if (getSeqId() - != other.getSeqId()) return false; - if (getLogId() - != other.getLogId()) return false; - if (getService() - != other.getService()) return false; - if (getMethod() - != other.getMethod()) return false; - if (!internalGetHeadersList().equals( - other.internalGetHeadersList())) return false; - if (!getPayloadEncoding() - .equals(other.getPayloadEncoding())) return false; - if (!getPayloadType() - .equals(other.getPayloadType())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQ_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSeqId()); - hash = (37 * hash) + LOG_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLogId()); - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getService()); - hash = (37 * hash) + METHOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMethod()); - if (!internalGetHeadersList().getMap().isEmpty()) { - hash = (37 * hash) + HEADERS_LIST_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeadersList().hashCode(); - } - hash = (37 * hash) + PAYLOAD_ENCODING_FIELD_NUMBER; - hash = (53 * hash) + getPayloadEncoding().hashCode(); - hash = (37 * hash) + PAYLOAD_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getPayloadType().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_websocket_frameProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetHeadersList(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableHeadersList(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_websocket_frameProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - seqId_ = 0L; - logId_ = 0L; - service_ = 0L; - method_ = 0L; - internalGetMutableHeadersList().clear(); - payloadEncoding_ = ""; - payloadType_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_websocket_frameProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.seqId_ = seqId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.logId_ = logId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.service_ = service_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.method_ = method_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.headersList_ = internalGetHeadersList(); - result.headersList_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.payloadEncoding_ = payloadEncoding_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.payloadType_ = payloadType_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.payload_ = payload_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame.getDefaultInstance()) return this; - if (other.getSeqId() != 0L) { - setSeqId(other.getSeqId()); - } - if (other.getLogId() != 0L) { - setLogId(other.getLogId()); - } - if (other.getService() != 0L) { - setService(other.getService()); - } - if (other.getMethod() != 0L) { - setMethod(other.getMethod()); - } - internalGetMutableHeadersList().mergeFrom( - other.internalGetHeadersList()); - bitField0_ |= 0x00000010; - if (!other.getPayloadEncoding().isEmpty()) { - payloadEncoding_ = other.payloadEncoding_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getPayloadType().isEmpty()) { - payloadType_ = other.payloadType_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - seqId_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - logId_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - service_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - method_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.protobuf.MapEntry - headersList__ = input.readMessage( - HeadersListDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableHeadersList().getMutableMap().put( - headersList__.getKey(), headersList__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - payloadEncoding_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - payloadType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - payload_ = input.readBytes(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long seqId_ ; - /** - * uint64 seq_id = 1; - * @return The seqId. - */ - @java.lang.Override - public long getSeqId() { - return seqId_; - } - /** - * uint64 seq_id = 1; - * @param value The seqId to set. - * @return This builder for chaining. - */ - public Builder setSeqId(long value) { - - seqId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 seq_id = 1; - * @return This builder for chaining. - */ - public Builder clearSeqId() { - bitField0_ = (bitField0_ & ~0x00000001); - seqId_ = 0L; - onChanged(); - return this; - } - - private long logId_ ; - /** - * uint64 log_id = 2; - * @return The logId. - */ - @java.lang.Override - public long getLogId() { - return logId_; - } - /** - * uint64 log_id = 2; - * @param value The logId to set. - * @return This builder for chaining. - */ - public Builder setLogId(long value) { - - logId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 log_id = 2; - * @return This builder for chaining. - */ - public Builder clearLogId() { - bitField0_ = (bitField0_ & ~0x00000002); - logId_ = 0L; - onChanged(); - return this; - } - - private long service_ ; - /** - * uint64 service = 3; - * @return The service. - */ - @java.lang.Override - public long getService() { - return service_; - } - /** - * uint64 service = 3; - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(long value) { - - service_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 service = 3; - * @return This builder for chaining. - */ - public Builder clearService() { - bitField0_ = (bitField0_ & ~0x00000004); - service_ = 0L; - onChanged(); - return this; - } - - private long method_ ; - /** - * uint64 method = 4; - * @return The method. - */ - @java.lang.Override - public long getMethod() { - return method_; - } - /** - * uint64 method = 4; - * @param value The method to set. - * @return This builder for chaining. - */ - public Builder setMethod(long value) { - - method_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 method = 4; - * @return This builder for chaining. - */ - public Builder clearMethod() { - bitField0_ = (bitField0_ & ~0x00000008); - method_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> headersList_; - private com.google.protobuf.MapField - internalGetHeadersList() { - if (headersList_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HeadersListDefaultEntryHolder.defaultEntry); - } - return headersList_; - } - private com.google.protobuf.MapField - internalGetMutableHeadersList() { - if (headersList_ == null) { - headersList_ = com.google.protobuf.MapField.newMapField( - HeadersListDefaultEntryHolder.defaultEntry); - } - if (!headersList_.isMutable()) { - headersList_ = headersList_.copy(); - } - bitField0_ |= 0x00000010; - onChanged(); - return headersList_; - } - public int getHeadersListCount() { - return internalGetHeadersList().getMap().size(); - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public boolean containsHeadersList( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetHeadersList().getMap().containsKey(key); - } - /** - * Use {@link #getHeadersListMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeadersList() { - return getHeadersListMap(); - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public java.util.Map getHeadersListMap() { - return internalGetHeadersList().getMap(); - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getHeadersListOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHeadersList().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> headers_list = 5; - */ - @java.lang.Override - public java.lang.String getHeadersListOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHeadersList().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearHeadersList() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableHeadersList().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> headers_list = 5; - */ - public Builder removeHeadersList( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableHeadersList().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableHeadersList() { - bitField0_ |= 0x00000010; - return internalGetMutableHeadersList().getMutableMap(); - } - /** - * map<string, string> headers_list = 5; - */ - public Builder putHeadersList( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableHeadersList().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000010; - return this; - } - /** - * map<string, string> headers_list = 5; - */ - public Builder putAllHeadersList( - java.util.Map values) { - internalGetMutableHeadersList().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000010; - return this; - } - - private java.lang.Object payloadEncoding_ = ""; - /** - * string payload_encoding = 6; - * @return The payloadEncoding. - */ - public java.lang.String getPayloadEncoding() { - java.lang.Object ref = payloadEncoding_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payloadEncoding_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string payload_encoding = 6; - * @return The bytes for payloadEncoding. - */ - public com.google.protobuf.ByteString - getPayloadEncodingBytes() { - java.lang.Object ref = payloadEncoding_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payloadEncoding_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string payload_encoding = 6; - * @param value The payloadEncoding to set. - * @return This builder for chaining. - */ - public Builder setPayloadEncoding( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - payloadEncoding_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string payload_encoding = 6; - * @return This builder for chaining. - */ - public Builder clearPayloadEncoding() { - payloadEncoding_ = getDefaultInstance().getPayloadEncoding(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string payload_encoding = 6; - * @param value The bytes for payloadEncoding to set. - * @return This builder for chaining. - */ - public Builder setPayloadEncodingBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - payloadEncoding_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object payloadType_ = ""; - /** - * string payload_type = 7; - * @return The payloadType. - */ - public java.lang.String getPayloadType() { - java.lang.Object ref = payloadType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payloadType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string payload_type = 7; - * @return The bytes for payloadType. - */ - public com.google.protobuf.ByteString - getPayloadTypeBytes() { - java.lang.Object ref = payloadType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payloadType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string payload_type = 7; - * @param value The payloadType to set. - * @return This builder for chaining. - */ - public Builder setPayloadType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - payloadType_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * string payload_type = 7; - * @return This builder for chaining. - */ - public Builder clearPayloadType() { - payloadType_ = getDefaultInstance().getPayloadType(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * string payload_type = 7; - * @param value The bytes for payloadType to set. - * @return This builder for chaining. - */ - public Builder setPayloadTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - payloadType_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 8; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 8; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - payload_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * bytes payload = 8; - * @return This builder for chaining. - */ - public Builder clearPayload() { - bitField0_ = (bitField0_ & ~0x00000080); - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_websocket_frame parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frameOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frameOrBuilder.java deleted file mode 100644 index 9bf36f73..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frameOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_websocket_frame.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_websocket_frameOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 seq_id = 1; - * @return The seqId. - */ - long getSeqId(); - - /** - * uint64 log_id = 2; - * @return The logId. - */ - long getLogId(); - - /** - * uint64 service = 3; - * @return The service. - */ - long getService(); - - /** - * uint64 method = 4; - * @return The method. - */ - long getMethod(); - - /** - * map<string, string> headers_list = 5; - */ - int getHeadersListCount(); - /** - * map<string, string> headers_list = 5; - */ - boolean containsHeadersList( - java.lang.String key); - /** - * Use {@link #getHeadersListMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getHeadersList(); - /** - * map<string, string> headers_list = 5; - */ - java.util.Map - getHeadersListMap(); - /** - * map<string, string> headers_list = 5; - */ - /* nullable */ -java.lang.String getHeadersListOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> headers_list = 5; - */ - java.lang.String getHeadersListOrThrow( - java.lang.String key); - - /** - * string payload_encoding = 6; - * @return The payloadEncoding. - */ - java.lang.String getPayloadEncoding(); - /** - * string payload_encoding = 6; - * @return The bytes for payloadEncoding. - */ - com.google.protobuf.ByteString - getPayloadEncodingBytes(); - - /** - * string payload_type = 7; - * @return The payloadType. - */ - java.lang.String getPayloadType(); - /** - * string payload_type = 7; - * @return The bytes for payloadType. - */ - com.google.protobuf.ByteString - getPayloadTypeBytes(); - - /** - * bytes payload = 8; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msg.java deleted file mode 100644 index 5037b9fe..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msg.java +++ /dev/null @@ -1,2007 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_websocket_frame_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -/** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg} - */ -public final class douyin_websocket_frame_msg extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) - douyin_websocket_frame_msgOrBuilder { -private static final long serialVersionUID = 0L; - // Use douyin_websocket_frame_msg.newBuilder() to construct. - private douyin_websocket_frame_msg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private douyin_websocket_frame_msg() { - messagesList_ = java.util.Collections.emptyList(); - cursor_ = ""; - internalExt_ = ""; - pushServer_ = ""; - liveCursor_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new douyin_websocket_frame_msg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetRouteParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.Builder.class); - } - - public static final int MESSAGES_LIST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List messagesList_; - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - @java.lang.Override - public java.util.List getMessagesListList() { - return messagesList_; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - @java.lang.Override - public java.util.List - getMessagesListOrBuilderList() { - return messagesList_; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - @java.lang.Override - public int getMessagesListCount() { - return messagesList_.size(); - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg getMessagesList(int index) { - return messagesList_.get(index); - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder getMessagesListOrBuilder( - int index) { - return messagesList_.get(index); - } - - public static final int CURSOR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object cursor_ = ""; - /** - * string cursor = 2; - * @return The cursor. - */ - @java.lang.Override - public java.lang.String getCursor() { - java.lang.Object ref = cursor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cursor_ = s; - return s; - } - } - /** - * string cursor = 2; - * @return The bytes for cursor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCursorBytes() { - java.lang.Object ref = cursor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FETCH_INTERVAL_FIELD_NUMBER = 3; - private long fetchInterval_ = 0L; - /** - * uint64 fetch_interval = 3; - * @return The fetchInterval. - */ - @java.lang.Override - public long getFetchInterval() { - return fetchInterval_; - } - - public static final int NOW_FIELD_NUMBER = 4; - private long now_ = 0L; - /** - * uint64 now = 4; - * @return The now. - */ - @java.lang.Override - public long getNow() { - return now_; - } - - public static final int INTERNAL_EXT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object internalExt_ = ""; - /** - * string internal_ext = 5; - * @return The internalExt. - */ - @java.lang.Override - public java.lang.String getInternalExt() { - java.lang.Object ref = internalExt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - internalExt_ = s; - return s; - } - } - /** - * string internal_ext = 5; - * @return The bytes for internalExt. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getInternalExtBytes() { - java.lang.Object ref = internalExt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalExt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FETCH_TYPE_FIELD_NUMBER = 6; - private int fetchType_ = 0; - /** - * uint32 fetch_type = 6; - * @return The fetchType. - */ - @java.lang.Override - public int getFetchType() { - return fetchType_; - } - - public static final int ROUTE_PARAMS_FIELD_NUMBER = 7; - private static final class RouteParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_RouteParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> routeParams_; - private com.google.protobuf.MapField - internalGetRouteParams() { - if (routeParams_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RouteParamsDefaultEntryHolder.defaultEntry); - } - return routeParams_; - } - public int getRouteParamsCount() { - return internalGetRouteParams().getMap().size(); - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public boolean containsRouteParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRouteParams().getMap().containsKey(key); - } - /** - * Use {@link #getRouteParamsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRouteParams() { - return getRouteParamsMap(); - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public java.util.Map getRouteParamsMap() { - return internalGetRouteParams().getMap(); - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getRouteParamsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRouteParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public java.lang.String getRouteParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRouteParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int HEARTBEAT_DURATION_FIELD_NUMBER = 8; - private long heartbeatDuration_ = 0L; - /** - * uint64 heartbeat_duration = 8; - * @return The heartbeatDuration. - */ - @java.lang.Override - public long getHeartbeatDuration() { - return heartbeatDuration_; - } - - public static final int NEED_ACK_FIELD_NUMBER = 9; - private boolean needAck_ = false; - /** - * bool need_ack = 9; - * @return The needAck. - */ - @java.lang.Override - public boolean getNeedAck() { - return needAck_; - } - - public static final int PUSH_SERVER_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object pushServer_ = ""; - /** - * string push_server = 10; - * @return The pushServer. - */ - @java.lang.Override - public java.lang.String getPushServer() { - java.lang.Object ref = pushServer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pushServer_ = s; - return s; - } - } - /** - * string push_server = 10; - * @return The bytes for pushServer. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPushServerBytes() { - java.lang.Object ref = pushServer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pushServer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIVE_CURSOR_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private volatile java.lang.Object liveCursor_ = ""; - /** - * string live_cursor = 11; - * @return The liveCursor. - */ - @java.lang.Override - public java.lang.String getLiveCursor() { - java.lang.Object ref = liveCursor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - liveCursor_ = s; - return s; - } - } - /** - * string live_cursor = 11; - * @return The bytes for liveCursor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLiveCursorBytes() { - java.lang.Object ref = liveCursor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - liveCursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HISTORY_NO_MORE_FIELD_NUMBER = 12; - private boolean historyNoMore_ = false; - /** - * bool history_no_more = 12; - * @return The historyNoMore. - */ - @java.lang.Override - public boolean getHistoryNoMore() { - return historyNoMore_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < messagesList_.size(); i++) { - output.writeMessage(1, messagesList_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cursor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cursor_); - } - if (fetchInterval_ != 0L) { - output.writeUInt64(3, fetchInterval_); - } - if (now_ != 0L) { - output.writeUInt64(4, now_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalExt_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, internalExt_); - } - if (fetchType_ != 0) { - output.writeUInt32(6, fetchType_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRouteParams(), - RouteParamsDefaultEntryHolder.defaultEntry, - 7); - if (heartbeatDuration_ != 0L) { - output.writeUInt64(8, heartbeatDuration_); - } - if (needAck_ != false) { - output.writeBool(9, needAck_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushServer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pushServer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(liveCursor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, liveCursor_); - } - if (historyNoMore_ != false) { - output.writeBool(12, historyNoMore_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < messagesList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, messagesList_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cursor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cursor_); - } - if (fetchInterval_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, fetchInterval_); - } - if (now_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, now_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalExt_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, internalExt_); - } - if (fetchType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, fetchType_); - } - for (java.util.Map.Entry entry - : internalGetRouteParams().getMap().entrySet()) { - com.google.protobuf.MapEntry - routeParams__ = RouteParamsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, routeParams__); - } - if (heartbeatDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, heartbeatDuration_); - } - if (needAck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, needAck_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushServer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pushServer_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(liveCursor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, liveCursor_); - } - if (historyNoMore_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, historyNoMore_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) obj; - - if (!getMessagesListList() - .equals(other.getMessagesListList())) return false; - if (!getCursor() - .equals(other.getCursor())) return false; - if (getFetchInterval() - != other.getFetchInterval()) return false; - if (getNow() - != other.getNow()) return false; - if (!getInternalExt() - .equals(other.getInternalExt())) return false; - if (getFetchType() - != other.getFetchType()) return false; - if (!internalGetRouteParams().equals( - other.internalGetRouteParams())) return false; - if (getHeartbeatDuration() - != other.getHeartbeatDuration()) return false; - if (getNeedAck() - != other.getNeedAck()) return false; - if (!getPushServer() - .equals(other.getPushServer())) return false; - if (!getLiveCursor() - .equals(other.getLiveCursor())) return false; - if (getHistoryNoMore() - != other.getHistoryNoMore()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getMessagesListCount() > 0) { - hash = (37 * hash) + MESSAGES_LIST_FIELD_NUMBER; - hash = (53 * hash) + getMessagesListList().hashCode(); - } - hash = (37 * hash) + CURSOR_FIELD_NUMBER; - hash = (53 * hash) + getCursor().hashCode(); - hash = (37 * hash) + FETCH_INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFetchInterval()); - hash = (37 * hash) + NOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNow()); - hash = (37 * hash) + INTERNAL_EXT_FIELD_NUMBER; - hash = (53 * hash) + getInternalExt().hashCode(); - hash = (37 * hash) + FETCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getFetchType(); - if (!internalGetRouteParams().getMap().isEmpty()) { - hash = (37 * hash) + ROUTE_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRouteParams().hashCode(); - } - hash = (37 * hash) + HEARTBEAT_DURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeartbeatDuration()); - hash = (37 * hash) + NEED_ACK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNeedAck()); - hash = (37 * hash) + PUSH_SERVER_FIELD_NUMBER; - hash = (53 * hash) + getPushServer().hashCode(); - hash = (37 * hash) + LIVE_CURSOR_FIELD_NUMBER; - hash = (53 * hash) + getLiveCursor().hashCode(); - hash = (37 * hash) + HISTORY_NO_MORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHistoryNoMore()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetRouteParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 7: - return internalGetMutableRouteParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (messagesListBuilder_ == null) { - messagesList_ = java.util.Collections.emptyList(); - } else { - messagesList_ = null; - messagesListBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - cursor_ = ""; - fetchInterval_ = 0L; - now_ = 0L; - internalExt_ = ""; - fetchType_ = 0; - internalGetMutableRouteParams().clear(); - heartbeatDuration_ = 0L; - needAck_ = false; - pushServer_ = ""; - liveCursor_ = ""; - historyNoMore_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msgProto.internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg result) { - if (messagesListBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - messagesList_ = java.util.Collections.unmodifiableList(messagesList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.messagesList_ = messagesList_; - } else { - result.messagesList_ = messagesListBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.cursor_ = cursor_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fetchInterval_ = fetchInterval_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.now_ = now_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.internalExt_ = internalExt_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.fetchType_ = fetchType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.routeParams_ = internalGetRouteParams(); - result.routeParams_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.heartbeatDuration_ = heartbeatDuration_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.needAck_ = needAck_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.pushServer_ = pushServer_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.liveCursor_ = liveCursor_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.historyNoMore_ = historyNoMore_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg.getDefaultInstance()) return this; - if (messagesListBuilder_ == null) { - if (!other.messagesList_.isEmpty()) { - if (messagesList_.isEmpty()) { - messagesList_ = other.messagesList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMessagesListIsMutable(); - messagesList_.addAll(other.messagesList_); - } - onChanged(); - } - } else { - if (!other.messagesList_.isEmpty()) { - if (messagesListBuilder_.isEmpty()) { - messagesListBuilder_.dispose(); - messagesListBuilder_ = null; - messagesList_ = other.messagesList_; - bitField0_ = (bitField0_ & ~0x00000001); - messagesListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessagesListFieldBuilder() : null; - } else { - messagesListBuilder_.addAllMessages(other.messagesList_); - } - } - } - if (!other.getCursor().isEmpty()) { - cursor_ = other.cursor_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getFetchInterval() != 0L) { - setFetchInterval(other.getFetchInterval()); - } - if (other.getNow() != 0L) { - setNow(other.getNow()); - } - if (!other.getInternalExt().isEmpty()) { - internalExt_ = other.internalExt_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getFetchType() != 0) { - setFetchType(other.getFetchType()); - } - internalGetMutableRouteParams().mergeFrom( - other.internalGetRouteParams()); - bitField0_ |= 0x00000040; - if (other.getHeartbeatDuration() != 0L) { - setHeartbeatDuration(other.getHeartbeatDuration()); - } - if (other.getNeedAck() != false) { - setNeedAck(other.getNeedAck()); - } - if (!other.getPushServer().isEmpty()) { - pushServer_ = other.pushServer_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getLiveCursor().isEmpty()) { - liveCursor_ = other.liveCursor_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.getHistoryNoMore() != false) { - setHistoryNoMore(other.getHistoryNoMore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.parser(), - extensionRegistry); - if (messagesListBuilder_ == null) { - ensureMessagesListIsMutable(); - messagesList_.add(m); - } else { - messagesListBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - cursor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - fetchInterval_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - now_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - internalExt_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - fetchType_ = input.readUInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - com.google.protobuf.MapEntry - routeParams__ = input.readMessage( - RouteParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableRouteParams().getMutableMap().put( - routeParams__.getKey(), routeParams__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - heartbeatDuration_ = input.readUInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - needAck_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - pushServer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - liveCursor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: { - historyNoMore_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List messagesList_ = - java.util.Collections.emptyList(); - private void ensureMessagesListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - messagesList_ = new java.util.ArrayList(messagesList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder> messagesListBuilder_; - - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public java.util.List getMessagesListList() { - if (messagesListBuilder_ == null) { - return java.util.Collections.unmodifiableList(messagesList_); - } else { - return messagesListBuilder_.getMessageList(); - } - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public int getMessagesListCount() { - if (messagesListBuilder_ == null) { - return messagesList_.size(); - } else { - return messagesListBuilder_.getCount(); - } - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg getMessagesList(int index) { - if (messagesListBuilder_ == null) { - return messagesList_.get(index); - } else { - return messagesListBuilder_.getMessage(index); - } - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder setMessagesList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg value) { - if (messagesListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessagesListIsMutable(); - messagesList_.set(index, value); - onChanged(); - } else { - messagesListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder setMessagesList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder builderForValue) { - if (messagesListBuilder_ == null) { - ensureMessagesListIsMutable(); - messagesList_.set(index, builderForValue.build()); - onChanged(); - } else { - messagesListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder addMessagesList(tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg value) { - if (messagesListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessagesListIsMutable(); - messagesList_.add(value); - onChanged(); - } else { - messagesListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder addMessagesList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg value) { - if (messagesListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessagesListIsMutable(); - messagesList_.add(index, value); - onChanged(); - } else { - messagesListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder addMessagesList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder builderForValue) { - if (messagesListBuilder_ == null) { - ensureMessagesListIsMutable(); - messagesList_.add(builderForValue.build()); - onChanged(); - } else { - messagesListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder addMessagesList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder builderForValue) { - if (messagesListBuilder_ == null) { - ensureMessagesListIsMutable(); - messagesList_.add(index, builderForValue.build()); - onChanged(); - } else { - messagesListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder addAllMessagesList( - java.lang.Iterable values) { - if (messagesListBuilder_ == null) { - ensureMessagesListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messagesList_); - onChanged(); - } else { - messagesListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder clearMessagesList() { - if (messagesListBuilder_ == null) { - messagesList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - messagesListBuilder_.clear(); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public Builder removeMessagesList(int index) { - if (messagesListBuilder_ == null) { - ensureMessagesListIsMutable(); - messagesList_.remove(index); - onChanged(); - } else { - messagesListBuilder_.remove(index); - } - return this; - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder getMessagesListBuilder( - int index) { - return getMessagesListFieldBuilder().getBuilder(index); - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder getMessagesListOrBuilder( - int index) { - if (messagesListBuilder_ == null) { - return messagesList_.get(index); } else { - return messagesListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public java.util.List - getMessagesListOrBuilderList() { - if (messagesListBuilder_ != null) { - return messagesListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(messagesList_); - } - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder addMessagesListBuilder() { - return getMessagesListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.getDefaultInstance()); - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder addMessagesListBuilder( - int index) { - return getMessagesListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.getDefaultInstance()); - } - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - public java.util.List - getMessagesListBuilderList() { - return getMessagesListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder> - getMessagesListFieldBuilder() { - if (messagesListBuilder_ == null) { - messagesListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder>( - messagesList_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - messagesList_ = null; - } - return messagesListBuilder_; - } - - private java.lang.Object cursor_ = ""; - /** - * string cursor = 2; - * @return The cursor. - */ - public java.lang.String getCursor() { - java.lang.Object ref = cursor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cursor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cursor = 2; - * @return The bytes for cursor. - */ - public com.google.protobuf.ByteString - getCursorBytes() { - java.lang.Object ref = cursor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cursor = 2; - * @param value The cursor to set. - * @return This builder for chaining. - */ - public Builder setCursor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - cursor_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string cursor = 2; - * @return This builder for chaining. - */ - public Builder clearCursor() { - cursor_ = getDefaultInstance().getCursor(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string cursor = 2; - * @param value The bytes for cursor to set. - * @return This builder for chaining. - */ - public Builder setCursorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - cursor_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long fetchInterval_ ; - /** - * uint64 fetch_interval = 3; - * @return The fetchInterval. - */ - @java.lang.Override - public long getFetchInterval() { - return fetchInterval_; - } - /** - * uint64 fetch_interval = 3; - * @param value The fetchInterval to set. - * @return This builder for chaining. - */ - public Builder setFetchInterval(long value) { - - fetchInterval_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 fetch_interval = 3; - * @return This builder for chaining. - */ - public Builder clearFetchInterval() { - bitField0_ = (bitField0_ & ~0x00000004); - fetchInterval_ = 0L; - onChanged(); - return this; - } - - private long now_ ; - /** - * uint64 now = 4; - * @return The now. - */ - @java.lang.Override - public long getNow() { - return now_; - } - /** - * uint64 now = 4; - * @param value The now to set. - * @return This builder for chaining. - */ - public Builder setNow(long value) { - - now_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 now = 4; - * @return This builder for chaining. - */ - public Builder clearNow() { - bitField0_ = (bitField0_ & ~0x00000008); - now_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object internalExt_ = ""; - /** - * string internal_ext = 5; - * @return The internalExt. - */ - public java.lang.String getInternalExt() { - java.lang.Object ref = internalExt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - internalExt_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string internal_ext = 5; - * @return The bytes for internalExt. - */ - public com.google.protobuf.ByteString - getInternalExtBytes() { - java.lang.Object ref = internalExt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalExt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string internal_ext = 5; - * @param value The internalExt to set. - * @return This builder for chaining. - */ - public Builder setInternalExt( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - internalExt_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string internal_ext = 5; - * @return This builder for chaining. - */ - public Builder clearInternalExt() { - internalExt_ = getDefaultInstance().getInternalExt(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string internal_ext = 5; - * @param value The bytes for internalExt to set. - * @return This builder for chaining. - */ - public Builder setInternalExtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - internalExt_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int fetchType_ ; - /** - * uint32 fetch_type = 6; - * @return The fetchType. - */ - @java.lang.Override - public int getFetchType() { - return fetchType_; - } - /** - * uint32 fetch_type = 6; - * @param value The fetchType to set. - * @return This builder for chaining. - */ - public Builder setFetchType(int value) { - - fetchType_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint32 fetch_type = 6; - * @return This builder for chaining. - */ - public Builder clearFetchType() { - bitField0_ = (bitField0_ & ~0x00000020); - fetchType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> routeParams_; - private com.google.protobuf.MapField - internalGetRouteParams() { - if (routeParams_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RouteParamsDefaultEntryHolder.defaultEntry); - } - return routeParams_; - } - private com.google.protobuf.MapField - internalGetMutableRouteParams() { - if (routeParams_ == null) { - routeParams_ = com.google.protobuf.MapField.newMapField( - RouteParamsDefaultEntryHolder.defaultEntry); - } - if (!routeParams_.isMutable()) { - routeParams_ = routeParams_.copy(); - } - bitField0_ |= 0x00000040; - onChanged(); - return routeParams_; - } - public int getRouteParamsCount() { - return internalGetRouteParams().getMap().size(); - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public boolean containsRouteParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRouteParams().getMap().containsKey(key); - } - /** - * Use {@link #getRouteParamsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRouteParams() { - return getRouteParamsMap(); - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public java.util.Map getRouteParamsMap() { - return internalGetRouteParams().getMap(); - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public /* nullable */ -java.lang.String getRouteParamsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRouteParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> route_params = 7; - */ - @java.lang.Override - public java.lang.String getRouteParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRouteParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearRouteParams() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableRouteParams().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> route_params = 7; - */ - public Builder removeRouteParams( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRouteParams().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRouteParams() { - bitField0_ |= 0x00000040; - return internalGetMutableRouteParams().getMutableMap(); - } - /** - * map<string, string> route_params = 7; - */ - public Builder putRouteParams( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableRouteParams().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000040; - return this; - } - /** - * map<string, string> route_params = 7; - */ - public Builder putAllRouteParams( - java.util.Map values) { - internalGetMutableRouteParams().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000040; - return this; - } - - private long heartbeatDuration_ ; - /** - * uint64 heartbeat_duration = 8; - * @return The heartbeatDuration. - */ - @java.lang.Override - public long getHeartbeatDuration() { - return heartbeatDuration_; - } - /** - * uint64 heartbeat_duration = 8; - * @param value The heartbeatDuration to set. - * @return This builder for chaining. - */ - public Builder setHeartbeatDuration(long value) { - - heartbeatDuration_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * uint64 heartbeat_duration = 8; - * @return This builder for chaining. - */ - public Builder clearHeartbeatDuration() { - bitField0_ = (bitField0_ & ~0x00000080); - heartbeatDuration_ = 0L; - onChanged(); - return this; - } - - private boolean needAck_ ; - /** - * bool need_ack = 9; - * @return The needAck. - */ - @java.lang.Override - public boolean getNeedAck() { - return needAck_; - } - /** - * bool need_ack = 9; - * @param value The needAck to set. - * @return This builder for chaining. - */ - public Builder setNeedAck(boolean value) { - - needAck_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * bool need_ack = 9; - * @return This builder for chaining. - */ - public Builder clearNeedAck() { - bitField0_ = (bitField0_ & ~0x00000100); - needAck_ = false; - onChanged(); - return this; - } - - private java.lang.Object pushServer_ = ""; - /** - * string push_server = 10; - * @return The pushServer. - */ - public java.lang.String getPushServer() { - java.lang.Object ref = pushServer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pushServer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string push_server = 10; - * @return The bytes for pushServer. - */ - public com.google.protobuf.ByteString - getPushServerBytes() { - java.lang.Object ref = pushServer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pushServer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string push_server = 10; - * @param value The pushServer to set. - * @return This builder for chaining. - */ - public Builder setPushServer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pushServer_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * string push_server = 10; - * @return This builder for chaining. - */ - public Builder clearPushServer() { - pushServer_ = getDefaultInstance().getPushServer(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * string push_server = 10; - * @param value The bytes for pushServer to set. - * @return This builder for chaining. - */ - public Builder setPushServerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pushServer_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private java.lang.Object liveCursor_ = ""; - /** - * string live_cursor = 11; - * @return The liveCursor. - */ - public java.lang.String getLiveCursor() { - java.lang.Object ref = liveCursor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - liveCursor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string live_cursor = 11; - * @return The bytes for liveCursor. - */ - public com.google.protobuf.ByteString - getLiveCursorBytes() { - java.lang.Object ref = liveCursor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - liveCursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string live_cursor = 11; - * @param value The liveCursor to set. - * @return This builder for chaining. - */ - public Builder setLiveCursor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - liveCursor_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * string live_cursor = 11; - * @return This builder for chaining. - */ - public Builder clearLiveCursor() { - liveCursor_ = getDefaultInstance().getLiveCursor(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * string live_cursor = 11; - * @param value The bytes for liveCursor to set. - * @return This builder for chaining. - */ - public Builder setLiveCursorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - liveCursor_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private boolean historyNoMore_ ; - /** - * bool history_no_more = 12; - * @return The historyNoMore. - */ - @java.lang.Override - public boolean getHistoryNoMore() { - return historyNoMore_; - } - /** - * bool history_no_more = 12; - * @param value The historyNoMore to set. - * @return This builder for chaining. - */ - public Builder setHistoryNoMore(boolean value) { - - historyNoMore_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * bool history_no_more = 12; - * @return This builder for chaining. - */ - public Builder clearHistoryNoMore() { - bitField0_ = (bitField0_ & ~0x00000800); - historyNoMore_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) - } - - // @@protoc_insertion_point(class_scope:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public douyin_websocket_frame_msg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msgOrBuilder.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msgOrBuilder.java deleted file mode 100644 index e90332f8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msgOrBuilder.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_websocket_frame_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public interface douyin_websocket_frame_msgOrBuilder extends - // @@protoc_insertion_point(interface_extends:tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_websocket_frame_msg) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - java.util.List - getMessagesListList(); - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg getMessagesList(int index); - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - int getMessagesListCount(); - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - java.util.List - getMessagesListOrBuilderList(); - /** - * repeated .tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msg messages_list = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.douyin_cmd_msgOrBuilder getMessagesListOrBuilder( - int index); - - /** - * string cursor = 2; - * @return The cursor. - */ - java.lang.String getCursor(); - /** - * string cursor = 2; - * @return The bytes for cursor. - */ - com.google.protobuf.ByteString - getCursorBytes(); - - /** - * uint64 fetch_interval = 3; - * @return The fetchInterval. - */ - long getFetchInterval(); - - /** - * uint64 now = 4; - * @return The now. - */ - long getNow(); - - /** - * string internal_ext = 5; - * @return The internalExt. - */ - java.lang.String getInternalExt(); - /** - * string internal_ext = 5; - * @return The bytes for internalExt. - */ - com.google.protobuf.ByteString - getInternalExtBytes(); - - /** - * uint32 fetch_type = 6; - * @return The fetchType. - */ - int getFetchType(); - - /** - * map<string, string> route_params = 7; - */ - int getRouteParamsCount(); - /** - * map<string, string> route_params = 7; - */ - boolean containsRouteParams( - java.lang.String key); - /** - * Use {@link #getRouteParamsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRouteParams(); - /** - * map<string, string> route_params = 7; - */ - java.util.Map - getRouteParamsMap(); - /** - * map<string, string> route_params = 7; - */ - /* nullable */ -java.lang.String getRouteParamsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - * map<string, string> route_params = 7; - */ - java.lang.String getRouteParamsOrThrow( - java.lang.String key); - - /** - * uint64 heartbeat_duration = 8; - * @return The heartbeatDuration. - */ - long getHeartbeatDuration(); - - /** - * bool need_ack = 9; - * @return The needAck. - */ - boolean getNeedAck(); - - /** - * string push_server = 10; - * @return The pushServer. - */ - java.lang.String getPushServer(); - /** - * string push_server = 10; - * @return The bytes for pushServer. - */ - com.google.protobuf.ByteString - getPushServerBytes(); - - /** - * string live_cursor = 11; - * @return The liveCursor. - */ - java.lang.String getLiveCursor(); - /** - * string live_cursor = 11; - * @return The bytes for liveCursor. - */ - com.google.protobuf.ByteString - getLiveCursorBytes(); - - /** - * bool history_no_more = 12; - * @return The historyNoMore. - */ - boolean getHistoryNoMore(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msgProto.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msgProto.java deleted file mode 100644 index 607d3eda..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/douyin_websocket_frame_msgProto.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: douyin_websocket_frame_msg.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -public final class douyin_websocket_frame_msgProto { - private douyin_websocket_frame_msgProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_RouteParamsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_RouteParamsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n douyin_websocket_frame_msg.proto\0222tech" + - ".ordinaryroad.live.chat.client.douyin.pr" + - "otobuf\032\024douyin_cmd_msg.proto\"\362\003\n\032douyin_" + - "websocket_frame_msg\022Y\n\rmessages_list\030\001 \003" + - "(\0132B.tech.ordinaryroad.live.chat.client." + - "douyin.protobuf.douyin_cmd_msg\022\016\n\006cursor" + - "\030\002 \001(\t\022\026\n\016fetch_interval\030\003 \001(\004\022\013\n\003now\030\004 " + - "\001(\004\022\024\n\014internal_ext\030\005 \001(\t\022\022\n\nfetch_type\030" + - "\006 \001(\r\022u\n\014route_params\030\007 \003(\0132_.tech.ordin" + - "aryroad.live.chat.client.douyin.protobuf" + - ".douyin_websocket_frame_msg.RouteParamsE" + - "ntry\022\032\n\022heartbeat_duration\030\010 \001(\004\022\020\n\010need" + - "_ack\030\t \001(\010\022\023\n\013push_server\030\n \001(\t\022\023\n\013live_" + - "cursor\030\013 \001(\t\022\027\n\017history_no_more\030\014 \001(\010\0322\n" + - "\020RouteParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001B]\n2tech.ordinaryroad.live.chat" + - ".client.douyin.protobufB\037douyin_websocke" + - "t_frame_msgProtoP\001\242\002\003GPBb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.getDescriptor(), - }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor, - new java.lang.String[] { "MessagesList", "Cursor", "FetchInterval", "Now", "InternalExt", "FetchType", "RouteParams", "HeartbeatDuration", "NeedAck", "PushServer", "LiveCursor", "HistoryNoMore", }); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_RouteParamsEntry_descriptor = - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_descriptor.getNestedTypes().get(0); - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_RouteParamsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_tech_ordinaryroad_live_chat_client_douyin_protobuf_douyin_websocket_frame_msg_RouteParamsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.Douyin_cmd_msgProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/CommonOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/CommonOuterClass.java deleted file mode 100644 index 17c17c41..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/CommonOuterClass.java +++ /dev/null @@ -1,2558 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Common.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class CommonOuterClass { - private CommonOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CommonOrBuilder extends - // @@protoc_insertion_point(interface_extends:Common) - com.google.protobuf.MessageOrBuilder { - - /** - * string method = 1; - * @return The method. - */ - java.lang.String getMethod(); - /** - * string method = 1; - * @return The bytes for method. - */ - com.google.protobuf.ByteString - getMethodBytes(); - - /** - * uint64 msgId = 2; - * @return The msgId. - */ - long getMsgId(); - - /** - * uint64 roomId = 3; - * @return The roomId. - */ - long getRoomId(); - - /** - * uint64 createTime = 4; - * @return The createTime. - */ - long getCreateTime(); - - /** - * uint32 monitor = 5; - * @return The monitor. - */ - int getMonitor(); - - /** - * bool isShowMsg = 6; - * @return The isShowMsg. - */ - boolean getIsShowMsg(); - - /** - * string describe = 7; - * @return The describe. - */ - java.lang.String getDescribe(); - /** - * string describe = 7; - * @return The bytes for describe. - */ - com.google.protobuf.ByteString - getDescribeBytes(); - - /** - *
-     * DisplayText displayText = 8;
-     * 
- * - * uint64 foldType = 9; - * @return The foldType. - */ - long getFoldType(); - - /** - * uint64 anchorFoldType = 10; - * @return The anchorFoldType. - */ - long getAnchorFoldType(); - - /** - * uint64 priorityScore = 11; - * @return The priorityScore. - */ - long getPriorityScore(); - - /** - * string logId = 12; - * @return The logId. - */ - java.lang.String getLogId(); - /** - * string logId = 12; - * @return The bytes for logId. - */ - com.google.protobuf.ByteString - getLogIdBytes(); - - /** - * string msgProcessFilterK = 13; - * @return The msgProcessFilterK. - */ - java.lang.String getMsgProcessFilterK(); - /** - * string msgProcessFilterK = 13; - * @return The bytes for msgProcessFilterK. - */ - com.google.protobuf.ByteString - getMsgProcessFilterKBytes(); - - /** - * string msgProcessFilterV = 14; - * @return The msgProcessFilterV. - */ - java.lang.String getMsgProcessFilterV(); - /** - * string msgProcessFilterV = 14; - * @return The bytes for msgProcessFilterV. - */ - com.google.protobuf.ByteString - getMsgProcessFilterVBytes(); - - /** - * .User user = 15; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .User user = 15; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser(); - /** - * .User user = 15; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder(); - - /** - *
-     * Room room = 16;
-     * 
- * - * uint64 anchorFoldTypeV2 = 17; - * @return The anchorFoldTypeV2. - */ - long getAnchorFoldTypeV2(); - - /** - * uint64 processAtSeiTimeMs = 18; - * @return The processAtSeiTimeMs. - */ - long getProcessAtSeiTimeMs(); - - /** - * uint64 randomDispatchMs = 19; - * @return The randomDispatchMs. - */ - long getRandomDispatchMs(); - - /** - * bool isDispatch = 20; - * @return The isDispatch. - */ - boolean getIsDispatch(); - - /** - * uint32 channelId = 21; - * @return The channelId. - */ - int getChannelId(); - - /** - * uint64 diffSei2absSecond = 22; - * @return The diffSei2absSecond. - */ - long getDiffSei2AbsSecond(); - - /** - * uint64 anchorFoldDuration = 23; - * @return The anchorFoldDuration. - */ - long getAnchorFoldDuration(); - } - /** - * Protobuf type {@code Common} - */ - public static final class Common extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Common) - CommonOrBuilder { - private static final long serialVersionUID = 0L; - // Use Common.newBuilder() to construct. - private Common(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Common() { - method_ = ""; - describe_ = ""; - logId_ = ""; - msgProcessFilterK_ = ""; - msgProcessFilterV_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Common(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.internal_static_Common_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.internal_static_Common_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder.class); - } - - public static final int METHOD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object method_ = ""; - /** - * string method = 1; - * @return The method. - */ - @java.lang.Override - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } - } - /** - * string method = 1; - * @return The bytes for method. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MSGID_FIELD_NUMBER = 2; - private long msgId_ = 0L; - /** - * uint64 msgId = 2; - * @return The msgId. - */ - @java.lang.Override - public long getMsgId() { - return msgId_; - } - - public static final int ROOMID_FIELD_NUMBER = 3; - private long roomId_ = 0L; - /** - * uint64 roomId = 3; - * @return The roomId. - */ - @java.lang.Override - public long getRoomId() { - return roomId_; - } - - public static final int CREATETIME_FIELD_NUMBER = 4; - private long createTime_ = 0L; - /** - * uint64 createTime = 4; - * @return The createTime. - */ - @java.lang.Override - public long getCreateTime() { - return createTime_; - } - - public static final int MONITOR_FIELD_NUMBER = 5; - private int monitor_ = 0; - /** - * uint32 monitor = 5; - * @return The monitor. - */ - @java.lang.Override - public int getMonitor() { - return monitor_; - } - - public static final int ISSHOWMSG_FIELD_NUMBER = 6; - private boolean isShowMsg_ = false; - /** - * bool isShowMsg = 6; - * @return The isShowMsg. - */ - @java.lang.Override - public boolean getIsShowMsg() { - return isShowMsg_; - } - - public static final int DESCRIBE_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object describe_ = ""; - /** - * string describe = 7; - * @return The describe. - */ - @java.lang.Override - public java.lang.String getDescribe() { - java.lang.Object ref = describe_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - describe_ = s; - return s; - } - } - /** - * string describe = 7; - * @return The bytes for describe. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescribeBytes() { - java.lang.Object ref = describe_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - describe_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FOLDTYPE_FIELD_NUMBER = 9; - private long foldType_ = 0L; - /** - *
-     * DisplayText displayText = 8;
-     * 
- * - * uint64 foldType = 9; - * @return The foldType. - */ - @java.lang.Override - public long getFoldType() { - return foldType_; - } - - public static final int ANCHORFOLDTYPE_FIELD_NUMBER = 10; - private long anchorFoldType_ = 0L; - /** - * uint64 anchorFoldType = 10; - * @return The anchorFoldType. - */ - @java.lang.Override - public long getAnchorFoldType() { - return anchorFoldType_; - } - - public static final int PRIORITYSCORE_FIELD_NUMBER = 11; - private long priorityScore_ = 0L; - /** - * uint64 priorityScore = 11; - * @return The priorityScore. - */ - @java.lang.Override - public long getPriorityScore() { - return priorityScore_; - } - - public static final int LOGID_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private volatile java.lang.Object logId_ = ""; - /** - * string logId = 12; - * @return The logId. - */ - @java.lang.Override - public java.lang.String getLogId() { - java.lang.Object ref = logId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logId_ = s; - return s; - } - } - /** - * string logId = 12; - * @return The bytes for logId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLogIdBytes() { - java.lang.Object ref = logId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MSGPROCESSFILTERK_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object msgProcessFilterK_ = ""; - /** - * string msgProcessFilterK = 13; - * @return The msgProcessFilterK. - */ - @java.lang.Override - public java.lang.String getMsgProcessFilterK() { - java.lang.Object ref = msgProcessFilterK_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgProcessFilterK_ = s; - return s; - } - } - /** - * string msgProcessFilterK = 13; - * @return The bytes for msgProcessFilterK. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgProcessFilterKBytes() { - java.lang.Object ref = msgProcessFilterK_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgProcessFilterK_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MSGPROCESSFILTERV_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object msgProcessFilterV_ = ""; - /** - * string msgProcessFilterV = 14; - * @return The msgProcessFilterV. - */ - @java.lang.Override - public java.lang.String getMsgProcessFilterV() { - java.lang.Object ref = msgProcessFilterV_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgProcessFilterV_ = s; - return s; - } - } - /** - * string msgProcessFilterV = 14; - * @return The bytes for msgProcessFilterV. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgProcessFilterVBytes() { - java.lang.Object ref = msgProcessFilterV_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgProcessFilterV_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_FIELD_NUMBER = 15; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - /** - * .User user = 15; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .User user = 15; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - /** - * .User user = 15; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - - public static final int ANCHORFOLDTYPEV2_FIELD_NUMBER = 17; - private long anchorFoldTypeV2_ = 0L; - /** - *
-     * Room room = 16;
-     * 
- * - * uint64 anchorFoldTypeV2 = 17; - * @return The anchorFoldTypeV2. - */ - @java.lang.Override - public long getAnchorFoldTypeV2() { - return anchorFoldTypeV2_; - } - - public static final int PROCESSATSEITIMEMS_FIELD_NUMBER = 18; - private long processAtSeiTimeMs_ = 0L; - /** - * uint64 processAtSeiTimeMs = 18; - * @return The processAtSeiTimeMs. - */ - @java.lang.Override - public long getProcessAtSeiTimeMs() { - return processAtSeiTimeMs_; - } - - public static final int RANDOMDISPATCHMS_FIELD_NUMBER = 19; - private long randomDispatchMs_ = 0L; - /** - * uint64 randomDispatchMs = 19; - * @return The randomDispatchMs. - */ - @java.lang.Override - public long getRandomDispatchMs() { - return randomDispatchMs_; - } - - public static final int ISDISPATCH_FIELD_NUMBER = 20; - private boolean isDispatch_ = false; - /** - * bool isDispatch = 20; - * @return The isDispatch. - */ - @java.lang.Override - public boolean getIsDispatch() { - return isDispatch_; - } - - public static final int CHANNELID_FIELD_NUMBER = 21; - private int channelId_ = 0; - /** - * uint32 channelId = 21; - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - - public static final int DIFFSEI2ABSSECOND_FIELD_NUMBER = 22; - private long diffSei2AbsSecond_ = 0L; - /** - * uint64 diffSei2absSecond = 22; - * @return The diffSei2absSecond. - */ - @java.lang.Override - public long getDiffSei2AbsSecond() { - return diffSei2AbsSecond_; - } - - public static final int ANCHORFOLDDURATION_FIELD_NUMBER = 23; - private long anchorFoldDuration_ = 0L; - /** - * uint64 anchorFoldDuration = 23; - * @return The anchorFoldDuration. - */ - @java.lang.Override - public long getAnchorFoldDuration() { - return anchorFoldDuration_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); - } - if (msgId_ != 0L) { - output.writeUInt64(2, msgId_); - } - if (roomId_ != 0L) { - output.writeUInt64(3, roomId_); - } - if (createTime_ != 0L) { - output.writeUInt64(4, createTime_); - } - if (monitor_ != 0) { - output.writeUInt32(5, monitor_); - } - if (isShowMsg_ != false) { - output.writeBool(6, isShowMsg_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(describe_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, describe_); - } - if (foldType_ != 0L) { - output.writeUInt64(9, foldType_); - } - if (anchorFoldType_ != 0L) { - output.writeUInt64(10, anchorFoldType_); - } - if (priorityScore_ != 0L) { - output.writeUInt64(11, priorityScore_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, logId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgProcessFilterK_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, msgProcessFilterK_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgProcessFilterV_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, msgProcessFilterV_); - } - if (user_ != null) { - output.writeMessage(15, getUser()); - } - if (anchorFoldTypeV2_ != 0L) { - output.writeUInt64(17, anchorFoldTypeV2_); - } - if (processAtSeiTimeMs_ != 0L) { - output.writeUInt64(18, processAtSeiTimeMs_); - } - if (randomDispatchMs_ != 0L) { - output.writeUInt64(19, randomDispatchMs_); - } - if (isDispatch_ != false) { - output.writeBool(20, isDispatch_); - } - if (channelId_ != 0) { - output.writeUInt32(21, channelId_); - } - if (diffSei2AbsSecond_ != 0L) { - output.writeUInt64(22, diffSei2AbsSecond_); - } - if (anchorFoldDuration_ != 0L) { - output.writeUInt64(23, anchorFoldDuration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); - } - if (msgId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, msgId_); - } - if (roomId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, roomId_); - } - if (createTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, createTime_); - } - if (monitor_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, monitor_); - } - if (isShowMsg_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isShowMsg_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(describe_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, describe_); - } - if (foldType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, foldType_); - } - if (anchorFoldType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, anchorFoldType_); - } - if (priorityScore_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, priorityScore_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, logId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgProcessFilterK_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, msgProcessFilterK_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msgProcessFilterV_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, msgProcessFilterV_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getUser()); - } - if (anchorFoldTypeV2_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(17, anchorFoldTypeV2_); - } - if (processAtSeiTimeMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(18, processAtSeiTimeMs_); - } - if (randomDispatchMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(19, randomDispatchMs_); - } - if (isDispatch_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, isDispatch_); - } - if (channelId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(21, channelId_); - } - if (diffSei2AbsSecond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(22, diffSei2AbsSecond_); - } - if (anchorFoldDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(23, anchorFoldDuration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common) obj; - - if (!getMethod() - .equals(other.getMethod())) return false; - if (getMsgId() - != other.getMsgId()) return false; - if (getRoomId() - != other.getRoomId()) return false; - if (getCreateTime() - != other.getCreateTime()) return false; - if (getMonitor() - != other.getMonitor()) return false; - if (getIsShowMsg() - != other.getIsShowMsg()) return false; - if (!getDescribe() - .equals(other.getDescribe())) return false; - if (getFoldType() - != other.getFoldType()) return false; - if (getAnchorFoldType() - != other.getAnchorFoldType()) return false; - if (getPriorityScore() - != other.getPriorityScore()) return false; - if (!getLogId() - .equals(other.getLogId())) return false; - if (!getMsgProcessFilterK() - .equals(other.getMsgProcessFilterK())) return false; - if (!getMsgProcessFilterV() - .equals(other.getMsgProcessFilterV())) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getAnchorFoldTypeV2() - != other.getAnchorFoldTypeV2()) return false; - if (getProcessAtSeiTimeMs() - != other.getProcessAtSeiTimeMs()) return false; - if (getRandomDispatchMs() - != other.getRandomDispatchMs()) return false; - if (getIsDispatch() - != other.getIsDispatch()) return false; - if (getChannelId() - != other.getChannelId()) return false; - if (getDiffSei2AbsSecond() - != other.getDiffSei2AbsSecond()) return false; - if (getAnchorFoldDuration() - != other.getAnchorFoldDuration()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METHOD_FIELD_NUMBER; - hash = (53 * hash) + getMethod().hashCode(); - hash = (37 * hash) + MSGID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMsgId()); - hash = (37 * hash) + ROOMID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRoomId()); - hash = (37 * hash) + CREATETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreateTime()); - hash = (37 * hash) + MONITOR_FIELD_NUMBER; - hash = (53 * hash) + getMonitor(); - hash = (37 * hash) + ISSHOWMSG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsShowMsg()); - hash = (37 * hash) + DESCRIBE_FIELD_NUMBER; - hash = (53 * hash) + getDescribe().hashCode(); - hash = (37 * hash) + FOLDTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFoldType()); - hash = (37 * hash) + ANCHORFOLDTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnchorFoldType()); - hash = (37 * hash) + PRIORITYSCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPriorityScore()); - hash = (37 * hash) + LOGID_FIELD_NUMBER; - hash = (53 * hash) + getLogId().hashCode(); - hash = (37 * hash) + MSGPROCESSFILTERK_FIELD_NUMBER; - hash = (53 * hash) + getMsgProcessFilterK().hashCode(); - hash = (37 * hash) + MSGPROCESSFILTERV_FIELD_NUMBER; - hash = (53 * hash) + getMsgProcessFilterV().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + ANCHORFOLDTYPEV2_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnchorFoldTypeV2()); - hash = (37 * hash) + PROCESSATSEITIMEMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getProcessAtSeiTimeMs()); - hash = (37 * hash) + RANDOMDISPATCHMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRandomDispatchMs()); - hash = (37 * hash) + ISDISPATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDispatch()); - hash = (37 * hash) + CHANNELID_FIELD_NUMBER; - hash = (53 * hash) + getChannelId(); - hash = (37 * hash) + DIFFSEI2ABSSECOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDiffSei2AbsSecond()); - hash = (37 * hash) + ANCHORFOLDDURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnchorFoldDuration()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Common} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Common) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.CommonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.internal_static_Common_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.internal_static_Common_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - method_ = ""; - msgId_ = 0L; - roomId_ = 0L; - createTime_ = 0L; - monitor_ = 0; - isShowMsg_ = false; - describe_ = ""; - foldType_ = 0L; - anchorFoldType_ = 0L; - priorityScore_ = 0L; - logId_ = ""; - msgProcessFilterK_ = ""; - msgProcessFilterV_ = ""; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - anchorFoldTypeV2_ = 0L; - processAtSeiTimeMs_ = 0L; - randomDispatchMs_ = 0L; - isDispatch_ = false; - channelId_ = 0; - diffSei2AbsSecond_ = 0L; - anchorFoldDuration_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.internal_static_Common_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.method_ = method_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.msgId_ = msgId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.roomId_ = roomId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.createTime_ = createTime_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.monitor_ = monitor_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.isShowMsg_ = isShowMsg_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.describe_ = describe_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.foldType_ = foldType_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.anchorFoldType_ = anchorFoldType_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.priorityScore_ = priorityScore_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.logId_ = logId_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.msgProcessFilterK_ = msgProcessFilterK_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.msgProcessFilterV_ = msgProcessFilterV_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.anchorFoldTypeV2_ = anchorFoldTypeV2_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.processAtSeiTimeMs_ = processAtSeiTimeMs_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.randomDispatchMs_ = randomDispatchMs_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.isDispatch_ = isDispatch_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.channelId_ = channelId_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.diffSei2AbsSecond_ = diffSei2AbsSecond_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.anchorFoldDuration_ = anchorFoldDuration_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common.getDefaultInstance()) return this; - if (!other.getMethod().isEmpty()) { - method_ = other.method_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getMsgId() != 0L) { - setMsgId(other.getMsgId()); - } - if (other.getRoomId() != 0L) { - setRoomId(other.getRoomId()); - } - if (other.getCreateTime() != 0L) { - setCreateTime(other.getCreateTime()); - } - if (other.getMonitor() != 0) { - setMonitor(other.getMonitor()); - } - if (other.getIsShowMsg() != false) { - setIsShowMsg(other.getIsShowMsg()); - } - if (!other.getDescribe().isEmpty()) { - describe_ = other.describe_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.getFoldType() != 0L) { - setFoldType(other.getFoldType()); - } - if (other.getAnchorFoldType() != 0L) { - setAnchorFoldType(other.getAnchorFoldType()); - } - if (other.getPriorityScore() != 0L) { - setPriorityScore(other.getPriorityScore()); - } - if (!other.getLogId().isEmpty()) { - logId_ = other.logId_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (!other.getMsgProcessFilterK().isEmpty()) { - msgProcessFilterK_ = other.msgProcessFilterK_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (!other.getMsgProcessFilterV().isEmpty()) { - msgProcessFilterV_ = other.msgProcessFilterV_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getAnchorFoldTypeV2() != 0L) { - setAnchorFoldTypeV2(other.getAnchorFoldTypeV2()); - } - if (other.getProcessAtSeiTimeMs() != 0L) { - setProcessAtSeiTimeMs(other.getProcessAtSeiTimeMs()); - } - if (other.getRandomDispatchMs() != 0L) { - setRandomDispatchMs(other.getRandomDispatchMs()); - } - if (other.getIsDispatch() != false) { - setIsDispatch(other.getIsDispatch()); - } - if (other.getChannelId() != 0) { - setChannelId(other.getChannelId()); - } - if (other.getDiffSei2AbsSecond() != 0L) { - setDiffSei2AbsSecond(other.getDiffSei2AbsSecond()); - } - if (other.getAnchorFoldDuration() != 0L) { - setAnchorFoldDuration(other.getAnchorFoldDuration()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - msgId_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - roomId_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - createTime_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - monitor_ = input.readUInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - isShowMsg_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - describe_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 72: { - foldType_ = input.readUInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 80: { - anchorFoldType_ = input.readUInt64(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 88: { - priorityScore_ = input.readUInt64(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 98: { - logId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 98 - case 106: { - msgProcessFilterK_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 114: { - msgProcessFilterV_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 114 - case 122: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 122 - case 136: { - anchorFoldTypeV2_ = input.readUInt64(); - bitField0_ |= 0x00004000; - break; - } // case 136 - case 144: { - processAtSeiTimeMs_ = input.readUInt64(); - bitField0_ |= 0x00008000; - break; - } // case 144 - case 152: { - randomDispatchMs_ = input.readUInt64(); - bitField0_ |= 0x00010000; - break; - } // case 152 - case 160: { - isDispatch_ = input.readBool(); - bitField0_ |= 0x00020000; - break; - } // case 160 - case 168: { - channelId_ = input.readUInt32(); - bitField0_ |= 0x00040000; - break; - } // case 168 - case 176: { - diffSei2AbsSecond_ = input.readUInt64(); - bitField0_ |= 0x00080000; - break; - } // case 176 - case 184: { - anchorFoldDuration_ = input.readUInt64(); - bitField0_ |= 0x00100000; - break; - } // case 184 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object method_ = ""; - /** - * string method = 1; - * @return The method. - */ - public java.lang.String getMethod() { - java.lang.Object ref = method_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - method_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string method = 1; - * @return The bytes for method. - */ - public com.google.protobuf.ByteString - getMethodBytes() { - java.lang.Object ref = method_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - method_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string method = 1; - * @param value The method to set. - * @return This builder for chaining. - */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - method_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string method = 1; - * @return This builder for chaining. - */ - public Builder clearMethod() { - method_ = getDefaultInstance().getMethod(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string method = 1; - * @param value The bytes for method to set. - * @return This builder for chaining. - */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - method_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private long msgId_ ; - /** - * uint64 msgId = 2; - * @return The msgId. - */ - @java.lang.Override - public long getMsgId() { - return msgId_; - } - /** - * uint64 msgId = 2; - * @param value The msgId to set. - * @return This builder for chaining. - */ - public Builder setMsgId(long value) { - - msgId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 msgId = 2; - * @return This builder for chaining. - */ - public Builder clearMsgId() { - bitField0_ = (bitField0_ & ~0x00000002); - msgId_ = 0L; - onChanged(); - return this; - } - - private long roomId_ ; - /** - * uint64 roomId = 3; - * @return The roomId. - */ - @java.lang.Override - public long getRoomId() { - return roomId_; - } - /** - * uint64 roomId = 3; - * @param value The roomId to set. - * @return This builder for chaining. - */ - public Builder setRoomId(long value) { - - roomId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 roomId = 3; - * @return This builder for chaining. - */ - public Builder clearRoomId() { - bitField0_ = (bitField0_ & ~0x00000004); - roomId_ = 0L; - onChanged(); - return this; - } - - private long createTime_ ; - /** - * uint64 createTime = 4; - * @return The createTime. - */ - @java.lang.Override - public long getCreateTime() { - return createTime_; - } - /** - * uint64 createTime = 4; - * @param value The createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTime(long value) { - - createTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 createTime = 4; - * @return This builder for chaining. - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - createTime_ = 0L; - onChanged(); - return this; - } - - private int monitor_ ; - /** - * uint32 monitor = 5; - * @return The monitor. - */ - @java.lang.Override - public int getMonitor() { - return monitor_; - } - /** - * uint32 monitor = 5; - * @param value The monitor to set. - * @return This builder for chaining. - */ - public Builder setMonitor(int value) { - - monitor_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint32 monitor = 5; - * @return This builder for chaining. - */ - public Builder clearMonitor() { - bitField0_ = (bitField0_ & ~0x00000010); - monitor_ = 0; - onChanged(); - return this; - } - - private boolean isShowMsg_ ; - /** - * bool isShowMsg = 6; - * @return The isShowMsg. - */ - @java.lang.Override - public boolean getIsShowMsg() { - return isShowMsg_; - } - /** - * bool isShowMsg = 6; - * @param value The isShowMsg to set. - * @return This builder for chaining. - */ - public Builder setIsShowMsg(boolean value) { - - isShowMsg_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * bool isShowMsg = 6; - * @return This builder for chaining. - */ - public Builder clearIsShowMsg() { - bitField0_ = (bitField0_ & ~0x00000020); - isShowMsg_ = false; - onChanged(); - return this; - } - - private java.lang.Object describe_ = ""; - /** - * string describe = 7; - * @return The describe. - */ - public java.lang.String getDescribe() { - java.lang.Object ref = describe_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - describe_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string describe = 7; - * @return The bytes for describe. - */ - public com.google.protobuf.ByteString - getDescribeBytes() { - java.lang.Object ref = describe_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - describe_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string describe = 7; - * @param value The describe to set. - * @return This builder for chaining. - */ - public Builder setDescribe( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - describe_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * string describe = 7; - * @return This builder for chaining. - */ - public Builder clearDescribe() { - describe_ = getDefaultInstance().getDescribe(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * string describe = 7; - * @param value The bytes for describe to set. - * @return This builder for chaining. - */ - public Builder setDescribeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - describe_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private long foldType_ ; - /** - *
-       * DisplayText displayText = 8;
-       * 
- * - * uint64 foldType = 9; - * @return The foldType. - */ - @java.lang.Override - public long getFoldType() { - return foldType_; - } - /** - *
-       * DisplayText displayText = 8;
-       * 
- * - * uint64 foldType = 9; - * @param value The foldType to set. - * @return This builder for chaining. - */ - public Builder setFoldType(long value) { - - foldType_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * DisplayText displayText = 8;
-       * 
- * - * uint64 foldType = 9; - * @return This builder for chaining. - */ - public Builder clearFoldType() { - bitField0_ = (bitField0_ & ~0x00000080); - foldType_ = 0L; - onChanged(); - return this; - } - - private long anchorFoldType_ ; - /** - * uint64 anchorFoldType = 10; - * @return The anchorFoldType. - */ - @java.lang.Override - public long getAnchorFoldType() { - return anchorFoldType_; - } - /** - * uint64 anchorFoldType = 10; - * @param value The anchorFoldType to set. - * @return This builder for chaining. - */ - public Builder setAnchorFoldType(long value) { - - anchorFoldType_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint64 anchorFoldType = 10; - * @return This builder for chaining. - */ - public Builder clearAnchorFoldType() { - bitField0_ = (bitField0_ & ~0x00000100); - anchorFoldType_ = 0L; - onChanged(); - return this; - } - - private long priorityScore_ ; - /** - * uint64 priorityScore = 11; - * @return The priorityScore. - */ - @java.lang.Override - public long getPriorityScore() { - return priorityScore_; - } - /** - * uint64 priorityScore = 11; - * @param value The priorityScore to set. - * @return This builder for chaining. - */ - public Builder setPriorityScore(long value) { - - priorityScore_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * uint64 priorityScore = 11; - * @return This builder for chaining. - */ - public Builder clearPriorityScore() { - bitField0_ = (bitField0_ & ~0x00000200); - priorityScore_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object logId_ = ""; - /** - * string logId = 12; - * @return The logId. - */ - public java.lang.String getLogId() { - java.lang.Object ref = logId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - logId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string logId = 12; - * @return The bytes for logId. - */ - public com.google.protobuf.ByteString - getLogIdBytes() { - java.lang.Object ref = logId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string logId = 12; - * @param value The logId to set. - * @return This builder for chaining. - */ - public Builder setLogId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - logId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * string logId = 12; - * @return This builder for chaining. - */ - public Builder clearLogId() { - logId_ = getDefaultInstance().getLogId(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * string logId = 12; - * @param value The bytes for logId to set. - * @return This builder for chaining. - */ - public Builder setLogIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - logId_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - private java.lang.Object msgProcessFilterK_ = ""; - /** - * string msgProcessFilterK = 13; - * @return The msgProcessFilterK. - */ - public java.lang.String getMsgProcessFilterK() { - java.lang.Object ref = msgProcessFilterK_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgProcessFilterK_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msgProcessFilterK = 13; - * @return The bytes for msgProcessFilterK. - */ - public com.google.protobuf.ByteString - getMsgProcessFilterKBytes() { - java.lang.Object ref = msgProcessFilterK_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgProcessFilterK_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msgProcessFilterK = 13; - * @param value The msgProcessFilterK to set. - * @return This builder for chaining. - */ - public Builder setMsgProcessFilterK( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - msgProcessFilterK_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * string msgProcessFilterK = 13; - * @return This builder for chaining. - */ - public Builder clearMsgProcessFilterK() { - msgProcessFilterK_ = getDefaultInstance().getMsgProcessFilterK(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - * string msgProcessFilterK = 13; - * @param value The bytes for msgProcessFilterK to set. - * @return This builder for chaining. - */ - public Builder setMsgProcessFilterKBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - msgProcessFilterK_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - private java.lang.Object msgProcessFilterV_ = ""; - /** - * string msgProcessFilterV = 14; - * @return The msgProcessFilterV. - */ - public java.lang.String getMsgProcessFilterV() { - java.lang.Object ref = msgProcessFilterV_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msgProcessFilterV_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msgProcessFilterV = 14; - * @return The bytes for msgProcessFilterV. - */ - public com.google.protobuf.ByteString - getMsgProcessFilterVBytes() { - java.lang.Object ref = msgProcessFilterV_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msgProcessFilterV_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msgProcessFilterV = 14; - * @param value The msgProcessFilterV to set. - * @return This builder for chaining. - */ - public Builder setMsgProcessFilterV( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - msgProcessFilterV_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * string msgProcessFilterV = 14; - * @return This builder for chaining. - */ - public Builder clearMsgProcessFilterV() { - msgProcessFilterV_ = getDefaultInstance().getMsgProcessFilterV(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * string msgProcessFilterV = 14; - * @param value The bytes for msgProcessFilterV to set. - * @return This builder for chaining. - */ - public Builder setMsgProcessFilterVBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - msgProcessFilterV_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> userBuilder_; - /** - * .User user = 15; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * .User user = 15; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .User user = 15; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .User user = 15; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .User user = 15; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .User user = 15; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00002000); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User user = 15; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getUserBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .User user = 15; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - } - /** - * .User user = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private long anchorFoldTypeV2_ ; - /** - *
-       * Room room = 16;
-       * 
- * - * uint64 anchorFoldTypeV2 = 17; - * @return The anchorFoldTypeV2. - */ - @java.lang.Override - public long getAnchorFoldTypeV2() { - return anchorFoldTypeV2_; - } - /** - *
-       * Room room = 16;
-       * 
- * - * uint64 anchorFoldTypeV2 = 17; - * @param value The anchorFoldTypeV2 to set. - * @return This builder for chaining. - */ - public Builder setAnchorFoldTypeV2(long value) { - - anchorFoldTypeV2_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - *
-       * Room room = 16;
-       * 
- * - * uint64 anchorFoldTypeV2 = 17; - * @return This builder for chaining. - */ - public Builder clearAnchorFoldTypeV2() { - bitField0_ = (bitField0_ & ~0x00004000); - anchorFoldTypeV2_ = 0L; - onChanged(); - return this; - } - - private long processAtSeiTimeMs_ ; - /** - * uint64 processAtSeiTimeMs = 18; - * @return The processAtSeiTimeMs. - */ - @java.lang.Override - public long getProcessAtSeiTimeMs() { - return processAtSeiTimeMs_; - } - /** - * uint64 processAtSeiTimeMs = 18; - * @param value The processAtSeiTimeMs to set. - * @return This builder for chaining. - */ - public Builder setProcessAtSeiTimeMs(long value) { - - processAtSeiTimeMs_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * uint64 processAtSeiTimeMs = 18; - * @return This builder for chaining. - */ - public Builder clearProcessAtSeiTimeMs() { - bitField0_ = (bitField0_ & ~0x00008000); - processAtSeiTimeMs_ = 0L; - onChanged(); - return this; - } - - private long randomDispatchMs_ ; - /** - * uint64 randomDispatchMs = 19; - * @return The randomDispatchMs. - */ - @java.lang.Override - public long getRandomDispatchMs() { - return randomDispatchMs_; - } - /** - * uint64 randomDispatchMs = 19; - * @param value The randomDispatchMs to set. - * @return This builder for chaining. - */ - public Builder setRandomDispatchMs(long value) { - - randomDispatchMs_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * uint64 randomDispatchMs = 19; - * @return This builder for chaining. - */ - public Builder clearRandomDispatchMs() { - bitField0_ = (bitField0_ & ~0x00010000); - randomDispatchMs_ = 0L; - onChanged(); - return this; - } - - private boolean isDispatch_ ; - /** - * bool isDispatch = 20; - * @return The isDispatch. - */ - @java.lang.Override - public boolean getIsDispatch() { - return isDispatch_; - } - /** - * bool isDispatch = 20; - * @param value The isDispatch to set. - * @return This builder for chaining. - */ - public Builder setIsDispatch(boolean value) { - - isDispatch_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * bool isDispatch = 20; - * @return This builder for chaining. - */ - public Builder clearIsDispatch() { - bitField0_ = (bitField0_ & ~0x00020000); - isDispatch_ = false; - onChanged(); - return this; - } - - private int channelId_ ; - /** - * uint32 channelId = 21; - * @return The channelId. - */ - @java.lang.Override - public int getChannelId() { - return channelId_; - } - /** - * uint32 channelId = 21; - * @param value The channelId to set. - * @return This builder for chaining. - */ - public Builder setChannelId(int value) { - - channelId_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * uint32 channelId = 21; - * @return This builder for chaining. - */ - public Builder clearChannelId() { - bitField0_ = (bitField0_ & ~0x00040000); - channelId_ = 0; - onChanged(); - return this; - } - - private long diffSei2AbsSecond_ ; - /** - * uint64 diffSei2absSecond = 22; - * @return The diffSei2absSecond. - */ - @java.lang.Override - public long getDiffSei2AbsSecond() { - return diffSei2AbsSecond_; - } - /** - * uint64 diffSei2absSecond = 22; - * @param value The diffSei2absSecond to set. - * @return This builder for chaining. - */ - public Builder setDiffSei2AbsSecond(long value) { - - diffSei2AbsSecond_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * uint64 diffSei2absSecond = 22; - * @return This builder for chaining. - */ - public Builder clearDiffSei2AbsSecond() { - bitField0_ = (bitField0_ & ~0x00080000); - diffSei2AbsSecond_ = 0L; - onChanged(); - return this; - } - - private long anchorFoldDuration_ ; - /** - * uint64 anchorFoldDuration = 23; - * @return The anchorFoldDuration. - */ - @java.lang.Override - public long getAnchorFoldDuration() { - return anchorFoldDuration_; - } - /** - * uint64 anchorFoldDuration = 23; - * @param value The anchorFoldDuration to set. - * @return This builder for chaining. - */ - public Builder setAnchorFoldDuration(long value) { - - anchorFoldDuration_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * uint64 anchorFoldDuration = 23; - * @return This builder for chaining. - */ - public Builder clearAnchorFoldDuration() { - bitField0_ = (bitField0_ & ~0x00100000); - anchorFoldDuration_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Common) - } - - // @@protoc_insertion_point(class_scope:Common) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Common parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.CommonOuterClass.Common getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Common_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Common_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014Common.proto\032\nUser.proto\"\312\003\n\006Common\022\016\n" + - "\006method\030\001 \001(\t\022\r\n\005msgId\030\002 \001(\004\022\016\n\006roomId\030\003" + - " \001(\004\022\022\n\ncreateTime\030\004 \001(\004\022\017\n\007monitor\030\005 \001(" + - "\r\022\021\n\tisShowMsg\030\006 \001(\010\022\020\n\010describe\030\007 \001(\t\022\020" + - "\n\010foldType\030\t \001(\004\022\026\n\016anchorFoldType\030\n \001(\004" + - "\022\025\n\rpriorityScore\030\013 \001(\004\022\r\n\005logId\030\014 \001(\t\022\031" + - "\n\021msgProcessFilterK\030\r \001(\t\022\031\n\021msgProcessF" + - "ilterV\030\016 \001(\t\022\023\n\004user\030\017 \001(\0132\005.User\022\030\n\020anc" + - "horFoldTypeV2\030\021 \001(\004\022\032\n\022processAtSeiTimeM" + - "s\030\022 \001(\004\022\030\n\020randomDispatchMs\030\023 \001(\004\022\022\n\nisD" + - "ispatch\030\024 \001(\010\022\021\n\tchannelId\030\025 \001(\r\022\031\n\021diff" + - "Sei2absSecond\030\026 \001(\004\022\032\n\022anchorFoldDuratio" + - "n\030\027 \001(\004B8\n6tech.ordinaryroad.live.chat.c" + - "lient.douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(), - }); - internal_static_Common_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Common_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Common_descriptor, - new java.lang.String[] { "Method", "MsgId", "RoomId", "CreateTime", "Monitor", "IsShowMsg", "Describe", "FoldType", "AnchorFoldType", "PriorityScore", "LogId", "MsgProcessFilterK", "MsgProcessFilterV", "User", "AnchorFoldTypeV2", "ProcessAtSeiTimeMs", "RandomDispatchMs", "IsDispatch", "ChannelId", "DiffSei2AbsSecond", "AnchorFoldDuration", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/DoubleLikeDetailOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/DoubleLikeDetailOuterClass.java deleted file mode 100644 index 20a7381c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/DoubleLikeDetailOuterClass.java +++ /dev/null @@ -1,767 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DoubleLikeDetail.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class DoubleLikeDetailOuterClass { - private DoubleLikeDetailOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DoubleLikeDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:DoubleLikeDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * bool doubleFlag = 1; - * @return The doubleFlag. - */ - boolean getDoubleFlag(); - - /** - * uint32 seqId = 2; - * @return The seqId. - */ - int getSeqId(); - - /** - * uint32 renewalsNum = 3; - * @return The renewalsNum. - */ - int getRenewalsNum(); - - /** - * uint32 triggersNum = 4; - * @return The triggersNum. - */ - int getTriggersNum(); - } - /** - * Protobuf type {@code DoubleLikeDetail} - */ - public static final class DoubleLikeDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:DoubleLikeDetail) - DoubleLikeDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use DoubleLikeDetail.newBuilder() to construct. - private DoubleLikeDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DoubleLikeDetail() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DoubleLikeDetail(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.internal_static_DoubleLikeDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.internal_static_DoubleLikeDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder.class); - } - - public static final int DOUBLEFLAG_FIELD_NUMBER = 1; - private boolean doubleFlag_ = false; - /** - * bool doubleFlag = 1; - * @return The doubleFlag. - */ - @java.lang.Override - public boolean getDoubleFlag() { - return doubleFlag_; - } - - public static final int SEQID_FIELD_NUMBER = 2; - private int seqId_ = 0; - /** - * uint32 seqId = 2; - * @return The seqId. - */ - @java.lang.Override - public int getSeqId() { - return seqId_; - } - - public static final int RENEWALSNUM_FIELD_NUMBER = 3; - private int renewalsNum_ = 0; - /** - * uint32 renewalsNum = 3; - * @return The renewalsNum. - */ - @java.lang.Override - public int getRenewalsNum() { - return renewalsNum_; - } - - public static final int TRIGGERSNUM_FIELD_NUMBER = 4; - private int triggersNum_ = 0; - /** - * uint32 triggersNum = 4; - * @return The triggersNum. - */ - @java.lang.Override - public int getTriggersNum() { - return triggersNum_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (doubleFlag_ != false) { - output.writeBool(1, doubleFlag_); - } - if (seqId_ != 0) { - output.writeUInt32(2, seqId_); - } - if (renewalsNum_ != 0) { - output.writeUInt32(3, renewalsNum_); - } - if (triggersNum_ != 0) { - output.writeUInt32(4, triggersNum_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (doubleFlag_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, doubleFlag_); - } - if (seqId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, seqId_); - } - if (renewalsNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, renewalsNum_); - } - if (triggersNum_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, triggersNum_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail) obj; - - if (getDoubleFlag() - != other.getDoubleFlag()) return false; - if (getSeqId() - != other.getSeqId()) return false; - if (getRenewalsNum() - != other.getRenewalsNum()) return false; - if (getTriggersNum() - != other.getTriggersNum()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOUBLEFLAG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDoubleFlag()); - hash = (37 * hash) + SEQID_FIELD_NUMBER; - hash = (53 * hash) + getSeqId(); - hash = (37 * hash) + RENEWALSNUM_FIELD_NUMBER; - hash = (53 * hash) + getRenewalsNum(); - hash = (37 * hash) + TRIGGERSNUM_FIELD_NUMBER; - hash = (53 * hash) + getTriggersNum(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code DoubleLikeDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:DoubleLikeDetail) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.internal_static_DoubleLikeDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.internal_static_DoubleLikeDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - doubleFlag_ = false; - seqId_ = 0; - renewalsNum_ = 0; - triggersNum_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.internal_static_DoubleLikeDetail_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.doubleFlag_ = doubleFlag_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.seqId_ = seqId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.renewalsNum_ = renewalsNum_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.triggersNum_ = triggersNum_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail.getDefaultInstance()) return this; - if (other.getDoubleFlag() != false) { - setDoubleFlag(other.getDoubleFlag()); - } - if (other.getSeqId() != 0) { - setSeqId(other.getSeqId()); - } - if (other.getRenewalsNum() != 0) { - setRenewalsNum(other.getRenewalsNum()); - } - if (other.getTriggersNum() != 0) { - setTriggersNum(other.getTriggersNum()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - doubleFlag_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - seqId_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - renewalsNum_ = input.readUInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - triggersNum_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean doubleFlag_ ; - /** - * bool doubleFlag = 1; - * @return The doubleFlag. - */ - @java.lang.Override - public boolean getDoubleFlag() { - return doubleFlag_; - } - /** - * bool doubleFlag = 1; - * @param value The doubleFlag to set. - * @return This builder for chaining. - */ - public Builder setDoubleFlag(boolean value) { - - doubleFlag_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool doubleFlag = 1; - * @return This builder for chaining. - */ - public Builder clearDoubleFlag() { - bitField0_ = (bitField0_ & ~0x00000001); - doubleFlag_ = false; - onChanged(); - return this; - } - - private int seqId_ ; - /** - * uint32 seqId = 2; - * @return The seqId. - */ - @java.lang.Override - public int getSeqId() { - return seqId_; - } - /** - * uint32 seqId = 2; - * @param value The seqId to set. - * @return This builder for chaining. - */ - public Builder setSeqId(int value) { - - seqId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 seqId = 2; - * @return This builder for chaining. - */ - public Builder clearSeqId() { - bitField0_ = (bitField0_ & ~0x00000002); - seqId_ = 0; - onChanged(); - return this; - } - - private int renewalsNum_ ; - /** - * uint32 renewalsNum = 3; - * @return The renewalsNum. - */ - @java.lang.Override - public int getRenewalsNum() { - return renewalsNum_; - } - /** - * uint32 renewalsNum = 3; - * @param value The renewalsNum to set. - * @return This builder for chaining. - */ - public Builder setRenewalsNum(int value) { - - renewalsNum_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 renewalsNum = 3; - * @return This builder for chaining. - */ - public Builder clearRenewalsNum() { - bitField0_ = (bitField0_ & ~0x00000004); - renewalsNum_ = 0; - onChanged(); - return this; - } - - private int triggersNum_ ; - /** - * uint32 triggersNum = 4; - * @return The triggersNum. - */ - @java.lang.Override - public int getTriggersNum() { - return triggersNum_; - } - /** - * uint32 triggersNum = 4; - * @param value The triggersNum to set. - * @return This builder for chaining. - */ - public Builder setTriggersNum(int value) { - - triggersNum_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 triggersNum = 4; - * @return This builder for chaining. - */ - public Builder clearTriggersNum() { - bitField0_ = (bitField0_ & ~0x00000008); - triggersNum_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:DoubleLikeDetail) - } - - // @@protoc_insertion_point(class_scope:DoubleLikeDetail) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DoubleLikeDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.DoubleLikeDetailOuterClass.DoubleLikeDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_DoubleLikeDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_DoubleLikeDetail_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026DoubleLikeDetail.proto\"_\n\020DoubleLikeDe" + - "tail\022\022\n\ndoubleFlag\030\001 \001(\010\022\r\n\005seqId\030\002 \001(\r\022" + - "\023\n\013renewalsNum\030\003 \001(\r\022\023\n\013triggersNum\030\004 \001(" + - "\rB8\n6tech.ordinaryroad.live.chat.client." + - "douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_DoubleLikeDetail_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_DoubleLikeDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_DoubleLikeDetail_descriptor, - new java.lang.String[] { "DoubleFlag", "SeqId", "RenewalsNum", "TriggersNum", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/GiftIMPriorityOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/GiftIMPriorityOuterClass.java deleted file mode 100644 index 79765e30..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/GiftIMPriorityOuterClass.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GiftIMPriority.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class GiftIMPriorityOuterClass { - private GiftIMPriorityOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GiftIMPriorityOrBuilder extends - // @@protoc_insertion_point(interface_extends:GiftIMPriority) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated uint64 queue_sizes_list = 1; - * @return A list containing the queueSizesList. - */ - java.util.List getQueueSizesListList(); - /** - * repeated uint64 queue_sizes_list = 1; - * @return The count of queueSizesList. - */ - int getQueueSizesListCount(); - /** - * repeated uint64 queue_sizes_list = 1; - * @param index The index of the element to return. - * @return The queueSizesList at the given index. - */ - long getQueueSizesList(int index); - - /** - * uint64 self_queue_priority = 2; - * @return The selfQueuePriority. - */ - long getSelfQueuePriority(); - - /** - * uint64 priority = 3; - * @return The priority. - */ - long getPriority(); - } - /** - * Protobuf type {@code GiftIMPriority} - */ - public static final class GiftIMPriority extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GiftIMPriority) - GiftIMPriorityOrBuilder { - private static final long serialVersionUID = 0L; - // Use GiftIMPriority.newBuilder() to construct. - private GiftIMPriority(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GiftIMPriority() { - queueSizesList_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GiftIMPriority(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.internal_static_GiftIMPriority_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.internal_static_GiftIMPriority_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder.class); - } - - public static final int QUEUE_SIZES_LIST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList queueSizesList_; - /** - * repeated uint64 queue_sizes_list = 1; - * @return A list containing the queueSizesList. - */ - @java.lang.Override - public java.util.List - getQueueSizesListList() { - return queueSizesList_; - } - /** - * repeated uint64 queue_sizes_list = 1; - * @return The count of queueSizesList. - */ - public int getQueueSizesListCount() { - return queueSizesList_.size(); - } - /** - * repeated uint64 queue_sizes_list = 1; - * @param index The index of the element to return. - * @return The queueSizesList at the given index. - */ - public long getQueueSizesList(int index) { - return queueSizesList_.getLong(index); - } - private int queueSizesListMemoizedSerializedSize = -1; - - public static final int SELF_QUEUE_PRIORITY_FIELD_NUMBER = 2; - private long selfQueuePriority_ = 0L; - /** - * uint64 self_queue_priority = 2; - * @return The selfQueuePriority. - */ - @java.lang.Override - public long getSelfQueuePriority() { - return selfQueuePriority_; - } - - public static final int PRIORITY_FIELD_NUMBER = 3; - private long priority_ = 0L; - /** - * uint64 priority = 3; - * @return The priority. - */ - @java.lang.Override - public long getPriority() { - return priority_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getQueueSizesListList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(queueSizesListMemoizedSerializedSize); - } - for (int i = 0; i < queueSizesList_.size(); i++) { - output.writeUInt64NoTag(queueSizesList_.getLong(i)); - } - if (selfQueuePriority_ != 0L) { - output.writeUInt64(2, selfQueuePriority_); - } - if (priority_ != 0L) { - output.writeUInt64(3, priority_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < queueSizesList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(queueSizesList_.getLong(i)); - } - size += dataSize; - if (!getQueueSizesListList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - queueSizesListMemoizedSerializedSize = dataSize; - } - if (selfQueuePriority_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, selfQueuePriority_); - } - if (priority_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, priority_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority) obj; - - if (!getQueueSizesListList() - .equals(other.getQueueSizesListList())) return false; - if (getSelfQueuePriority() - != other.getSelfQueuePriority()) return false; - if (getPriority() - != other.getPriority()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getQueueSizesListCount() > 0) { - hash = (37 * hash) + QUEUE_SIZES_LIST_FIELD_NUMBER; - hash = (53 * hash) + getQueueSizesListList().hashCode(); - } - hash = (37 * hash) + SELF_QUEUE_PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSelfQueuePriority()); - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPriority()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GiftIMPriority} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GiftIMPriority) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriorityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.internal_static_GiftIMPriority_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.internal_static_GiftIMPriority_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queueSizesList_ = emptyLongList(); - selfQueuePriority_ = 0L; - priority_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.internal_static_GiftIMPriority_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority result) { - if (((bitField0_ & 0x00000001) != 0)) { - queueSizesList_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queueSizesList_ = queueSizesList_; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.selfQueuePriority_ = selfQueuePriority_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.priority_ = priority_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority.getDefaultInstance()) return this; - if (!other.queueSizesList_.isEmpty()) { - if (queueSizesList_.isEmpty()) { - queueSizesList_ = other.queueSizesList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueueSizesListIsMutable(); - queueSizesList_.addAll(other.queueSizesList_); - } - onChanged(); - } - if (other.getSelfQueuePriority() != 0L) { - setSelfQueuePriority(other.getSelfQueuePriority()); - } - if (other.getPriority() != 0L) { - setPriority(other.getPriority()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - long v = input.readUInt64(); - ensureQueueSizesListIsMutable(); - queueSizesList_.addLong(v); - break; - } // case 8 - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureQueueSizesListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - queueSizesList_.addLong(input.readUInt64()); - } - input.popLimit(limit); - break; - } // case 10 - case 16: { - selfQueuePriority_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - priority_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.Internal.LongList queueSizesList_ = emptyLongList(); - private void ensureQueueSizesListIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queueSizesList_ = mutableCopy(queueSizesList_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated uint64 queue_sizes_list = 1; - * @return A list containing the queueSizesList. - */ - public java.util.List - getQueueSizesListList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(queueSizesList_) : queueSizesList_; - } - /** - * repeated uint64 queue_sizes_list = 1; - * @return The count of queueSizesList. - */ - public int getQueueSizesListCount() { - return queueSizesList_.size(); - } - /** - * repeated uint64 queue_sizes_list = 1; - * @param index The index of the element to return. - * @return The queueSizesList at the given index. - */ - public long getQueueSizesList(int index) { - return queueSizesList_.getLong(index); - } - /** - * repeated uint64 queue_sizes_list = 1; - * @param index The index to set the value at. - * @param value The queueSizesList to set. - * @return This builder for chaining. - */ - public Builder setQueueSizesList( - int index, long value) { - - ensureQueueSizesListIsMutable(); - queueSizesList_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 queue_sizes_list = 1; - * @param value The queueSizesList to add. - * @return This builder for chaining. - */ - public Builder addQueueSizesList(long value) { - - ensureQueueSizesListIsMutable(); - queueSizesList_.addLong(value); - onChanged(); - return this; - } - /** - * repeated uint64 queue_sizes_list = 1; - * @param values The queueSizesList to add. - * @return This builder for chaining. - */ - public Builder addAllQueueSizesList( - java.lang.Iterable values) { - ensureQueueSizesListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queueSizesList_); - onChanged(); - return this; - } - /** - * repeated uint64 queue_sizes_list = 1; - * @return This builder for chaining. - */ - public Builder clearQueueSizesList() { - queueSizesList_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - private long selfQueuePriority_ ; - /** - * uint64 self_queue_priority = 2; - * @return The selfQueuePriority. - */ - @java.lang.Override - public long getSelfQueuePriority() { - return selfQueuePriority_; - } - /** - * uint64 self_queue_priority = 2; - * @param value The selfQueuePriority to set. - * @return This builder for chaining. - */ - public Builder setSelfQueuePriority(long value) { - - selfQueuePriority_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 self_queue_priority = 2; - * @return This builder for chaining. - */ - public Builder clearSelfQueuePriority() { - bitField0_ = (bitField0_ & ~0x00000002); - selfQueuePriority_ = 0L; - onChanged(); - return this; - } - - private long priority_ ; - /** - * uint64 priority = 3; - * @return The priority. - */ - @java.lang.Override - public long getPriority() { - return priority_; - } - /** - * uint64 priority = 3; - * @param value The priority to set. - * @return This builder for chaining. - */ - public Builder setPriority(long value) { - - priority_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 priority = 3; - * @return This builder for chaining. - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000004); - priority_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GiftIMPriority) - } - - // @@protoc_insertion_point(class_scope:GiftIMPriority) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GiftIMPriority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftIMPriorityOuterClass.GiftIMPriority getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GiftIMPriority_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GiftIMPriority_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024GiftIMPriority.proto\"Y\n\016GiftIMPriority" + - "\022\030\n\020queue_sizes_list\030\001 \003(\004\022\033\n\023self_queue" + - "_priority\030\002 \001(\004\022\020\n\010priority\030\003 \001(\004B8\n6tec" + - "h.ordinaryroad.live.chat.client.douyin.p" + - "rotobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_GiftIMPriority_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GiftIMPriority_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GiftIMPriority_descriptor, - new java.lang.String[] { "QueueSizesList", "SelfQueuePriority", "Priority", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/GiftStructOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/GiftStructOuterClass.java deleted file mode 100644 index e4e15b38..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/GiftStructOuterClass.java +++ /dev/null @@ -1,6440 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GiftStruct.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class GiftStructOuterClass { - private GiftStructOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GiftStructOrBuilder extends - // @@protoc_insertion_point(interface_extends:GiftStruct) - com.google.protobuf.MessageOrBuilder { - - /** - * .Image image = 1; - * @return Whether the image field is set. - */ - boolean hasImage(); - /** - * .Image image = 1; - * @return The image. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImage(); - /** - * .Image image = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImageOrBuilder(); - - /** - * string describe = 2; - * @return The describe. - */ - java.lang.String getDescribe(); - /** - * string describe = 2; - * @return The bytes for describe. - */ - com.google.protobuf.ByteString - getDescribeBytes(); - - /** - * bool notify = 3; - * @return The notify. - */ - boolean getNotify(); - - /** - * uint64 duration = 4; - * @return The duration. - */ - long getDuration(); - - /** - * uint64 id = 5; - * @return The id. - */ - long getId(); - - /** - *
-     * GiftStructFansClubInfo fansclubInfo = 6;
-     * 
- * - * bool for_linkmic = 7; - * @return The forLinkmic. - */ - boolean getForLinkmic(); - - /** - * bool doodle = 8; - * @return The doodle. - */ - boolean getDoodle(); - - /** - * bool for_fansclub = 9; - * @return The forFansclub. - */ - boolean getForFansclub(); - - /** - * bool combo = 10; - * @return The combo. - */ - boolean getCombo(); - - /** - * uint32 type = 11; - * @return The type. - */ - int getType(); - - /** - * uint32 diamond_count = 12; - * @return The diamondCount. - */ - int getDiamondCount(); - - /** - * bool is_displayed_on_panel = 13; - * @return The isDisplayedOnPanel. - */ - boolean getIsDisplayedOnPanel(); - - /** - * uint64 primary_effect_id = 14; - * @return The primaryEffectId. - */ - long getPrimaryEffectId(); - - /** - * .Image gift_label_icon = 15; - * @return Whether the giftLabelIcon field is set. - */ - boolean hasGiftLabelIcon(); - /** - * .Image gift_label_icon = 15; - * @return The giftLabelIcon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getGiftLabelIcon(); - /** - * .Image gift_label_icon = 15; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getGiftLabelIconOrBuilder(); - - /** - * string name = 16; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 16; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string region = 17; - * @return The region. - */ - java.lang.String getRegion(); - /** - * string region = 17; - * @return The bytes for region. - */ - com.google.protobuf.ByteString - getRegionBytes(); - - /** - * string manual = 18; - * @return The manual. - */ - java.lang.String getManual(); - /** - * string manual = 18; - * @return The bytes for manual. - */ - com.google.protobuf.ByteString - getManualBytes(); - - /** - * bool for_custom = 19; - * @return The forCustom. - */ - boolean getForCustom(); - - /** - * map<string, int64> specialEffectsMap = 20; - */ - int getSpecialEffectsMapCount(); - /** - * map<string, int64> specialEffectsMap = 20; - */ - boolean containsSpecialEffectsMap( - java.lang.String key); - /** - * Use {@link #getSpecialEffectsMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSpecialEffectsMap(); - /** - * map<string, int64> specialEffectsMap = 20; - */ - java.util.Map - getSpecialEffectsMapMap(); - /** - * map<string, int64> specialEffectsMap = 20; - */ - long getSpecialEffectsMapOrDefault( - java.lang.String key, - long defaultValue); - /** - * map<string, int64> specialEffectsMap = 20; - */ - long getSpecialEffectsMapOrThrow( - java.lang.String key); - - /** - * .Image icon = 21; - * @return Whether the icon field is set. - */ - boolean hasIcon(); - /** - * .Image icon = 21; - * @return The icon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon(); - /** - * .Image icon = 21; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder(); - - /** - * uint32 action_type = 22; - * @return The actionType. - */ - int getActionType(); - - /** - * int32 watermelonSeeds = 23; - * @return The watermelonSeeds. - */ - int getWatermelonSeeds(); - - /** - * string goldEffect = 24; - * @return The goldEffect. - */ - java.lang.String getGoldEffect(); - /** - * string goldEffect = 24; - * @return The bytes for goldEffect. - */ - com.google.protobuf.ByteString - getGoldEffectBytes(); - - /** - *
-     * repeated LuckyMoneyGiftMeta subs = 25;
-     * 
- * - * int64 goldenBeans = 26; - * @return The goldenBeans. - */ - long getGoldenBeans(); - - /** - * int64 honorLevel = 27; - * @return The honorLevel. - */ - long getHonorLevel(); - - /** - * int32 itemType = 28; - * @return The itemType. - */ - int getItemType(); - - /** - * string schemeUrl = 29; - * @return The schemeUrl. - */ - java.lang.String getSchemeUrl(); - /** - * string schemeUrl = 29; - * @return The bytes for schemeUrl. - */ - com.google.protobuf.ByteString - getSchemeUrlBytes(); - - /** - *
-     * GiftPanelOperation giftOperation = 30;
-     * 
- * - * string eventName = 31; - * @return The eventName. - */ - java.lang.String getEventName(); - /** - *
-     * GiftPanelOperation giftOperation = 30;
-     * 
- * - * string eventName = 31; - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString - getEventNameBytes(); - - /** - * int64 nobleLevel = 32; - * @return The nobleLevel. - */ - long getNobleLevel(); - - /** - * string guideUrl = 33; - * @return The guideUrl. - */ - java.lang.String getGuideUrl(); - /** - * string guideUrl = 33; - * @return The bytes for guideUrl. - */ - com.google.protobuf.ByteString - getGuideUrlBytes(); - - /** - * bool punishMedicine = 34; - * @return The punishMedicine. - */ - boolean getPunishMedicine(); - - /** - * bool forPortal = 35; - * @return The forPortal. - */ - boolean getForPortal(); - - /** - * string businessText = 36; - * @return The businessText. - */ - java.lang.String getBusinessText(); - /** - * string businessText = 36; - * @return The bytes for businessText. - */ - com.google.protobuf.ByteString - getBusinessTextBytes(); - - /** - * bool cnyGift = 37; - * @return The cnyGift. - */ - boolean getCnyGift(); - - /** - * int64 appId = 38; - * @return The appId. - */ - long getAppId(); - - /** - * int64 vipLevel = 39; - * @return The vipLevel. - */ - long getVipLevel(); - - /** - * bool isGray = 40; - * @return The isGray. - */ - boolean getIsGray(); - - /** - * string graySchemeUrl = 41; - * @return The graySchemeUrl. - */ - java.lang.String getGraySchemeUrl(); - /** - * string graySchemeUrl = 41; - * @return The bytes for graySchemeUrl. - */ - com.google.protobuf.ByteString - getGraySchemeUrlBytes(); - - /** - * int64 giftScene = 42; - * @return The giftScene. - */ - long getGiftScene(); - - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @return A list containing the triggerWords. - */ - java.util.List - getTriggerWordsList(); - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @return The count of triggerWords. - */ - int getTriggerWordsCount(); - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @param index The index of the element to return. - * @return The triggerWords at the given index. - */ - java.lang.String getTriggerWords(int index); - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @param index The index of the value to return. - * @return The bytes of the triggerWords at the given index. - */ - com.google.protobuf.ByteString - getTriggerWordsBytes(int index); - - /** - *
-     * repeated GiftBuffInfo giftBuffInfos = 45;
-     * 
- * - * bool forFirstRecharge = 46; - * @return The forFirstRecharge. - */ - boolean getForFirstRecharge(); - - /** - * .Image dynamicImgForSelected = 47; - * @return Whether the dynamicImgForSelected field is set. - */ - boolean hasDynamicImgForSelected(); - /** - * .Image dynamicImgForSelected = 47; - * @return The dynamicImgForSelected. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDynamicImgForSelected(); - /** - * .Image dynamicImgForSelected = 47; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getDynamicImgForSelectedOrBuilder(); - - /** - * int32 afterSendAction = 48; - * @return The afterSendAction. - */ - int getAfterSendAction(); - - /** - * int64 giftOfflineTime = 49; - * @return The giftOfflineTime. - */ - long getGiftOfflineTime(); - - /** - * string topBarText = 50; - * @return The topBarText. - */ - java.lang.String getTopBarText(); - /** - * string topBarText = 50; - * @return The bytes for topBarText. - */ - com.google.protobuf.ByteString - getTopBarTextBytes(); - - /** - * .Image topRightAvatar = 51; - * @return Whether the topRightAvatar field is set. - */ - boolean hasTopRightAvatar(); - /** - * .Image topRightAvatar = 51; - * @return The topRightAvatar. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getTopRightAvatar(); - /** - * .Image topRightAvatar = 51; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getTopRightAvatarOrBuilder(); - - /** - * string bannerSchemeUrl = 52; - * @return The bannerSchemeUrl. - */ - java.lang.String getBannerSchemeUrl(); - /** - * string bannerSchemeUrl = 52; - * @return The bytes for bannerSchemeUrl. - */ - com.google.protobuf.ByteString - getBannerSchemeUrlBytes(); - - /** - * bool isLocked = 53; - * @return The isLocked. - */ - boolean getIsLocked(); - - /** - * int64 reqExtraType = 54; - * @return The reqExtraType. - */ - long getReqExtraType(); - - /** - * repeated int64 assetIds = 55; - * @return A list containing the assetIds. - */ - java.util.List getAssetIdsList(); - /** - * repeated int64 assetIds = 55; - * @return The count of assetIds. - */ - int getAssetIdsCount(); - /** - * repeated int64 assetIds = 55; - * @param index The index of the element to return. - * @return The assetIds at the given index. - */ - long getAssetIds(int index); - - /** - *
-     * GiftPreviewInfo giftPreviewInfo = 56;
-     * GiftTip giftTip = 57;
-     * 
- * - * int32 needSweepLightCount = 58; - * @return The needSweepLightCount. - */ - int getNeedSweepLightCount(); - } - /** - * Protobuf type {@code GiftStruct} - */ - public static final class GiftStruct extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GiftStruct) - GiftStructOrBuilder { - private static final long serialVersionUID = 0L; - // Use GiftStruct.newBuilder() to construct. - private GiftStruct(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GiftStruct() { - describe_ = ""; - name_ = ""; - region_ = ""; - manual_ = ""; - goldEffect_ = ""; - schemeUrl_ = ""; - eventName_ = ""; - guideUrl_ = ""; - businessText_ = ""; - graySchemeUrl_ = ""; - triggerWords_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - topBarText_ = ""; - bannerSchemeUrl_ = ""; - assetIds_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GiftStruct(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.internal_static_GiftStruct_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 20: - return internalGetSpecialEffectsMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.internal_static_GiftStruct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder.class); - } - - public static final int IMAGE_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image image_; - /** - * .Image image = 1; - * @return Whether the image field is set. - */ - @java.lang.Override - public boolean hasImage() { - return image_ != null; - } - /** - * .Image image = 1; - * @return The image. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImage() { - return image_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } - /** - * .Image image = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImageOrBuilder() { - return image_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } - - public static final int DESCRIBE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object describe_ = ""; - /** - * string describe = 2; - * @return The describe. - */ - @java.lang.Override - public java.lang.String getDescribe() { - java.lang.Object ref = describe_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - describe_ = s; - return s; - } - } - /** - * string describe = 2; - * @return The bytes for describe. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescribeBytes() { - java.lang.Object ref = describe_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - describe_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NOTIFY_FIELD_NUMBER = 3; - private boolean notify_ = false; - /** - * bool notify = 3; - * @return The notify. - */ - @java.lang.Override - public boolean getNotify() { - return notify_; - } - - public static final int DURATION_FIELD_NUMBER = 4; - private long duration_ = 0L; - /** - * uint64 duration = 4; - * @return The duration. - */ - @java.lang.Override - public long getDuration() { - return duration_; - } - - public static final int ID_FIELD_NUMBER = 5; - private long id_ = 0L; - /** - * uint64 id = 5; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - - public static final int FOR_LINKMIC_FIELD_NUMBER = 7; - private boolean forLinkmic_ = false; - /** - *
-     * GiftStructFansClubInfo fansclubInfo = 6;
-     * 
- * - * bool for_linkmic = 7; - * @return The forLinkmic. - */ - @java.lang.Override - public boolean getForLinkmic() { - return forLinkmic_; - } - - public static final int DOODLE_FIELD_NUMBER = 8; - private boolean doodle_ = false; - /** - * bool doodle = 8; - * @return The doodle. - */ - @java.lang.Override - public boolean getDoodle() { - return doodle_; - } - - public static final int FOR_FANSCLUB_FIELD_NUMBER = 9; - private boolean forFansclub_ = false; - /** - * bool for_fansclub = 9; - * @return The forFansclub. - */ - @java.lang.Override - public boolean getForFansclub() { - return forFansclub_; - } - - public static final int COMBO_FIELD_NUMBER = 10; - private boolean combo_ = false; - /** - * bool combo = 10; - * @return The combo. - */ - @java.lang.Override - public boolean getCombo() { - return combo_; - } - - public static final int TYPE_FIELD_NUMBER = 11; - private int type_ = 0; - /** - * uint32 type = 11; - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - - public static final int DIAMOND_COUNT_FIELD_NUMBER = 12; - private int diamondCount_ = 0; - /** - * uint32 diamond_count = 12; - * @return The diamondCount. - */ - @java.lang.Override - public int getDiamondCount() { - return diamondCount_; - } - - public static final int IS_DISPLAYED_ON_PANEL_FIELD_NUMBER = 13; - private boolean isDisplayedOnPanel_ = false; - /** - * bool is_displayed_on_panel = 13; - * @return The isDisplayedOnPanel. - */ - @java.lang.Override - public boolean getIsDisplayedOnPanel() { - return isDisplayedOnPanel_; - } - - public static final int PRIMARY_EFFECT_ID_FIELD_NUMBER = 14; - private long primaryEffectId_ = 0L; - /** - * uint64 primary_effect_id = 14; - * @return The primaryEffectId. - */ - @java.lang.Override - public long getPrimaryEffectId() { - return primaryEffectId_; - } - - public static final int GIFT_LABEL_ICON_FIELD_NUMBER = 15; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image giftLabelIcon_; - /** - * .Image gift_label_icon = 15; - * @return Whether the giftLabelIcon field is set. - */ - @java.lang.Override - public boolean hasGiftLabelIcon() { - return giftLabelIcon_ != null; - } - /** - * .Image gift_label_icon = 15; - * @return The giftLabelIcon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getGiftLabelIcon() { - return giftLabelIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftLabelIcon_; - } - /** - * .Image gift_label_icon = 15; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getGiftLabelIconOrBuilder() { - return giftLabelIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftLabelIcon_; - } - - public static final int NAME_FIELD_NUMBER = 16; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * string name = 16; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 16; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_FIELD_NUMBER = 17; - @SuppressWarnings("serial") - private volatile java.lang.Object region_ = ""; - /** - * string region = 17; - * @return The region. - */ - @java.lang.Override - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } - } - /** - * string region = 17; - * @return The bytes for region. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANUAL_FIELD_NUMBER = 18; - @SuppressWarnings("serial") - private volatile java.lang.Object manual_ = ""; - /** - * string manual = 18; - * @return The manual. - */ - @java.lang.Override - public java.lang.String getManual() { - java.lang.Object ref = manual_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - manual_ = s; - return s; - } - } - /** - * string manual = 18; - * @return The bytes for manual. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getManualBytes() { - java.lang.Object ref = manual_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - manual_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FOR_CUSTOM_FIELD_NUMBER = 19; - private boolean forCustom_ = false; - /** - * bool for_custom = 19; - * @return The forCustom. - */ - @java.lang.Override - public boolean getForCustom() { - return forCustom_; - } - - public static final int SPECIALEFFECTSMAP_FIELD_NUMBER = 20; - private static final class SpecialEffectsMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.internal_static_GiftStruct_SpecialEffectsMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> specialEffectsMap_; - private com.google.protobuf.MapField - internalGetSpecialEffectsMap() { - if (specialEffectsMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SpecialEffectsMapDefaultEntryHolder.defaultEntry); - } - return specialEffectsMap_; - } - public int getSpecialEffectsMapCount() { - return internalGetSpecialEffectsMap().getMap().size(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public boolean containsSpecialEffectsMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetSpecialEffectsMap().getMap().containsKey(key); - } - /** - * Use {@link #getSpecialEffectsMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getSpecialEffectsMap() { - return getSpecialEffectsMapMap(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public java.util.Map getSpecialEffectsMapMap() { - return internalGetSpecialEffectsMap().getMap(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public long getSpecialEffectsMapOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialEffectsMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public long getSpecialEffectsMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialEffectsMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ICON_FIELD_NUMBER = 21; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image icon_; - /** - * .Image icon = 21; - * @return Whether the icon field is set. - */ - @java.lang.Override - public boolean hasIcon() { - return icon_ != null; - } - /** - * .Image icon = 21; - * @return The icon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon() { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - /** - * .Image icon = 21; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder() { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - - public static final int ACTION_TYPE_FIELD_NUMBER = 22; - private int actionType_ = 0; - /** - * uint32 action_type = 22; - * @return The actionType. - */ - @java.lang.Override - public int getActionType() { - return actionType_; - } - - public static final int WATERMELONSEEDS_FIELD_NUMBER = 23; - private int watermelonSeeds_ = 0; - /** - * int32 watermelonSeeds = 23; - * @return The watermelonSeeds. - */ - @java.lang.Override - public int getWatermelonSeeds() { - return watermelonSeeds_; - } - - public static final int GOLDEFFECT_FIELD_NUMBER = 24; - @SuppressWarnings("serial") - private volatile java.lang.Object goldEffect_ = ""; - /** - * string goldEffect = 24; - * @return The goldEffect. - */ - @java.lang.Override - public java.lang.String getGoldEffect() { - java.lang.Object ref = goldEffect_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - goldEffect_ = s; - return s; - } - } - /** - * string goldEffect = 24; - * @return The bytes for goldEffect. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGoldEffectBytes() { - java.lang.Object ref = goldEffect_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - goldEffect_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GOLDENBEANS_FIELD_NUMBER = 26; - private long goldenBeans_ = 0L; - /** - *
-     * repeated LuckyMoneyGiftMeta subs = 25;
-     * 
- * - * int64 goldenBeans = 26; - * @return The goldenBeans. - */ - @java.lang.Override - public long getGoldenBeans() { - return goldenBeans_; - } - - public static final int HONORLEVEL_FIELD_NUMBER = 27; - private long honorLevel_ = 0L; - /** - * int64 honorLevel = 27; - * @return The honorLevel. - */ - @java.lang.Override - public long getHonorLevel() { - return honorLevel_; - } - - public static final int ITEMTYPE_FIELD_NUMBER = 28; - private int itemType_ = 0; - /** - * int32 itemType = 28; - * @return The itemType. - */ - @java.lang.Override - public int getItemType() { - return itemType_; - } - - public static final int SCHEMEURL_FIELD_NUMBER = 29; - @SuppressWarnings("serial") - private volatile java.lang.Object schemeUrl_ = ""; - /** - * string schemeUrl = 29; - * @return The schemeUrl. - */ - @java.lang.Override - public java.lang.String getSchemeUrl() { - java.lang.Object ref = schemeUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemeUrl_ = s; - return s; - } - } - /** - * string schemeUrl = 29; - * @return The bytes for schemeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSchemeUrlBytes() { - java.lang.Object ref = schemeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENTNAME_FIELD_NUMBER = 31; - @SuppressWarnings("serial") - private volatile java.lang.Object eventName_ = ""; - /** - *
-     * GiftPanelOperation giftOperation = 30;
-     * 
- * - * string eventName = 31; - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } - } - /** - *
-     * GiftPanelOperation giftOperation = 30;
-     * 
- * - * string eventName = 31; - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NOBLELEVEL_FIELD_NUMBER = 32; - private long nobleLevel_ = 0L; - /** - * int64 nobleLevel = 32; - * @return The nobleLevel. - */ - @java.lang.Override - public long getNobleLevel() { - return nobleLevel_; - } - - public static final int GUIDEURL_FIELD_NUMBER = 33; - @SuppressWarnings("serial") - private volatile java.lang.Object guideUrl_ = ""; - /** - * string guideUrl = 33; - * @return The guideUrl. - */ - @java.lang.Override - public java.lang.String getGuideUrl() { - java.lang.Object ref = guideUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - guideUrl_ = s; - return s; - } - } - /** - * string guideUrl = 33; - * @return The bytes for guideUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGuideUrlBytes() { - java.lang.Object ref = guideUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - guideUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUNISHMEDICINE_FIELD_NUMBER = 34; - private boolean punishMedicine_ = false; - /** - * bool punishMedicine = 34; - * @return The punishMedicine. - */ - @java.lang.Override - public boolean getPunishMedicine() { - return punishMedicine_; - } - - public static final int FORPORTAL_FIELD_NUMBER = 35; - private boolean forPortal_ = false; - /** - * bool forPortal = 35; - * @return The forPortal. - */ - @java.lang.Override - public boolean getForPortal() { - return forPortal_; - } - - public static final int BUSINESSTEXT_FIELD_NUMBER = 36; - @SuppressWarnings("serial") - private volatile java.lang.Object businessText_ = ""; - /** - * string businessText = 36; - * @return The businessText. - */ - @java.lang.Override - public java.lang.String getBusinessText() { - java.lang.Object ref = businessText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - businessText_ = s; - return s; - } - } - /** - * string businessText = 36; - * @return The bytes for businessText. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBusinessTextBytes() { - java.lang.Object ref = businessText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - businessText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CNYGIFT_FIELD_NUMBER = 37; - private boolean cnyGift_ = false; - /** - * bool cnyGift = 37; - * @return The cnyGift. - */ - @java.lang.Override - public boolean getCnyGift() { - return cnyGift_; - } - - public static final int APPID_FIELD_NUMBER = 38; - private long appId_ = 0L; - /** - * int64 appId = 38; - * @return The appId. - */ - @java.lang.Override - public long getAppId() { - return appId_; - } - - public static final int VIPLEVEL_FIELD_NUMBER = 39; - private long vipLevel_ = 0L; - /** - * int64 vipLevel = 39; - * @return The vipLevel. - */ - @java.lang.Override - public long getVipLevel() { - return vipLevel_; - } - - public static final int ISGRAY_FIELD_NUMBER = 40; - private boolean isGray_ = false; - /** - * bool isGray = 40; - * @return The isGray. - */ - @java.lang.Override - public boolean getIsGray() { - return isGray_; - } - - public static final int GRAYSCHEMEURL_FIELD_NUMBER = 41; - @SuppressWarnings("serial") - private volatile java.lang.Object graySchemeUrl_ = ""; - /** - * string graySchemeUrl = 41; - * @return The graySchemeUrl. - */ - @java.lang.Override - public java.lang.String getGraySchemeUrl() { - java.lang.Object ref = graySchemeUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - graySchemeUrl_ = s; - return s; - } - } - /** - * string graySchemeUrl = 41; - * @return The bytes for graySchemeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGraySchemeUrlBytes() { - java.lang.Object ref = graySchemeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graySchemeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GIFTSCENE_FIELD_NUMBER = 42; - private long giftScene_ = 0L; - /** - * int64 giftScene = 42; - * @return The giftScene. - */ - @java.lang.Override - public long getGiftScene() { - return giftScene_; - } - - public static final int TRIGGERWORDS_FIELD_NUMBER = 44; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList triggerWords_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @return A list containing the triggerWords. - */ - public com.google.protobuf.ProtocolStringList - getTriggerWordsList() { - return triggerWords_; - } - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @return The count of triggerWords. - */ - public int getTriggerWordsCount() { - return triggerWords_.size(); - } - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @param index The index of the element to return. - * @return The triggerWords at the given index. - */ - public java.lang.String getTriggerWords(int index) { - return triggerWords_.get(index); - } - /** - *
-     * GiftBanner giftBanner = 43;
-     * 
- * - * repeated string triggerWords = 44; - * @param index The index of the value to return. - * @return The bytes of the triggerWords at the given index. - */ - public com.google.protobuf.ByteString - getTriggerWordsBytes(int index) { - return triggerWords_.getByteString(index); - } - - public static final int FORFIRSTRECHARGE_FIELD_NUMBER = 46; - private boolean forFirstRecharge_ = false; - /** - *
-     * repeated GiftBuffInfo giftBuffInfos = 45;
-     * 
- * - * bool forFirstRecharge = 46; - * @return The forFirstRecharge. - */ - @java.lang.Override - public boolean getForFirstRecharge() { - return forFirstRecharge_; - } - - public static final int DYNAMICIMGFORSELECTED_FIELD_NUMBER = 47; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image dynamicImgForSelected_; - /** - * .Image dynamicImgForSelected = 47; - * @return Whether the dynamicImgForSelected field is set. - */ - @java.lang.Override - public boolean hasDynamicImgForSelected() { - return dynamicImgForSelected_ != null; - } - /** - * .Image dynamicImgForSelected = 47; - * @return The dynamicImgForSelected. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDynamicImgForSelected() { - return dynamicImgForSelected_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : dynamicImgForSelected_; - } - /** - * .Image dynamicImgForSelected = 47; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getDynamicImgForSelectedOrBuilder() { - return dynamicImgForSelected_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : dynamicImgForSelected_; - } - - public static final int AFTERSENDACTION_FIELD_NUMBER = 48; - private int afterSendAction_ = 0; - /** - * int32 afterSendAction = 48; - * @return The afterSendAction. - */ - @java.lang.Override - public int getAfterSendAction() { - return afterSendAction_; - } - - public static final int GIFTOFFLINETIME_FIELD_NUMBER = 49; - private long giftOfflineTime_ = 0L; - /** - * int64 giftOfflineTime = 49; - * @return The giftOfflineTime. - */ - @java.lang.Override - public long getGiftOfflineTime() { - return giftOfflineTime_; - } - - public static final int TOPBARTEXT_FIELD_NUMBER = 50; - @SuppressWarnings("serial") - private volatile java.lang.Object topBarText_ = ""; - /** - * string topBarText = 50; - * @return The topBarText. - */ - @java.lang.Override - public java.lang.String getTopBarText() { - java.lang.Object ref = topBarText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topBarText_ = s; - return s; - } - } - /** - * string topBarText = 50; - * @return The bytes for topBarText. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTopBarTextBytes() { - java.lang.Object ref = topBarText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topBarText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOPRIGHTAVATAR_FIELD_NUMBER = 51; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image topRightAvatar_; - /** - * .Image topRightAvatar = 51; - * @return Whether the topRightAvatar field is set. - */ - @java.lang.Override - public boolean hasTopRightAvatar() { - return topRightAvatar_ != null; - } - /** - * .Image topRightAvatar = 51; - * @return The topRightAvatar. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getTopRightAvatar() { - return topRightAvatar_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : topRightAvatar_; - } - /** - * .Image topRightAvatar = 51; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getTopRightAvatarOrBuilder() { - return topRightAvatar_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : topRightAvatar_; - } - - public static final int BANNERSCHEMEURL_FIELD_NUMBER = 52; - @SuppressWarnings("serial") - private volatile java.lang.Object bannerSchemeUrl_ = ""; - /** - * string bannerSchemeUrl = 52; - * @return The bannerSchemeUrl. - */ - @java.lang.Override - public java.lang.String getBannerSchemeUrl() { - java.lang.Object ref = bannerSchemeUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bannerSchemeUrl_ = s; - return s; - } - } - /** - * string bannerSchemeUrl = 52; - * @return The bytes for bannerSchemeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBannerSchemeUrlBytes() { - java.lang.Object ref = bannerSchemeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bannerSchemeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISLOCKED_FIELD_NUMBER = 53; - private boolean isLocked_ = false; - /** - * bool isLocked = 53; - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - - public static final int REQEXTRATYPE_FIELD_NUMBER = 54; - private long reqExtraType_ = 0L; - /** - * int64 reqExtraType = 54; - * @return The reqExtraType. - */ - @java.lang.Override - public long getReqExtraType() { - return reqExtraType_; - } - - public static final int ASSETIDS_FIELD_NUMBER = 55; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList assetIds_; - /** - * repeated int64 assetIds = 55; - * @return A list containing the assetIds. - */ - @java.lang.Override - public java.util.List - getAssetIdsList() { - return assetIds_; - } - /** - * repeated int64 assetIds = 55; - * @return The count of assetIds. - */ - public int getAssetIdsCount() { - return assetIds_.size(); - } - /** - * repeated int64 assetIds = 55; - * @param index The index of the element to return. - * @return The assetIds at the given index. - */ - public long getAssetIds(int index) { - return assetIds_.getLong(index); - } - private int assetIdsMemoizedSerializedSize = -1; - - public static final int NEEDSWEEPLIGHTCOUNT_FIELD_NUMBER = 58; - private int needSweepLightCount_ = 0; - /** - *
-     * GiftPreviewInfo giftPreviewInfo = 56;
-     * GiftTip giftTip = 57;
-     * 
- * - * int32 needSweepLightCount = 58; - * @return The needSweepLightCount. - */ - @java.lang.Override - public int getNeedSweepLightCount() { - return needSweepLightCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (image_ != null) { - output.writeMessage(1, getImage()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(describe_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, describe_); - } - if (notify_ != false) { - output.writeBool(3, notify_); - } - if (duration_ != 0L) { - output.writeUInt64(4, duration_); - } - if (id_ != 0L) { - output.writeUInt64(5, id_); - } - if (forLinkmic_ != false) { - output.writeBool(7, forLinkmic_); - } - if (doodle_ != false) { - output.writeBool(8, doodle_); - } - if (forFansclub_ != false) { - output.writeBool(9, forFansclub_); - } - if (combo_ != false) { - output.writeBool(10, combo_); - } - if (type_ != 0) { - output.writeUInt32(11, type_); - } - if (diamondCount_ != 0) { - output.writeUInt32(12, diamondCount_); - } - if (isDisplayedOnPanel_ != false) { - output.writeBool(13, isDisplayedOnPanel_); - } - if (primaryEffectId_ != 0L) { - output.writeUInt64(14, primaryEffectId_); - } - if (giftLabelIcon_ != null) { - output.writeMessage(15, getGiftLabelIcon()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manual_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, manual_); - } - if (forCustom_ != false) { - output.writeBool(19, forCustom_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSpecialEffectsMap(), - SpecialEffectsMapDefaultEntryHolder.defaultEntry, - 20); - if (icon_ != null) { - output.writeMessage(21, getIcon()); - } - if (actionType_ != 0) { - output.writeUInt32(22, actionType_); - } - if (watermelonSeeds_ != 0) { - output.writeInt32(23, watermelonSeeds_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goldEffect_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, goldEffect_); - } - if (goldenBeans_ != 0L) { - output.writeInt64(26, goldenBeans_); - } - if (honorLevel_ != 0L) { - output.writeInt64(27, honorLevel_); - } - if (itemType_ != 0) { - output.writeInt32(28, itemType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, schemeUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 31, eventName_); - } - if (nobleLevel_ != 0L) { - output.writeInt64(32, nobleLevel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guideUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 33, guideUrl_); - } - if (punishMedicine_ != false) { - output.writeBool(34, punishMedicine_); - } - if (forPortal_ != false) { - output.writeBool(35, forPortal_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessText_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 36, businessText_); - } - if (cnyGift_ != false) { - output.writeBool(37, cnyGift_); - } - if (appId_ != 0L) { - output.writeInt64(38, appId_); - } - if (vipLevel_ != 0L) { - output.writeInt64(39, vipLevel_); - } - if (isGray_ != false) { - output.writeBool(40, isGray_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graySchemeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 41, graySchemeUrl_); - } - if (giftScene_ != 0L) { - output.writeInt64(42, giftScene_); - } - for (int i = 0; i < triggerWords_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 44, triggerWords_.getRaw(i)); - } - if (forFirstRecharge_ != false) { - output.writeBool(46, forFirstRecharge_); - } - if (dynamicImgForSelected_ != null) { - output.writeMessage(47, getDynamicImgForSelected()); - } - if (afterSendAction_ != 0) { - output.writeInt32(48, afterSendAction_); - } - if (giftOfflineTime_ != 0L) { - output.writeInt64(49, giftOfflineTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topBarText_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 50, topBarText_); - } - if (topRightAvatar_ != null) { - output.writeMessage(51, getTopRightAvatar()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bannerSchemeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 52, bannerSchemeUrl_); - } - if (isLocked_ != false) { - output.writeBool(53, isLocked_); - } - if (reqExtraType_ != 0L) { - output.writeInt64(54, reqExtraType_); - } - if (getAssetIdsList().size() > 0) { - output.writeUInt32NoTag(442); - output.writeUInt32NoTag(assetIdsMemoizedSerializedSize); - } - for (int i = 0; i < assetIds_.size(); i++) { - output.writeInt64NoTag(assetIds_.getLong(i)); - } - if (needSweepLightCount_ != 0) { - output.writeInt32(58, needSweepLightCount_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(describe_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, describe_); - } - if (notify_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, notify_); - } - if (duration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, duration_); - } - if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, id_); - } - if (forLinkmic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, forLinkmic_); - } - if (doodle_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, doodle_); - } - if (forFansclub_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, forFansclub_); - } - if (combo_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, combo_); - } - if (type_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, type_); - } - if (diamondCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, diamondCount_); - } - if (isDisplayedOnPanel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, isDisplayedOnPanel_); - } - if (primaryEffectId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(14, primaryEffectId_); - } - if (giftLabelIcon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getGiftLabelIcon()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, region_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manual_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, manual_); - } - if (forCustom_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, forCustom_); - } - for (java.util.Map.Entry entry - : internalGetSpecialEffectsMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - specialEffectsMap__ = SpecialEffectsMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, specialEffectsMap__); - } - if (icon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getIcon()); - } - if (actionType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(22, actionType_); - } - if (watermelonSeeds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(23, watermelonSeeds_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goldEffect_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, goldEffect_); - } - if (goldenBeans_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(26, goldenBeans_); - } - if (honorLevel_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(27, honorLevel_); - } - if (itemType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(28, itemType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, schemeUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, eventName_); - } - if (nobleLevel_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(32, nobleLevel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guideUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, guideUrl_); - } - if (punishMedicine_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(34, punishMedicine_); - } - if (forPortal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(35, forPortal_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessText_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, businessText_); - } - if (cnyGift_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(37, cnyGift_); - } - if (appId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(38, appId_); - } - if (vipLevel_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(39, vipLevel_); - } - if (isGray_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(40, isGray_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(graySchemeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(41, graySchemeUrl_); - } - if (giftScene_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(42, giftScene_); - } - { - int dataSize = 0; - for (int i = 0; i < triggerWords_.size(); i++) { - dataSize += computeStringSizeNoTag(triggerWords_.getRaw(i)); - } - size += dataSize; - size += 2 * getTriggerWordsList().size(); - } - if (forFirstRecharge_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(46, forFirstRecharge_); - } - if (dynamicImgForSelected_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, getDynamicImgForSelected()); - } - if (afterSendAction_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(48, afterSendAction_); - } - if (giftOfflineTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(49, giftOfflineTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topBarText_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(50, topBarText_); - } - if (topRightAvatar_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, getTopRightAvatar()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bannerSchemeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(52, bannerSchemeUrl_); - } - if (isLocked_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(53, isLocked_); - } - if (reqExtraType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(54, reqExtraType_); - } - { - int dataSize = 0; - for (int i = 0; i < assetIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(assetIds_.getLong(i)); - } - size += dataSize; - if (!getAssetIdsList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - assetIdsMemoizedSerializedSize = dataSize; - } - if (needSweepLightCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(58, needSweepLightCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct) obj; - - if (hasImage() != other.hasImage()) return false; - if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; - } - if (!getDescribe() - .equals(other.getDescribe())) return false; - if (getNotify() - != other.getNotify()) return false; - if (getDuration() - != other.getDuration()) return false; - if (getId() - != other.getId()) return false; - if (getForLinkmic() - != other.getForLinkmic()) return false; - if (getDoodle() - != other.getDoodle()) return false; - if (getForFansclub() - != other.getForFansclub()) return false; - if (getCombo() - != other.getCombo()) return false; - if (getType() - != other.getType()) return false; - if (getDiamondCount() - != other.getDiamondCount()) return false; - if (getIsDisplayedOnPanel() - != other.getIsDisplayedOnPanel()) return false; - if (getPrimaryEffectId() - != other.getPrimaryEffectId()) return false; - if (hasGiftLabelIcon() != other.hasGiftLabelIcon()) return false; - if (hasGiftLabelIcon()) { - if (!getGiftLabelIcon() - .equals(other.getGiftLabelIcon())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; - if (!getManual() - .equals(other.getManual())) return false; - if (getForCustom() - != other.getForCustom()) return false; - if (!internalGetSpecialEffectsMap().equals( - other.internalGetSpecialEffectsMap())) return false; - if (hasIcon() != other.hasIcon()) return false; - if (hasIcon()) { - if (!getIcon() - .equals(other.getIcon())) return false; - } - if (getActionType() - != other.getActionType()) return false; - if (getWatermelonSeeds() - != other.getWatermelonSeeds()) return false; - if (!getGoldEffect() - .equals(other.getGoldEffect())) return false; - if (getGoldenBeans() - != other.getGoldenBeans()) return false; - if (getHonorLevel() - != other.getHonorLevel()) return false; - if (getItemType() - != other.getItemType()) return false; - if (!getSchemeUrl() - .equals(other.getSchemeUrl())) return false; - if (!getEventName() - .equals(other.getEventName())) return false; - if (getNobleLevel() - != other.getNobleLevel()) return false; - if (!getGuideUrl() - .equals(other.getGuideUrl())) return false; - if (getPunishMedicine() - != other.getPunishMedicine()) return false; - if (getForPortal() - != other.getForPortal()) return false; - if (!getBusinessText() - .equals(other.getBusinessText())) return false; - if (getCnyGift() - != other.getCnyGift()) return false; - if (getAppId() - != other.getAppId()) return false; - if (getVipLevel() - != other.getVipLevel()) return false; - if (getIsGray() - != other.getIsGray()) return false; - if (!getGraySchemeUrl() - .equals(other.getGraySchemeUrl())) return false; - if (getGiftScene() - != other.getGiftScene()) return false; - if (!getTriggerWordsList() - .equals(other.getTriggerWordsList())) return false; - if (getForFirstRecharge() - != other.getForFirstRecharge()) return false; - if (hasDynamicImgForSelected() != other.hasDynamicImgForSelected()) return false; - if (hasDynamicImgForSelected()) { - if (!getDynamicImgForSelected() - .equals(other.getDynamicImgForSelected())) return false; - } - if (getAfterSendAction() - != other.getAfterSendAction()) return false; - if (getGiftOfflineTime() - != other.getGiftOfflineTime()) return false; - if (!getTopBarText() - .equals(other.getTopBarText())) return false; - if (hasTopRightAvatar() != other.hasTopRightAvatar()) return false; - if (hasTopRightAvatar()) { - if (!getTopRightAvatar() - .equals(other.getTopRightAvatar())) return false; - } - if (!getBannerSchemeUrl() - .equals(other.getBannerSchemeUrl())) return false; - if (getIsLocked() - != other.getIsLocked()) return false; - if (getReqExtraType() - != other.getReqExtraType()) return false; - if (!getAssetIdsList() - .equals(other.getAssetIdsList())) return false; - if (getNeedSweepLightCount() - != other.getNeedSweepLightCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasImage()) { - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - } - hash = (37 * hash) + DESCRIBE_FIELD_NUMBER; - hash = (53 * hash) + getDescribe().hashCode(); - hash = (37 * hash) + NOTIFY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNotify()); - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDuration()); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); - hash = (37 * hash) + FOR_LINKMIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForLinkmic()); - hash = (37 * hash) + DOODLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDoodle()); - hash = (37 * hash) + FOR_FANSCLUB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForFansclub()); - hash = (37 * hash) + COMBO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCombo()); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - hash = (37 * hash) + DIAMOND_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getDiamondCount(); - hash = (37 * hash) + IS_DISPLAYED_ON_PANEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDisplayedOnPanel()); - hash = (37 * hash) + PRIMARY_EFFECT_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrimaryEffectId()); - if (hasGiftLabelIcon()) { - hash = (37 * hash) + GIFT_LABEL_ICON_FIELD_NUMBER; - hash = (53 * hash) + getGiftLabelIcon().hashCode(); - } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + REGION_FIELD_NUMBER; - hash = (53 * hash) + getRegion().hashCode(); - hash = (37 * hash) + MANUAL_FIELD_NUMBER; - hash = (53 * hash) + getManual().hashCode(); - hash = (37 * hash) + FOR_CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForCustom()); - if (!internalGetSpecialEffectsMap().getMap().isEmpty()) { - hash = (37 * hash) + SPECIALEFFECTSMAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetSpecialEffectsMap().hashCode(); - } - if (hasIcon()) { - hash = (37 * hash) + ICON_FIELD_NUMBER; - hash = (53 * hash) + getIcon().hashCode(); - } - hash = (37 * hash) + ACTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getActionType(); - hash = (37 * hash) + WATERMELONSEEDS_FIELD_NUMBER; - hash = (53 * hash) + getWatermelonSeeds(); - hash = (37 * hash) + GOLDEFFECT_FIELD_NUMBER; - hash = (53 * hash) + getGoldEffect().hashCode(); - hash = (37 * hash) + GOLDENBEANS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGoldenBeans()); - hash = (37 * hash) + HONORLEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHonorLevel()); - hash = (37 * hash) + ITEMTYPE_FIELD_NUMBER; - hash = (53 * hash) + getItemType(); - hash = (37 * hash) + SCHEMEURL_FIELD_NUMBER; - hash = (53 * hash) + getSchemeUrl().hashCode(); - hash = (37 * hash) + EVENTNAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - hash = (37 * hash) + NOBLELEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNobleLevel()); - hash = (37 * hash) + GUIDEURL_FIELD_NUMBER; - hash = (53 * hash) + getGuideUrl().hashCode(); - hash = (37 * hash) + PUNISHMEDICINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPunishMedicine()); - hash = (37 * hash) + FORPORTAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForPortal()); - hash = (37 * hash) + BUSINESSTEXT_FIELD_NUMBER; - hash = (53 * hash) + getBusinessText().hashCode(); - hash = (37 * hash) + CNYGIFT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCnyGift()); - hash = (37 * hash) + APPID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAppId()); - hash = (37 * hash) + VIPLEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVipLevel()); - hash = (37 * hash) + ISGRAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsGray()); - hash = (37 * hash) + GRAYSCHEMEURL_FIELD_NUMBER; - hash = (53 * hash) + getGraySchemeUrl().hashCode(); - hash = (37 * hash) + GIFTSCENE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGiftScene()); - if (getTriggerWordsCount() > 0) { - hash = (37 * hash) + TRIGGERWORDS_FIELD_NUMBER; - hash = (53 * hash) + getTriggerWordsList().hashCode(); - } - hash = (37 * hash) + FORFIRSTRECHARGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForFirstRecharge()); - if (hasDynamicImgForSelected()) { - hash = (37 * hash) + DYNAMICIMGFORSELECTED_FIELD_NUMBER; - hash = (53 * hash) + getDynamicImgForSelected().hashCode(); - } - hash = (37 * hash) + AFTERSENDACTION_FIELD_NUMBER; - hash = (53 * hash) + getAfterSendAction(); - hash = (37 * hash) + GIFTOFFLINETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGiftOfflineTime()); - hash = (37 * hash) + TOPBARTEXT_FIELD_NUMBER; - hash = (53 * hash) + getTopBarText().hashCode(); - if (hasTopRightAvatar()) { - hash = (37 * hash) + TOPRIGHTAVATAR_FIELD_NUMBER; - hash = (53 * hash) + getTopRightAvatar().hashCode(); - } - hash = (37 * hash) + BANNERSCHEMEURL_FIELD_NUMBER; - hash = (53 * hash) + getBannerSchemeUrl().hashCode(); - hash = (37 * hash) + ISLOCKED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsLocked()); - hash = (37 * hash) + REQEXTRATYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getReqExtraType()); - if (getAssetIdsCount() > 0) { - hash = (37 * hash) + ASSETIDS_FIELD_NUMBER; - hash = (53 * hash) + getAssetIdsList().hashCode(); - } - hash = (37 * hash) + NEEDSWEEPLIGHTCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getNeedSweepLightCount(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GiftStruct} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GiftStruct) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStructOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.internal_static_GiftStruct_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 20: - return internalGetSpecialEffectsMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 20: - return internalGetMutableSpecialEffectsMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.internal_static_GiftStruct_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - image_ = null; - if (imageBuilder_ != null) { - imageBuilder_.dispose(); - imageBuilder_ = null; - } - describe_ = ""; - notify_ = false; - duration_ = 0L; - id_ = 0L; - forLinkmic_ = false; - doodle_ = false; - forFansclub_ = false; - combo_ = false; - type_ = 0; - diamondCount_ = 0; - isDisplayedOnPanel_ = false; - primaryEffectId_ = 0L; - giftLabelIcon_ = null; - if (giftLabelIconBuilder_ != null) { - giftLabelIconBuilder_.dispose(); - giftLabelIconBuilder_ = null; - } - name_ = ""; - region_ = ""; - manual_ = ""; - forCustom_ = false; - internalGetMutableSpecialEffectsMap().clear(); - icon_ = null; - if (iconBuilder_ != null) { - iconBuilder_.dispose(); - iconBuilder_ = null; - } - actionType_ = 0; - watermelonSeeds_ = 0; - goldEffect_ = ""; - goldenBeans_ = 0L; - honorLevel_ = 0L; - itemType_ = 0; - schemeUrl_ = ""; - eventName_ = ""; - nobleLevel_ = 0L; - guideUrl_ = ""; - punishMedicine_ = false; - forPortal_ = false; - businessText_ = ""; - cnyGift_ = false; - appId_ = 0L; - vipLevel_ = 0L; - isGray_ = false; - graySchemeUrl_ = ""; - giftScene_ = 0L; - triggerWords_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - forFirstRecharge_ = false; - dynamicImgForSelected_ = null; - if (dynamicImgForSelectedBuilder_ != null) { - dynamicImgForSelectedBuilder_.dispose(); - dynamicImgForSelectedBuilder_ = null; - } - afterSendAction_ = 0; - giftOfflineTime_ = 0L; - topBarText_ = ""; - topRightAvatar_ = null; - if (topRightAvatarBuilder_ != null) { - topRightAvatarBuilder_.dispose(); - topRightAvatarBuilder_ = null; - } - bannerSchemeUrl_ = ""; - isLocked_ = false; - reqExtraType_ = 0L; - assetIds_ = emptyLongList(); - needSweepLightCount_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.internal_static_GiftStruct_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - if (bitField1_ != 0) { buildPartial1(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct result) { - if (((bitField1_ & 0x00020000) != 0)) { - assetIds_.makeImmutable(); - bitField1_ = (bitField1_ & ~0x00020000); - } - result.assetIds_ = assetIds_; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.image_ = imageBuilder_ == null - ? image_ - : imageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.describe_ = describe_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.notify_ = notify_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.duration_ = duration_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.forLinkmic_ = forLinkmic_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.doodle_ = doodle_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.forFansclub_ = forFansclub_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.combo_ = combo_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.diamondCount_ = diamondCount_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.isDisplayedOnPanel_ = isDisplayedOnPanel_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.primaryEffectId_ = primaryEffectId_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.giftLabelIcon_ = giftLabelIconBuilder_ == null - ? giftLabelIcon_ - : giftLabelIconBuilder_.build(); - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.region_ = region_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.manual_ = manual_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.forCustom_ = forCustom_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.specialEffectsMap_ = internalGetSpecialEffectsMap(); - result.specialEffectsMap_.makeImmutable(); - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.icon_ = iconBuilder_ == null - ? icon_ - : iconBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.actionType_ = actionType_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.watermelonSeeds_ = watermelonSeeds_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.goldEffect_ = goldEffect_; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.goldenBeans_ = goldenBeans_; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.honorLevel_ = honorLevel_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.itemType_ = itemType_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.schemeUrl_ = schemeUrl_; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.eventName_ = eventName_; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.nobleLevel_ = nobleLevel_; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.guideUrl_ = guideUrl_; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.punishMedicine_ = punishMedicine_; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.forPortal_ = forPortal_; - } - } - - private void buildPartial1(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct result) { - int from_bitField1_ = bitField1_; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.businessText_ = businessText_; - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.cnyGift_ = cnyGift_; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.appId_ = appId_; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.vipLevel_ = vipLevel_; - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.isGray_ = isGray_; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.graySchemeUrl_ = graySchemeUrl_; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.giftScene_ = giftScene_; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - triggerWords_.makeImmutable(); - result.triggerWords_ = triggerWords_; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.forFirstRecharge_ = forFirstRecharge_; - } - if (((from_bitField1_ & 0x00000200) != 0)) { - result.dynamicImgForSelected_ = dynamicImgForSelectedBuilder_ == null - ? dynamicImgForSelected_ - : dynamicImgForSelectedBuilder_.build(); - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.afterSendAction_ = afterSendAction_; - } - if (((from_bitField1_ & 0x00000800) != 0)) { - result.giftOfflineTime_ = giftOfflineTime_; - } - if (((from_bitField1_ & 0x00001000) != 0)) { - result.topBarText_ = topBarText_; - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.topRightAvatar_ = topRightAvatarBuilder_ == null - ? topRightAvatar_ - : topRightAvatarBuilder_.build(); - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.bannerSchemeUrl_ = bannerSchemeUrl_; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.isLocked_ = isLocked_; - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.reqExtraType_ = reqExtraType_; - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.needSweepLightCount_ = needSweepLightCount_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct.getDefaultInstance()) return this; - if (other.hasImage()) { - mergeImage(other.getImage()); - } - if (!other.getDescribe().isEmpty()) { - describe_ = other.describe_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getNotify() != false) { - setNotify(other.getNotify()); - } - if (other.getDuration() != 0L) { - setDuration(other.getDuration()); - } - if (other.getId() != 0L) { - setId(other.getId()); - } - if (other.getForLinkmic() != false) { - setForLinkmic(other.getForLinkmic()); - } - if (other.getDoodle() != false) { - setDoodle(other.getDoodle()); - } - if (other.getForFansclub() != false) { - setForFansclub(other.getForFansclub()); - } - if (other.getCombo() != false) { - setCombo(other.getCombo()); - } - if (other.getType() != 0) { - setType(other.getType()); - } - if (other.getDiamondCount() != 0) { - setDiamondCount(other.getDiamondCount()); - } - if (other.getIsDisplayedOnPanel() != false) { - setIsDisplayedOnPanel(other.getIsDisplayedOnPanel()); - } - if (other.getPrimaryEffectId() != 0L) { - setPrimaryEffectId(other.getPrimaryEffectId()); - } - if (other.hasGiftLabelIcon()) { - mergeGiftLabelIcon(other.getGiftLabelIcon()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00004000; - onChanged(); - } - if (!other.getRegion().isEmpty()) { - region_ = other.region_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (!other.getManual().isEmpty()) { - manual_ = other.manual_; - bitField0_ |= 0x00010000; - onChanged(); - } - if (other.getForCustom() != false) { - setForCustom(other.getForCustom()); - } - internalGetMutableSpecialEffectsMap().mergeFrom( - other.internalGetSpecialEffectsMap()); - bitField0_ |= 0x00040000; - if (other.hasIcon()) { - mergeIcon(other.getIcon()); - } - if (other.getActionType() != 0) { - setActionType(other.getActionType()); - } - if (other.getWatermelonSeeds() != 0) { - setWatermelonSeeds(other.getWatermelonSeeds()); - } - if (!other.getGoldEffect().isEmpty()) { - goldEffect_ = other.goldEffect_; - bitField0_ |= 0x00400000; - onChanged(); - } - if (other.getGoldenBeans() != 0L) { - setGoldenBeans(other.getGoldenBeans()); - } - if (other.getHonorLevel() != 0L) { - setHonorLevel(other.getHonorLevel()); - } - if (other.getItemType() != 0) { - setItemType(other.getItemType()); - } - if (!other.getSchemeUrl().isEmpty()) { - schemeUrl_ = other.schemeUrl_; - bitField0_ |= 0x04000000; - onChanged(); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - bitField0_ |= 0x08000000; - onChanged(); - } - if (other.getNobleLevel() != 0L) { - setNobleLevel(other.getNobleLevel()); - } - if (!other.getGuideUrl().isEmpty()) { - guideUrl_ = other.guideUrl_; - bitField0_ |= 0x20000000; - onChanged(); - } - if (other.getPunishMedicine() != false) { - setPunishMedicine(other.getPunishMedicine()); - } - if (other.getForPortal() != false) { - setForPortal(other.getForPortal()); - } - if (!other.getBusinessText().isEmpty()) { - businessText_ = other.businessText_; - bitField1_ |= 0x00000001; - onChanged(); - } - if (other.getCnyGift() != false) { - setCnyGift(other.getCnyGift()); - } - if (other.getAppId() != 0L) { - setAppId(other.getAppId()); - } - if (other.getVipLevel() != 0L) { - setVipLevel(other.getVipLevel()); - } - if (other.getIsGray() != false) { - setIsGray(other.getIsGray()); - } - if (!other.getGraySchemeUrl().isEmpty()) { - graySchemeUrl_ = other.graySchemeUrl_; - bitField1_ |= 0x00000020; - onChanged(); - } - if (other.getGiftScene() != 0L) { - setGiftScene(other.getGiftScene()); - } - if (!other.triggerWords_.isEmpty()) { - if (triggerWords_.isEmpty()) { - triggerWords_ = other.triggerWords_; - bitField1_ |= 0x00000080; - } else { - ensureTriggerWordsIsMutable(); - triggerWords_.addAll(other.triggerWords_); - } - onChanged(); - } - if (other.getForFirstRecharge() != false) { - setForFirstRecharge(other.getForFirstRecharge()); - } - if (other.hasDynamicImgForSelected()) { - mergeDynamicImgForSelected(other.getDynamicImgForSelected()); - } - if (other.getAfterSendAction() != 0) { - setAfterSendAction(other.getAfterSendAction()); - } - if (other.getGiftOfflineTime() != 0L) { - setGiftOfflineTime(other.getGiftOfflineTime()); - } - if (!other.getTopBarText().isEmpty()) { - topBarText_ = other.topBarText_; - bitField1_ |= 0x00001000; - onChanged(); - } - if (other.hasTopRightAvatar()) { - mergeTopRightAvatar(other.getTopRightAvatar()); - } - if (!other.getBannerSchemeUrl().isEmpty()) { - bannerSchemeUrl_ = other.bannerSchemeUrl_; - bitField1_ |= 0x00004000; - onChanged(); - } - if (other.getIsLocked() != false) { - setIsLocked(other.getIsLocked()); - } - if (other.getReqExtraType() != 0L) { - setReqExtraType(other.getReqExtraType()); - } - if (!other.assetIds_.isEmpty()) { - if (assetIds_.isEmpty()) { - assetIds_ = other.assetIds_; - bitField1_ = (bitField1_ & ~0x00020000); - } else { - ensureAssetIdsIsMutable(); - assetIds_.addAll(other.assetIds_); - } - onChanged(); - } - if (other.getNeedSweepLightCount() != 0) { - setNeedSweepLightCount(other.getNeedSweepLightCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getImageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - describe_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - notify_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - duration_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - id_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 56: { - forLinkmic_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: { - doodle_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: { - forFansclub_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 80: { - combo_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 88: { - type_ = input.readUInt32(); - bitField0_ |= 0x00000200; - break; - } // case 88 - case 96: { - diamondCount_ = input.readUInt32(); - bitField0_ |= 0x00000400; - break; - } // case 96 - case 104: { - isDisplayedOnPanel_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 104 - case 112: { - primaryEffectId_ = input.readUInt64(); - bitField0_ |= 0x00001000; - break; - } // case 112 - case 122: { - input.readMessage( - getGiftLabelIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 122 - case 130: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 130 - case 138: { - region_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 138 - case 146: { - manual_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; - break; - } // case 146 - case 152: { - forCustom_ = input.readBool(); - bitField0_ |= 0x00020000; - break; - } // case 152 - case 162: { - com.google.protobuf.MapEntry - specialEffectsMap__ = input.readMessage( - SpecialEffectsMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableSpecialEffectsMap().getMutableMap().put( - specialEffectsMap__.getKey(), specialEffectsMap__.getValue()); - bitField0_ |= 0x00040000; - break; - } // case 162 - case 170: { - input.readMessage( - getIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 170 - case 176: { - actionType_ = input.readUInt32(); - bitField0_ |= 0x00100000; - break; - } // case 176 - case 184: { - watermelonSeeds_ = input.readInt32(); - bitField0_ |= 0x00200000; - break; - } // case 184 - case 194: { - goldEffect_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; - break; - } // case 194 - case 208: { - goldenBeans_ = input.readInt64(); - bitField0_ |= 0x00800000; - break; - } // case 208 - case 216: { - honorLevel_ = input.readInt64(); - bitField0_ |= 0x01000000; - break; - } // case 216 - case 224: { - itemType_ = input.readInt32(); - bitField0_ |= 0x02000000; - break; - } // case 224 - case 234: { - schemeUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x04000000; - break; - } // case 234 - case 250: { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; - break; - } // case 250 - case 256: { - nobleLevel_ = input.readInt64(); - bitField0_ |= 0x10000000; - break; - } // case 256 - case 266: { - guideUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; - break; - } // case 266 - case 272: { - punishMedicine_ = input.readBool(); - bitField0_ |= 0x40000000; - break; - } // case 272 - case 280: { - forPortal_ = input.readBool(); - bitField0_ |= 0x80000000; - break; - } // case 280 - case 290: { - businessText_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000001; - break; - } // case 290 - case 296: { - cnyGift_ = input.readBool(); - bitField1_ |= 0x00000002; - break; - } // case 296 - case 304: { - appId_ = input.readInt64(); - bitField1_ |= 0x00000004; - break; - } // case 304 - case 312: { - vipLevel_ = input.readInt64(); - bitField1_ |= 0x00000008; - break; - } // case 312 - case 320: { - isGray_ = input.readBool(); - bitField1_ |= 0x00000010; - break; - } // case 320 - case 330: { - graySchemeUrl_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000020; - break; - } // case 330 - case 336: { - giftScene_ = input.readInt64(); - bitField1_ |= 0x00000040; - break; - } // case 336 - case 354: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTriggerWordsIsMutable(); - triggerWords_.add(s); - break; - } // case 354 - case 368: { - forFirstRecharge_ = input.readBool(); - bitField1_ |= 0x00000100; - break; - } // case 368 - case 378: { - input.readMessage( - getDynamicImgForSelectedFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000200; - break; - } // case 378 - case 384: { - afterSendAction_ = input.readInt32(); - bitField1_ |= 0x00000400; - break; - } // case 384 - case 392: { - giftOfflineTime_ = input.readInt64(); - bitField1_ |= 0x00000800; - break; - } // case 392 - case 402: { - topBarText_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00001000; - break; - } // case 402 - case 410: { - input.readMessage( - getTopRightAvatarFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00002000; - break; - } // case 410 - case 418: { - bannerSchemeUrl_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00004000; - break; - } // case 418 - case 424: { - isLocked_ = input.readBool(); - bitField1_ |= 0x00008000; - break; - } // case 424 - case 432: { - reqExtraType_ = input.readInt64(); - bitField1_ |= 0x00010000; - break; - } // case 432 - case 440: { - long v = input.readInt64(); - ensureAssetIdsIsMutable(); - assetIds_.addLong(v); - break; - } // case 440 - case 442: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureAssetIdsIsMutable(); - while (input.getBytesUntilLimit() > 0) { - assetIds_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 442 - case 464: { - needSweepLightCount_ = input.readInt32(); - bitField1_ |= 0x00040000; - break; - } // case 464 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - private int bitField1_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image image_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> imageBuilder_; - /** - * .Image image = 1; - * @return Whether the image field is set. - */ - public boolean hasImage() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Image image = 1; - * @return The image. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImage() { - if (imageBuilder_ == null) { - return image_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } else { - return imageBuilder_.getMessage(); - } - } - /** - * .Image image = 1; - */ - public Builder setImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - image_ = value; - } else { - imageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public Builder setImage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (imageBuilder_ == null) { - image_ = builderForValue.build(); - } else { - imageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public Builder mergeImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imageBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - image_ != null && - image_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getImageBuilder().mergeFrom(value); - } else { - image_ = value; - } - } else { - imageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public Builder clearImage() { - bitField0_ = (bitField0_ & ~0x00000001); - image_ = null; - if (imageBuilder_ != null) { - imageBuilder_.dispose(); - imageBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getImageBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getImageFieldBuilder().getBuilder(); - } - /** - * .Image image = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImageOrBuilder() { - if (imageBuilder_ != null) { - return imageBuilder_.getMessageOrBuilder(); - } else { - return image_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } - } - /** - * .Image image = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getImageFieldBuilder() { - if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); - image_ = null; - } - return imageBuilder_; - } - - private java.lang.Object describe_ = ""; - /** - * string describe = 2; - * @return The describe. - */ - public java.lang.String getDescribe() { - java.lang.Object ref = describe_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - describe_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string describe = 2; - * @return The bytes for describe. - */ - public com.google.protobuf.ByteString - getDescribeBytes() { - java.lang.Object ref = describe_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - describe_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string describe = 2; - * @param value The describe to set. - * @return This builder for chaining. - */ - public Builder setDescribe( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - describe_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string describe = 2; - * @return This builder for chaining. - */ - public Builder clearDescribe() { - describe_ = getDefaultInstance().getDescribe(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string describe = 2; - * @param value The bytes for describe to set. - * @return This builder for chaining. - */ - public Builder setDescribeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - describe_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean notify_ ; - /** - * bool notify = 3; - * @return The notify. - */ - @java.lang.Override - public boolean getNotify() { - return notify_; - } - /** - * bool notify = 3; - * @param value The notify to set. - * @return This builder for chaining. - */ - public Builder setNotify(boolean value) { - - notify_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool notify = 3; - * @return This builder for chaining. - */ - public Builder clearNotify() { - bitField0_ = (bitField0_ & ~0x00000004); - notify_ = false; - onChanged(); - return this; - } - - private long duration_ ; - /** - * uint64 duration = 4; - * @return The duration. - */ - @java.lang.Override - public long getDuration() { - return duration_; - } - /** - * uint64 duration = 4; - * @param value The duration to set. - * @return This builder for chaining. - */ - public Builder setDuration(long value) { - - duration_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 duration = 4; - * @return This builder for chaining. - */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00000008); - duration_ = 0L; - onChanged(); - return this; - } - - private long id_ ; - /** - * uint64 id = 5; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - /** - * uint64 id = 5; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(long value) { - - id_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 id = 5; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000010); - id_ = 0L; - onChanged(); - return this; - } - - private boolean forLinkmic_ ; - /** - *
-       * GiftStructFansClubInfo fansclubInfo = 6;
-       * 
- * - * bool for_linkmic = 7; - * @return The forLinkmic. - */ - @java.lang.Override - public boolean getForLinkmic() { - return forLinkmic_; - } - /** - *
-       * GiftStructFansClubInfo fansclubInfo = 6;
-       * 
- * - * bool for_linkmic = 7; - * @param value The forLinkmic to set. - * @return This builder for chaining. - */ - public Builder setForLinkmic(boolean value) { - - forLinkmic_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-       * GiftStructFansClubInfo fansclubInfo = 6;
-       * 
- * - * bool for_linkmic = 7; - * @return This builder for chaining. - */ - public Builder clearForLinkmic() { - bitField0_ = (bitField0_ & ~0x00000020); - forLinkmic_ = false; - onChanged(); - return this; - } - - private boolean doodle_ ; - /** - * bool doodle = 8; - * @return The doodle. - */ - @java.lang.Override - public boolean getDoodle() { - return doodle_; - } - /** - * bool doodle = 8; - * @param value The doodle to set. - * @return This builder for chaining. - */ - public Builder setDoodle(boolean value) { - - doodle_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * bool doodle = 8; - * @return This builder for chaining. - */ - public Builder clearDoodle() { - bitField0_ = (bitField0_ & ~0x00000040); - doodle_ = false; - onChanged(); - return this; - } - - private boolean forFansclub_ ; - /** - * bool for_fansclub = 9; - * @return The forFansclub. - */ - @java.lang.Override - public boolean getForFansclub() { - return forFansclub_; - } - /** - * bool for_fansclub = 9; - * @param value The forFansclub to set. - * @return This builder for chaining. - */ - public Builder setForFansclub(boolean value) { - - forFansclub_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * bool for_fansclub = 9; - * @return This builder for chaining. - */ - public Builder clearForFansclub() { - bitField0_ = (bitField0_ & ~0x00000080); - forFansclub_ = false; - onChanged(); - return this; - } - - private boolean combo_ ; - /** - * bool combo = 10; - * @return The combo. - */ - @java.lang.Override - public boolean getCombo() { - return combo_; - } - /** - * bool combo = 10; - * @param value The combo to set. - * @return This builder for chaining. - */ - public Builder setCombo(boolean value) { - - combo_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * bool combo = 10; - * @return This builder for chaining. - */ - public Builder clearCombo() { - bitField0_ = (bitField0_ & ~0x00000100); - combo_ = false; - onChanged(); - return this; - } - - private int type_ ; - /** - * uint32 type = 11; - * @return The type. - */ - @java.lang.Override - public int getType() { - return type_; - } - /** - * uint32 type = 11; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(int value) { - - type_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * uint32 type = 11; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000200); - type_ = 0; - onChanged(); - return this; - } - - private int diamondCount_ ; - /** - * uint32 diamond_count = 12; - * @return The diamondCount. - */ - @java.lang.Override - public int getDiamondCount() { - return diamondCount_; - } - /** - * uint32 diamond_count = 12; - * @param value The diamondCount to set. - * @return This builder for chaining. - */ - public Builder setDiamondCount(int value) { - - diamondCount_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * uint32 diamond_count = 12; - * @return This builder for chaining. - */ - public Builder clearDiamondCount() { - bitField0_ = (bitField0_ & ~0x00000400); - diamondCount_ = 0; - onChanged(); - return this; - } - - private boolean isDisplayedOnPanel_ ; - /** - * bool is_displayed_on_panel = 13; - * @return The isDisplayedOnPanel. - */ - @java.lang.Override - public boolean getIsDisplayedOnPanel() { - return isDisplayedOnPanel_; - } - /** - * bool is_displayed_on_panel = 13; - * @param value The isDisplayedOnPanel to set. - * @return This builder for chaining. - */ - public Builder setIsDisplayedOnPanel(boolean value) { - - isDisplayedOnPanel_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * bool is_displayed_on_panel = 13; - * @return This builder for chaining. - */ - public Builder clearIsDisplayedOnPanel() { - bitField0_ = (bitField0_ & ~0x00000800); - isDisplayedOnPanel_ = false; - onChanged(); - return this; - } - - private long primaryEffectId_ ; - /** - * uint64 primary_effect_id = 14; - * @return The primaryEffectId. - */ - @java.lang.Override - public long getPrimaryEffectId() { - return primaryEffectId_; - } - /** - * uint64 primary_effect_id = 14; - * @param value The primaryEffectId to set. - * @return This builder for chaining. - */ - public Builder setPrimaryEffectId(long value) { - - primaryEffectId_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * uint64 primary_effect_id = 14; - * @return This builder for chaining. - */ - public Builder clearPrimaryEffectId() { - bitField0_ = (bitField0_ & ~0x00001000); - primaryEffectId_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image giftLabelIcon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> giftLabelIconBuilder_; - /** - * .Image gift_label_icon = 15; - * @return Whether the giftLabelIcon field is set. - */ - public boolean hasGiftLabelIcon() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - * .Image gift_label_icon = 15; - * @return The giftLabelIcon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getGiftLabelIcon() { - if (giftLabelIconBuilder_ == null) { - return giftLabelIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftLabelIcon_; - } else { - return giftLabelIconBuilder_.getMessage(); - } - } - /** - * .Image gift_label_icon = 15; - */ - public Builder setGiftLabelIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (giftLabelIconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - giftLabelIcon_ = value; - } else { - giftLabelIconBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .Image gift_label_icon = 15; - */ - public Builder setGiftLabelIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (giftLabelIconBuilder_ == null) { - giftLabelIcon_ = builderForValue.build(); - } else { - giftLabelIconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .Image gift_label_icon = 15; - */ - public Builder mergeGiftLabelIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (giftLabelIconBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - giftLabelIcon_ != null && - giftLabelIcon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getGiftLabelIconBuilder().mergeFrom(value); - } else { - giftLabelIcon_ = value; - } - } else { - giftLabelIconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .Image gift_label_icon = 15; - */ - public Builder clearGiftLabelIcon() { - bitField0_ = (bitField0_ & ~0x00002000); - giftLabelIcon_ = null; - if (giftLabelIconBuilder_ != null) { - giftLabelIconBuilder_.dispose(); - giftLabelIconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image gift_label_icon = 15; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getGiftLabelIconBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return getGiftLabelIconFieldBuilder().getBuilder(); - } - /** - * .Image gift_label_icon = 15; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getGiftLabelIconOrBuilder() { - if (giftLabelIconBuilder_ != null) { - return giftLabelIconBuilder_.getMessageOrBuilder(); - } else { - return giftLabelIcon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : giftLabelIcon_; - } - } - /** - * .Image gift_label_icon = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getGiftLabelIconFieldBuilder() { - if (giftLabelIconBuilder_ == null) { - giftLabelIconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getGiftLabelIcon(), - getParentForChildren(), - isClean()); - giftLabelIcon_ = null; - } - return giftLabelIconBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * string name = 16; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 16; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 16; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * string name = 16; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - * string name = 16; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - - private java.lang.Object region_ = ""; - /** - * string region = 17; - * @return The region. - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string region = 17; - * @return The bytes for region. - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string region = 17; - * @param value The region to set. - * @return This builder for chaining. - */ - public Builder setRegion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - region_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * string region = 17; - * @return This builder for chaining. - */ - public Builder clearRegion() { - region_ = getDefaultInstance().getRegion(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * string region = 17; - * @param value The bytes for region to set. - * @return This builder for chaining. - */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - region_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private java.lang.Object manual_ = ""; - /** - * string manual = 18; - * @return The manual. - */ - public java.lang.String getManual() { - java.lang.Object ref = manual_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - manual_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string manual = 18; - * @return The bytes for manual. - */ - public com.google.protobuf.ByteString - getManualBytes() { - java.lang.Object ref = manual_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - manual_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string manual = 18; - * @param value The manual to set. - * @return This builder for chaining. - */ - public Builder setManual( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - manual_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * string manual = 18; - * @return This builder for chaining. - */ - public Builder clearManual() { - manual_ = getDefaultInstance().getManual(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; - } - /** - * string manual = 18; - * @param value The bytes for manual to set. - * @return This builder for chaining. - */ - public Builder setManualBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - manual_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - - private boolean forCustom_ ; - /** - * bool for_custom = 19; - * @return The forCustom. - */ - @java.lang.Override - public boolean getForCustom() { - return forCustom_; - } - /** - * bool for_custom = 19; - * @param value The forCustom to set. - * @return This builder for chaining. - */ - public Builder setForCustom(boolean value) { - - forCustom_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * bool for_custom = 19; - * @return This builder for chaining. - */ - public Builder clearForCustom() { - bitField0_ = (bitField0_ & ~0x00020000); - forCustom_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> specialEffectsMap_; - private com.google.protobuf.MapField - internalGetSpecialEffectsMap() { - if (specialEffectsMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SpecialEffectsMapDefaultEntryHolder.defaultEntry); - } - return specialEffectsMap_; - } - private com.google.protobuf.MapField - internalGetMutableSpecialEffectsMap() { - if (specialEffectsMap_ == null) { - specialEffectsMap_ = com.google.protobuf.MapField.newMapField( - SpecialEffectsMapDefaultEntryHolder.defaultEntry); - } - if (!specialEffectsMap_.isMutable()) { - specialEffectsMap_ = specialEffectsMap_.copy(); - } - bitField0_ |= 0x00040000; - onChanged(); - return specialEffectsMap_; - } - public int getSpecialEffectsMapCount() { - return internalGetSpecialEffectsMap().getMap().size(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public boolean containsSpecialEffectsMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetSpecialEffectsMap().getMap().containsKey(key); - } - /** - * Use {@link #getSpecialEffectsMapMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getSpecialEffectsMap() { - return getSpecialEffectsMapMap(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public java.util.Map getSpecialEffectsMapMap() { - return internalGetSpecialEffectsMap().getMap(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public long getSpecialEffectsMapOrDefault( - java.lang.String key, - long defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialEffectsMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - @java.lang.Override - public long getSpecialEffectsMapOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSpecialEffectsMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearSpecialEffectsMap() { - bitField0_ = (bitField0_ & ~0x00040000); - internalGetMutableSpecialEffectsMap().getMutableMap() - .clear(); - return this; - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - public Builder removeSpecialEffectsMap( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableSpecialEffectsMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableSpecialEffectsMap() { - bitField0_ |= 0x00040000; - return internalGetMutableSpecialEffectsMap().getMutableMap(); - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - public Builder putSpecialEffectsMap( - java.lang.String key, - long value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableSpecialEffectsMap().getMutableMap() - .put(key, value); - bitField0_ |= 0x00040000; - return this; - } - /** - * map<string, int64> specialEffectsMap = 20; - */ - public Builder putAllSpecialEffectsMap( - java.util.Map values) { - internalGetMutableSpecialEffectsMap().getMutableMap() - .putAll(values); - bitField0_ |= 0x00040000; - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image icon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> iconBuilder_; - /** - * .Image icon = 21; - * @return Whether the icon field is set. - */ - public boolean hasIcon() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * .Image icon = 21; - * @return The icon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon() { - if (iconBuilder_ == null) { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } else { - return iconBuilder_.getMessage(); - } - } - /** - * .Image icon = 21; - */ - public Builder setIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (iconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - icon_ = value; - } else { - iconBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image icon = 21; - */ - public Builder setIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (iconBuilder_ == null) { - icon_ = builderForValue.build(); - } else { - iconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image icon = 21; - */ - public Builder mergeIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (iconBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) && - icon_ != null && - icon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getIconBuilder().mergeFrom(value); - } else { - icon_ = value; - } - } else { - iconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image icon = 21; - */ - public Builder clearIcon() { - bitField0_ = (bitField0_ & ~0x00080000); - icon_ = null; - if (iconBuilder_ != null) { - iconBuilder_.dispose(); - iconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image icon = 21; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getIconBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getIconFieldBuilder().getBuilder(); - } - /** - * .Image icon = 21; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder() { - if (iconBuilder_ != null) { - return iconBuilder_.getMessageOrBuilder(); - } else { - return icon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - } - /** - * .Image icon = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getIconFieldBuilder() { - if (iconBuilder_ == null) { - iconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getIcon(), - getParentForChildren(), - isClean()); - icon_ = null; - } - return iconBuilder_; - } - - private int actionType_ ; - /** - * uint32 action_type = 22; - * @return The actionType. - */ - @java.lang.Override - public int getActionType() { - return actionType_; - } - /** - * uint32 action_type = 22; - * @param value The actionType to set. - * @return This builder for chaining. - */ - public Builder setActionType(int value) { - - actionType_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * uint32 action_type = 22; - * @return This builder for chaining. - */ - public Builder clearActionType() { - bitField0_ = (bitField0_ & ~0x00100000); - actionType_ = 0; - onChanged(); - return this; - } - - private int watermelonSeeds_ ; - /** - * int32 watermelonSeeds = 23; - * @return The watermelonSeeds. - */ - @java.lang.Override - public int getWatermelonSeeds() { - return watermelonSeeds_; - } - /** - * int32 watermelonSeeds = 23; - * @param value The watermelonSeeds to set. - * @return This builder for chaining. - */ - public Builder setWatermelonSeeds(int value) { - - watermelonSeeds_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * int32 watermelonSeeds = 23; - * @return This builder for chaining. - */ - public Builder clearWatermelonSeeds() { - bitField0_ = (bitField0_ & ~0x00200000); - watermelonSeeds_ = 0; - onChanged(); - return this; - } - - private java.lang.Object goldEffect_ = ""; - /** - * string goldEffect = 24; - * @return The goldEffect. - */ - public java.lang.String getGoldEffect() { - java.lang.Object ref = goldEffect_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - goldEffect_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string goldEffect = 24; - * @return The bytes for goldEffect. - */ - public com.google.protobuf.ByteString - getGoldEffectBytes() { - java.lang.Object ref = goldEffect_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - goldEffect_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string goldEffect = 24; - * @param value The goldEffect to set. - * @return This builder for chaining. - */ - public Builder setGoldEffect( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - goldEffect_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * string goldEffect = 24; - * @return This builder for chaining. - */ - public Builder clearGoldEffect() { - goldEffect_ = getDefaultInstance().getGoldEffect(); - bitField0_ = (bitField0_ & ~0x00400000); - onChanged(); - return this; - } - /** - * string goldEffect = 24; - * @param value The bytes for goldEffect to set. - * @return This builder for chaining. - */ - public Builder setGoldEffectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - goldEffect_ = value; - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - - private long goldenBeans_ ; - /** - *
-       * repeated LuckyMoneyGiftMeta subs = 25;
-       * 
- * - * int64 goldenBeans = 26; - * @return The goldenBeans. - */ - @java.lang.Override - public long getGoldenBeans() { - return goldenBeans_; - } - /** - *
-       * repeated LuckyMoneyGiftMeta subs = 25;
-       * 
- * - * int64 goldenBeans = 26; - * @param value The goldenBeans to set. - * @return This builder for chaining. - */ - public Builder setGoldenBeans(long value) { - - goldenBeans_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - *
-       * repeated LuckyMoneyGiftMeta subs = 25;
-       * 
- * - * int64 goldenBeans = 26; - * @return This builder for chaining. - */ - public Builder clearGoldenBeans() { - bitField0_ = (bitField0_ & ~0x00800000); - goldenBeans_ = 0L; - onChanged(); - return this; - } - - private long honorLevel_ ; - /** - * int64 honorLevel = 27; - * @return The honorLevel. - */ - @java.lang.Override - public long getHonorLevel() { - return honorLevel_; - } - /** - * int64 honorLevel = 27; - * @param value The honorLevel to set. - * @return This builder for chaining. - */ - public Builder setHonorLevel(long value) { - - honorLevel_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * int64 honorLevel = 27; - * @return This builder for chaining. - */ - public Builder clearHonorLevel() { - bitField0_ = (bitField0_ & ~0x01000000); - honorLevel_ = 0L; - onChanged(); - return this; - } - - private int itemType_ ; - /** - * int32 itemType = 28; - * @return The itemType. - */ - @java.lang.Override - public int getItemType() { - return itemType_; - } - /** - * int32 itemType = 28; - * @param value The itemType to set. - * @return This builder for chaining. - */ - public Builder setItemType(int value) { - - itemType_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * int32 itemType = 28; - * @return This builder for chaining. - */ - public Builder clearItemType() { - bitField0_ = (bitField0_ & ~0x02000000); - itemType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object schemeUrl_ = ""; - /** - * string schemeUrl = 29; - * @return The schemeUrl. - */ - public java.lang.String getSchemeUrl() { - java.lang.Object ref = schemeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string schemeUrl = 29; - * @return The bytes for schemeUrl. - */ - public com.google.protobuf.ByteString - getSchemeUrlBytes() { - java.lang.Object ref = schemeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string schemeUrl = 29; - * @param value The schemeUrl to set. - * @return This builder for chaining. - */ - public Builder setSchemeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - schemeUrl_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * string schemeUrl = 29; - * @return This builder for chaining. - */ - public Builder clearSchemeUrl() { - schemeUrl_ = getDefaultInstance().getSchemeUrl(); - bitField0_ = (bitField0_ & ~0x04000000); - onChanged(); - return this; - } - /** - * string schemeUrl = 29; - * @param value The bytes for schemeUrl to set. - * @return This builder for chaining. - */ - public Builder setSchemeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - schemeUrl_ = value; - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - - private java.lang.Object eventName_ = ""; - /** - *
-       * GiftPanelOperation giftOperation = 30;
-       * 
- * - * string eventName = 31; - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * GiftPanelOperation giftOperation = 30;
-       * 
- * - * string eventName = 31; - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * GiftPanelOperation giftOperation = 30;
-       * 
- * - * string eventName = 31; - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - eventName_ = value; - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - *
-       * GiftPanelOperation giftOperation = 30;
-       * 
- * - * string eventName = 31; - * @return This builder for chaining. - */ - public Builder clearEventName() { - eventName_ = getDefaultInstance().getEventName(); - bitField0_ = (bitField0_ & ~0x08000000); - onChanged(); - return this; - } - /** - *
-       * GiftPanelOperation giftOperation = 30;
-       * 
- * - * string eventName = 31; - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - eventName_ = value; - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - - private long nobleLevel_ ; - /** - * int64 nobleLevel = 32; - * @return The nobleLevel. - */ - @java.lang.Override - public long getNobleLevel() { - return nobleLevel_; - } - /** - * int64 nobleLevel = 32; - * @param value The nobleLevel to set. - * @return This builder for chaining. - */ - public Builder setNobleLevel(long value) { - - nobleLevel_ = value; - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - /** - * int64 nobleLevel = 32; - * @return This builder for chaining. - */ - public Builder clearNobleLevel() { - bitField0_ = (bitField0_ & ~0x10000000); - nobleLevel_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object guideUrl_ = ""; - /** - * string guideUrl = 33; - * @return The guideUrl. - */ - public java.lang.String getGuideUrl() { - java.lang.Object ref = guideUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - guideUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string guideUrl = 33; - * @return The bytes for guideUrl. - */ - public com.google.protobuf.ByteString - getGuideUrlBytes() { - java.lang.Object ref = guideUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - guideUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string guideUrl = 33; - * @param value The guideUrl to set. - * @return This builder for chaining. - */ - public Builder setGuideUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - guideUrl_ = value; - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - /** - * string guideUrl = 33; - * @return This builder for chaining. - */ - public Builder clearGuideUrl() { - guideUrl_ = getDefaultInstance().getGuideUrl(); - bitField0_ = (bitField0_ & ~0x20000000); - onChanged(); - return this; - } - /** - * string guideUrl = 33; - * @param value The bytes for guideUrl to set. - * @return This builder for chaining. - */ - public Builder setGuideUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - guideUrl_ = value; - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - - private boolean punishMedicine_ ; - /** - * bool punishMedicine = 34; - * @return The punishMedicine. - */ - @java.lang.Override - public boolean getPunishMedicine() { - return punishMedicine_; - } - /** - * bool punishMedicine = 34; - * @param value The punishMedicine to set. - * @return This builder for chaining. - */ - public Builder setPunishMedicine(boolean value) { - - punishMedicine_ = value; - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * bool punishMedicine = 34; - * @return This builder for chaining. - */ - public Builder clearPunishMedicine() { - bitField0_ = (bitField0_ & ~0x40000000); - punishMedicine_ = false; - onChanged(); - return this; - } - - private boolean forPortal_ ; - /** - * bool forPortal = 35; - * @return The forPortal. - */ - @java.lang.Override - public boolean getForPortal() { - return forPortal_; - } - /** - * bool forPortal = 35; - * @param value The forPortal to set. - * @return This builder for chaining. - */ - public Builder setForPortal(boolean value) { - - forPortal_ = value; - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * bool forPortal = 35; - * @return This builder for chaining. - */ - public Builder clearForPortal() { - bitField0_ = (bitField0_ & ~0x80000000); - forPortal_ = false; - onChanged(); - return this; - } - - private java.lang.Object businessText_ = ""; - /** - * string businessText = 36; - * @return The businessText. - */ - public java.lang.String getBusinessText() { - java.lang.Object ref = businessText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - businessText_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string businessText = 36; - * @return The bytes for businessText. - */ - public com.google.protobuf.ByteString - getBusinessTextBytes() { - java.lang.Object ref = businessText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - businessText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string businessText = 36; - * @param value The businessText to set. - * @return This builder for chaining. - */ - public Builder setBusinessText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - businessText_ = value; - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string businessText = 36; - * @return This builder for chaining. - */ - public Builder clearBusinessText() { - businessText_ = getDefaultInstance().getBusinessText(); - bitField1_ = (bitField1_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string businessText = 36; - * @param value The bytes for businessText to set. - * @return This builder for chaining. - */ - public Builder setBusinessTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - businessText_ = value; - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean cnyGift_ ; - /** - * bool cnyGift = 37; - * @return The cnyGift. - */ - @java.lang.Override - public boolean getCnyGift() { - return cnyGift_; - } - /** - * bool cnyGift = 37; - * @param value The cnyGift to set. - * @return This builder for chaining. - */ - public Builder setCnyGift(boolean value) { - - cnyGift_ = value; - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool cnyGift = 37; - * @return This builder for chaining. - */ - public Builder clearCnyGift() { - bitField1_ = (bitField1_ & ~0x00000002); - cnyGift_ = false; - onChanged(); - return this; - } - - private long appId_ ; - /** - * int64 appId = 38; - * @return The appId. - */ - @java.lang.Override - public long getAppId() { - return appId_; - } - /** - * int64 appId = 38; - * @param value The appId to set. - * @return This builder for chaining. - */ - public Builder setAppId(long value) { - - appId_ = value; - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 appId = 38; - * @return This builder for chaining. - */ - public Builder clearAppId() { - bitField1_ = (bitField1_ & ~0x00000004); - appId_ = 0L; - onChanged(); - return this; - } - - private long vipLevel_ ; - /** - * int64 vipLevel = 39; - * @return The vipLevel. - */ - @java.lang.Override - public long getVipLevel() { - return vipLevel_; - } - /** - * int64 vipLevel = 39; - * @param value The vipLevel to set. - * @return This builder for chaining. - */ - public Builder setVipLevel(long value) { - - vipLevel_ = value; - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int64 vipLevel = 39; - * @return This builder for chaining. - */ - public Builder clearVipLevel() { - bitField1_ = (bitField1_ & ~0x00000008); - vipLevel_ = 0L; - onChanged(); - return this; - } - - private boolean isGray_ ; - /** - * bool isGray = 40; - * @return The isGray. - */ - @java.lang.Override - public boolean getIsGray() { - return isGray_; - } - /** - * bool isGray = 40; - * @param value The isGray to set. - * @return This builder for chaining. - */ - public Builder setIsGray(boolean value) { - - isGray_ = value; - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * bool isGray = 40; - * @return This builder for chaining. - */ - public Builder clearIsGray() { - bitField1_ = (bitField1_ & ~0x00000010); - isGray_ = false; - onChanged(); - return this; - } - - private java.lang.Object graySchemeUrl_ = ""; - /** - * string graySchemeUrl = 41; - * @return The graySchemeUrl. - */ - public java.lang.String getGraySchemeUrl() { - java.lang.Object ref = graySchemeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - graySchemeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string graySchemeUrl = 41; - * @return The bytes for graySchemeUrl. - */ - public com.google.protobuf.ByteString - getGraySchemeUrlBytes() { - java.lang.Object ref = graySchemeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graySchemeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string graySchemeUrl = 41; - * @param value The graySchemeUrl to set. - * @return This builder for chaining. - */ - public Builder setGraySchemeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - graySchemeUrl_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string graySchemeUrl = 41; - * @return This builder for chaining. - */ - public Builder clearGraySchemeUrl() { - graySchemeUrl_ = getDefaultInstance().getGraySchemeUrl(); - bitField1_ = (bitField1_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string graySchemeUrl = 41; - * @param value The bytes for graySchemeUrl to set. - * @return This builder for chaining. - */ - public Builder setGraySchemeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - graySchemeUrl_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - - private long giftScene_ ; - /** - * int64 giftScene = 42; - * @return The giftScene. - */ - @java.lang.Override - public long getGiftScene() { - return giftScene_; - } - /** - * int64 giftScene = 42; - * @param value The giftScene to set. - * @return This builder for chaining. - */ - public Builder setGiftScene(long value) { - - giftScene_ = value; - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int64 giftScene = 42; - * @return This builder for chaining. - */ - public Builder clearGiftScene() { - bitField1_ = (bitField1_ & ~0x00000040); - giftScene_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList triggerWords_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTriggerWordsIsMutable() { - if (!triggerWords_.isModifiable()) { - triggerWords_ = new com.google.protobuf.LazyStringArrayList(triggerWords_); - } - bitField1_ |= 0x00000080; - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @return A list containing the triggerWords. - */ - public com.google.protobuf.ProtocolStringList - getTriggerWordsList() { - triggerWords_.makeImmutable(); - return triggerWords_; - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @return The count of triggerWords. - */ - public int getTriggerWordsCount() { - return triggerWords_.size(); - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @param index The index of the element to return. - * @return The triggerWords at the given index. - */ - public java.lang.String getTriggerWords(int index) { - return triggerWords_.get(index); - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @param index The index of the value to return. - * @return The bytes of the triggerWords at the given index. - */ - public com.google.protobuf.ByteString - getTriggerWordsBytes(int index) { - return triggerWords_.getByteString(index); - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @param index The index to set the value at. - * @param value The triggerWords to set. - * @return This builder for chaining. - */ - public Builder setTriggerWords( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTriggerWordsIsMutable(); - triggerWords_.set(index, value); - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @param value The triggerWords to add. - * @return This builder for chaining. - */ - public Builder addTriggerWords( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureTriggerWordsIsMutable(); - triggerWords_.add(value); - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @param values The triggerWords to add. - * @return This builder for chaining. - */ - public Builder addAllTriggerWords( - java.lang.Iterable values) { - ensureTriggerWordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, triggerWords_); - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @return This builder for chaining. - */ - public Builder clearTriggerWords() { - triggerWords_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField1_ = (bitField1_ & ~0x00000080);; - onChanged(); - return this; - } - /** - *
-       * GiftBanner giftBanner = 43;
-       * 
- * - * repeated string triggerWords = 44; - * @param value The bytes of the triggerWords to add. - * @return This builder for chaining. - */ - public Builder addTriggerWordsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureTriggerWordsIsMutable(); - triggerWords_.add(value); - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - - private boolean forFirstRecharge_ ; - /** - *
-       * repeated GiftBuffInfo giftBuffInfos = 45;
-       * 
- * - * bool forFirstRecharge = 46; - * @return The forFirstRecharge. - */ - @java.lang.Override - public boolean getForFirstRecharge() { - return forFirstRecharge_; - } - /** - *
-       * repeated GiftBuffInfo giftBuffInfos = 45;
-       * 
- * - * bool forFirstRecharge = 46; - * @param value The forFirstRecharge to set. - * @return This builder for chaining. - */ - public Builder setForFirstRecharge(boolean value) { - - forFirstRecharge_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-       * repeated GiftBuffInfo giftBuffInfos = 45;
-       * 
- * - * bool forFirstRecharge = 46; - * @return This builder for chaining. - */ - public Builder clearForFirstRecharge() { - bitField1_ = (bitField1_ & ~0x00000100); - forFirstRecharge_ = false; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image dynamicImgForSelected_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> dynamicImgForSelectedBuilder_; - /** - * .Image dynamicImgForSelected = 47; - * @return Whether the dynamicImgForSelected field is set. - */ - public boolean hasDynamicImgForSelected() { - return ((bitField1_ & 0x00000200) != 0); - } - /** - * .Image dynamicImgForSelected = 47; - * @return The dynamicImgForSelected. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDynamicImgForSelected() { - if (dynamicImgForSelectedBuilder_ == null) { - return dynamicImgForSelected_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : dynamicImgForSelected_; - } else { - return dynamicImgForSelectedBuilder_.getMessage(); - } - } - /** - * .Image dynamicImgForSelected = 47; - */ - public Builder setDynamicImgForSelected(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (dynamicImgForSelectedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dynamicImgForSelected_ = value; - } else { - dynamicImgForSelectedBuilder_.setMessage(value); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .Image dynamicImgForSelected = 47; - */ - public Builder setDynamicImgForSelected( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (dynamicImgForSelectedBuilder_ == null) { - dynamicImgForSelected_ = builderForValue.build(); - } else { - dynamicImgForSelectedBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .Image dynamicImgForSelected = 47; - */ - public Builder mergeDynamicImgForSelected(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (dynamicImgForSelectedBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) && - dynamicImgForSelected_ != null && - dynamicImgForSelected_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getDynamicImgForSelectedBuilder().mergeFrom(value); - } else { - dynamicImgForSelected_ = value; - } - } else { - dynamicImgForSelectedBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .Image dynamicImgForSelected = 47; - */ - public Builder clearDynamicImgForSelected() { - bitField1_ = (bitField1_ & ~0x00000200); - dynamicImgForSelected_ = null; - if (dynamicImgForSelectedBuilder_ != null) { - dynamicImgForSelectedBuilder_.dispose(); - dynamicImgForSelectedBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image dynamicImgForSelected = 47; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getDynamicImgForSelectedBuilder() { - bitField1_ |= 0x00000200; - onChanged(); - return getDynamicImgForSelectedFieldBuilder().getBuilder(); - } - /** - * .Image dynamicImgForSelected = 47; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getDynamicImgForSelectedOrBuilder() { - if (dynamicImgForSelectedBuilder_ != null) { - return dynamicImgForSelectedBuilder_.getMessageOrBuilder(); - } else { - return dynamicImgForSelected_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : dynamicImgForSelected_; - } - } - /** - * .Image dynamicImgForSelected = 47; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getDynamicImgForSelectedFieldBuilder() { - if (dynamicImgForSelectedBuilder_ == null) { - dynamicImgForSelectedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getDynamicImgForSelected(), - getParentForChildren(), - isClean()); - dynamicImgForSelected_ = null; - } - return dynamicImgForSelectedBuilder_; - } - - private int afterSendAction_ ; - /** - * int32 afterSendAction = 48; - * @return The afterSendAction. - */ - @java.lang.Override - public int getAfterSendAction() { - return afterSendAction_; - } - /** - * int32 afterSendAction = 48; - * @param value The afterSendAction to set. - * @return This builder for chaining. - */ - public Builder setAfterSendAction(int value) { - - afterSendAction_ = value; - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - /** - * int32 afterSendAction = 48; - * @return This builder for chaining. - */ - public Builder clearAfterSendAction() { - bitField1_ = (bitField1_ & ~0x00000400); - afterSendAction_ = 0; - onChanged(); - return this; - } - - private long giftOfflineTime_ ; - /** - * int64 giftOfflineTime = 49; - * @return The giftOfflineTime. - */ - @java.lang.Override - public long getGiftOfflineTime() { - return giftOfflineTime_; - } - /** - * int64 giftOfflineTime = 49; - * @param value The giftOfflineTime to set. - * @return This builder for chaining. - */ - public Builder setGiftOfflineTime(long value) { - - giftOfflineTime_ = value; - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * int64 giftOfflineTime = 49; - * @return This builder for chaining. - */ - public Builder clearGiftOfflineTime() { - bitField1_ = (bitField1_ & ~0x00000800); - giftOfflineTime_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object topBarText_ = ""; - /** - * string topBarText = 50; - * @return The topBarText. - */ - public java.lang.String getTopBarText() { - java.lang.Object ref = topBarText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topBarText_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string topBarText = 50; - * @return The bytes for topBarText. - */ - public com.google.protobuf.ByteString - getTopBarTextBytes() { - java.lang.Object ref = topBarText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - topBarText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string topBarText = 50; - * @param value The topBarText to set. - * @return This builder for chaining. - */ - public Builder setTopBarText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - topBarText_ = value; - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - /** - * string topBarText = 50; - * @return This builder for chaining. - */ - public Builder clearTopBarText() { - topBarText_ = getDefaultInstance().getTopBarText(); - bitField1_ = (bitField1_ & ~0x00001000); - onChanged(); - return this; - } - /** - * string topBarText = 50; - * @param value The bytes for topBarText to set. - * @return This builder for chaining. - */ - public Builder setTopBarTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - topBarText_ = value; - bitField1_ |= 0x00001000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image topRightAvatar_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> topRightAvatarBuilder_; - /** - * .Image topRightAvatar = 51; - * @return Whether the topRightAvatar field is set. - */ - public boolean hasTopRightAvatar() { - return ((bitField1_ & 0x00002000) != 0); - } - /** - * .Image topRightAvatar = 51; - * @return The topRightAvatar. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getTopRightAvatar() { - if (topRightAvatarBuilder_ == null) { - return topRightAvatar_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : topRightAvatar_; - } else { - return topRightAvatarBuilder_.getMessage(); - } - } - /** - * .Image topRightAvatar = 51; - */ - public Builder setTopRightAvatar(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (topRightAvatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - topRightAvatar_ = value; - } else { - topRightAvatarBuilder_.setMessage(value); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .Image topRightAvatar = 51; - */ - public Builder setTopRightAvatar( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (topRightAvatarBuilder_ == null) { - topRightAvatar_ = builderForValue.build(); - } else { - topRightAvatarBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .Image topRightAvatar = 51; - */ - public Builder mergeTopRightAvatar(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (topRightAvatarBuilder_ == null) { - if (((bitField1_ & 0x00002000) != 0) && - topRightAvatar_ != null && - topRightAvatar_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getTopRightAvatarBuilder().mergeFrom(value); - } else { - topRightAvatar_ = value; - } - } else { - topRightAvatarBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .Image topRightAvatar = 51; - */ - public Builder clearTopRightAvatar() { - bitField1_ = (bitField1_ & ~0x00002000); - topRightAvatar_ = null; - if (topRightAvatarBuilder_ != null) { - topRightAvatarBuilder_.dispose(); - topRightAvatarBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image topRightAvatar = 51; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getTopRightAvatarBuilder() { - bitField1_ |= 0x00002000; - onChanged(); - return getTopRightAvatarFieldBuilder().getBuilder(); - } - /** - * .Image topRightAvatar = 51; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getTopRightAvatarOrBuilder() { - if (topRightAvatarBuilder_ != null) { - return topRightAvatarBuilder_.getMessageOrBuilder(); - } else { - return topRightAvatar_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : topRightAvatar_; - } - } - /** - * .Image topRightAvatar = 51; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getTopRightAvatarFieldBuilder() { - if (topRightAvatarBuilder_ == null) { - topRightAvatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getTopRightAvatar(), - getParentForChildren(), - isClean()); - topRightAvatar_ = null; - } - return topRightAvatarBuilder_; - } - - private java.lang.Object bannerSchemeUrl_ = ""; - /** - * string bannerSchemeUrl = 52; - * @return The bannerSchemeUrl. - */ - public java.lang.String getBannerSchemeUrl() { - java.lang.Object ref = bannerSchemeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bannerSchemeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string bannerSchemeUrl = 52; - * @return The bytes for bannerSchemeUrl. - */ - public com.google.protobuf.ByteString - getBannerSchemeUrlBytes() { - java.lang.Object ref = bannerSchemeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bannerSchemeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string bannerSchemeUrl = 52; - * @param value The bannerSchemeUrl to set. - * @return This builder for chaining. - */ - public Builder setBannerSchemeUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - bannerSchemeUrl_ = value; - bitField1_ |= 0x00004000; - onChanged(); - return this; - } - /** - * string bannerSchemeUrl = 52; - * @return This builder for chaining. - */ - public Builder clearBannerSchemeUrl() { - bannerSchemeUrl_ = getDefaultInstance().getBannerSchemeUrl(); - bitField1_ = (bitField1_ & ~0x00004000); - onChanged(); - return this; - } - /** - * string bannerSchemeUrl = 52; - * @param value The bytes for bannerSchemeUrl to set. - * @return This builder for chaining. - */ - public Builder setBannerSchemeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - bannerSchemeUrl_ = value; - bitField1_ |= 0x00004000; - onChanged(); - return this; - } - - private boolean isLocked_ ; - /** - * bool isLocked = 53; - * @return The isLocked. - */ - @java.lang.Override - public boolean getIsLocked() { - return isLocked_; - } - /** - * bool isLocked = 53; - * @param value The isLocked to set. - * @return This builder for chaining. - */ - public Builder setIsLocked(boolean value) { - - isLocked_ = value; - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * bool isLocked = 53; - * @return This builder for chaining. - */ - public Builder clearIsLocked() { - bitField1_ = (bitField1_ & ~0x00008000); - isLocked_ = false; - onChanged(); - return this; - } - - private long reqExtraType_ ; - /** - * int64 reqExtraType = 54; - * @return The reqExtraType. - */ - @java.lang.Override - public long getReqExtraType() { - return reqExtraType_; - } - /** - * int64 reqExtraType = 54; - * @param value The reqExtraType to set. - * @return This builder for chaining. - */ - public Builder setReqExtraType(long value) { - - reqExtraType_ = value; - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * int64 reqExtraType = 54; - * @return This builder for chaining. - */ - public Builder clearReqExtraType() { - bitField1_ = (bitField1_ & ~0x00010000); - reqExtraType_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.LongList assetIds_ = emptyLongList(); - private void ensureAssetIdsIsMutable() { - if (!((bitField1_ & 0x00020000) != 0)) { - assetIds_ = mutableCopy(assetIds_); - bitField1_ |= 0x00020000; - } - } - /** - * repeated int64 assetIds = 55; - * @return A list containing the assetIds. - */ - public java.util.List - getAssetIdsList() { - return ((bitField1_ & 0x00020000) != 0) ? - java.util.Collections.unmodifiableList(assetIds_) : assetIds_; - } - /** - * repeated int64 assetIds = 55; - * @return The count of assetIds. - */ - public int getAssetIdsCount() { - return assetIds_.size(); - } - /** - * repeated int64 assetIds = 55; - * @param index The index of the element to return. - * @return The assetIds at the given index. - */ - public long getAssetIds(int index) { - return assetIds_.getLong(index); - } - /** - * repeated int64 assetIds = 55; - * @param index The index to set the value at. - * @param value The assetIds to set. - * @return This builder for chaining. - */ - public Builder setAssetIds( - int index, long value) { - - ensureAssetIdsIsMutable(); - assetIds_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 assetIds = 55; - * @param value The assetIds to add. - * @return This builder for chaining. - */ - public Builder addAssetIds(long value) { - - ensureAssetIdsIsMutable(); - assetIds_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 assetIds = 55; - * @param values The assetIds to add. - * @return This builder for chaining. - */ - public Builder addAllAssetIds( - java.lang.Iterable values) { - ensureAssetIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, assetIds_); - onChanged(); - return this; - } - /** - * repeated int64 assetIds = 55; - * @return This builder for chaining. - */ - public Builder clearAssetIds() { - assetIds_ = emptyLongList(); - bitField1_ = (bitField1_ & ~0x00020000); - onChanged(); - return this; - } - - private int needSweepLightCount_ ; - /** - *
-       * GiftPreviewInfo giftPreviewInfo = 56;
-       * GiftTip giftTip = 57;
-       * 
- * - * int32 needSweepLightCount = 58; - * @return The needSweepLightCount. - */ - @java.lang.Override - public int getNeedSweepLightCount() { - return needSweepLightCount_; - } - /** - *
-       * GiftPreviewInfo giftPreviewInfo = 56;
-       * GiftTip giftTip = 57;
-       * 
- * - * int32 needSweepLightCount = 58; - * @param value The needSweepLightCount to set. - * @return This builder for chaining. - */ - public Builder setNeedSweepLightCount(int value) { - - needSweepLightCount_ = value; - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - *
-       * GiftPreviewInfo giftPreviewInfo = 56;
-       * GiftTip giftTip = 57;
-       * 
- * - * int32 needSweepLightCount = 58; - * @return This builder for chaining. - */ - public Builder clearNeedSweepLightCount() { - bitField1_ = (bitField1_ & ~0x00040000); - needSweepLightCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GiftStruct) - } - - // @@protoc_insertion_point(class_scope:GiftStruct) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GiftStruct parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.GiftStructOuterClass.GiftStruct getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GiftStruct_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GiftStruct_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GiftStruct_SpecialEffectsMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GiftStruct_SpecialEffectsMapEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020GiftStruct.proto\032\013Image.proto\"\241\t\n\nGift" + - "Struct\022\025\n\005image\030\001 \001(\0132\006.Image\022\020\n\010describ" + - "e\030\002 \001(\t\022\016\n\006notify\030\003 \001(\010\022\020\n\010duration\030\004 \001(" + - "\004\022\n\n\002id\030\005 \001(\004\022\023\n\013for_linkmic\030\007 \001(\010\022\016\n\006do" + - "odle\030\010 \001(\010\022\024\n\014for_fansclub\030\t \001(\010\022\r\n\005comb" + - "o\030\n \001(\010\022\014\n\004type\030\013 \001(\r\022\025\n\rdiamond_count\030\014" + - " \001(\r\022\035\n\025is_displayed_on_panel\030\r \001(\010\022\031\n\021p" + - "rimary_effect_id\030\016 \001(\004\022\037\n\017gift_label_ico" + - "n\030\017 \001(\0132\006.Image\022\014\n\004name\030\020 \001(\t\022\016\n\006region\030" + - "\021 \001(\t\022\016\n\006manual\030\022 \001(\t\022\022\n\nfor_custom\030\023 \001(" + - "\010\022=\n\021specialEffectsMap\030\024 \003(\0132\".GiftStruc" + - "t.SpecialEffectsMapEntry\022\024\n\004icon\030\025 \001(\0132\006" + - ".Image\022\023\n\013action_type\030\026 \001(\r\022\027\n\017watermelo" + - "nSeeds\030\027 \001(\005\022\022\n\ngoldEffect\030\030 \001(\t\022\023\n\013gold" + - "enBeans\030\032 \001(\003\022\022\n\nhonorLevel\030\033 \001(\003\022\020\n\010ite" + - "mType\030\034 \001(\005\022\021\n\tschemeUrl\030\035 \001(\t\022\021\n\teventN" + - "ame\030\037 \001(\t\022\022\n\nnobleLevel\030 \001(\003\022\020\n\010guideUr" + - "l\030! \001(\t\022\026\n\016punishMedicine\030\" \001(\010\022\021\n\tforPo" + - "rtal\030# \001(\010\022\024\n\014businessText\030$ \001(\t\022\017\n\007cnyG" + - "ift\030% \001(\010\022\r\n\005appId\030& \001(\003\022\020\n\010vipLevel\030\' \001" + - "(\003\022\016\n\006isGray\030( \001(\010\022\025\n\rgraySchemeUrl\030) \001(" + - "\t\022\021\n\tgiftScene\030* \001(\003\022\024\n\014triggerWords\030, \003" + - "(\t\022\030\n\020forFirstRecharge\030. \001(\010\022%\n\025dynamicI" + - "mgForSelected\030/ \001(\0132\006.Image\022\027\n\017afterSend" + - "Action\0300 \001(\005\022\027\n\017giftOfflineTime\0301 \001(\003\022\022\n" + - "\ntopBarText\0302 \001(\t\022\036\n\016topRightAvatar\0303 \001(" + - "\0132\006.Image\022\027\n\017bannerSchemeUrl\0304 \001(\t\022\020\n\010is" + - "Locked\0305 \001(\010\022\024\n\014reqExtraType\0306 \001(\003\022\020\n\010as" + - "setIds\0307 \003(\003\022\033\n\023needSweepLightCount\030: \001(" + - "\005\0328\n\026SpecialEffectsMapEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\003:\0028\001B8\n6tech.ordinaryroad" + - ".live.chat.client.douyin.protobuf.dtob\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - }); - internal_static_GiftStruct_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GiftStruct_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GiftStruct_descriptor, - new java.lang.String[] { "Image", "Describe", "Notify", "Duration", "Id", "ForLinkmic", "Doodle", "ForFansclub", "Combo", "Type", "DiamondCount", "IsDisplayedOnPanel", "PrimaryEffectId", "GiftLabelIcon", "Name", "Region", "Manual", "ForCustom", "SpecialEffectsMap", "Icon", "ActionType", "WatermelonSeeds", "GoldEffect", "GoldenBeans", "HonorLevel", "ItemType", "SchemeUrl", "EventName", "NobleLevel", "GuideUrl", "PunishMedicine", "ForPortal", "BusinessText", "CnyGift", "AppId", "VipLevel", "IsGray", "GraySchemeUrl", "GiftScene", "TriggerWords", "ForFirstRecharge", "DynamicImgForSelected", "AfterSendAction", "GiftOfflineTime", "TopBarText", "TopRightAvatar", "BannerSchemeUrl", "IsLocked", "ReqExtraType", "AssetIds", "NeedSweepLightCount", }); - internal_static_GiftStruct_SpecialEffectsMapEntry_descriptor = - internal_static_GiftStruct_descriptor.getNestedTypes().get(0); - internal_static_GiftStruct_SpecialEffectsMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GiftStruct_SpecialEffectsMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/ImageOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/ImageOuterClass.java deleted file mode 100644 index 4a30d6e7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/ImageOuterClass.java +++ /dev/null @@ -1,3722 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Image.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class ImageOuterClass { - private ImageOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ImageOrBuilder extends - // @@protoc_insertion_point(interface_extends:Image) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string urlListList = 1; - * @return A list containing the urlListList. - */ - java.util.List - getUrlListListList(); - /** - * repeated string urlListList = 1; - * @return The count of urlListList. - */ - int getUrlListListCount(); - /** - * repeated string urlListList = 1; - * @param index The index of the element to return. - * @return The urlListList at the given index. - */ - java.lang.String getUrlListList(int index); - /** - * repeated string urlListList = 1; - * @param index The index of the value to return. - * @return The bytes of the urlListList at the given index. - */ - com.google.protobuf.ByteString - getUrlListListBytes(int index); - - /** - * string uri = 2; - * @return The uri. - */ - java.lang.String getUri(); - /** - * string uri = 2; - * @return The bytes for uri. - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * int64 height = 3; - * @return The height. - */ - long getHeight(); - - /** - * int64 width = 4; - * @return The width. - */ - long getWidth(); - - /** - * string avgColor = 5; - * @return The avgColor. - */ - java.lang.String getAvgColor(); - /** - * string avgColor = 5; - * @return The bytes for avgColor. - */ - com.google.protobuf.ByteString - getAvgColorBytes(); - - /** - * int32 imageType = 6; - * @return The imageType. - */ - int getImageType(); - - /** - * string openWebUrl = 7; - * @return The openWebUrl. - */ - java.lang.String getOpenWebUrl(); - /** - * string openWebUrl = 7; - * @return The bytes for openWebUrl. - */ - com.google.protobuf.ByteString - getOpenWebUrlBytes(); - - /** - * .Image.Content content = 8; - * @return Whether the content field is set. - */ - boolean hasContent(); - /** - * .Image.Content content = 8; - * @return The content. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content getContent(); - /** - * .Image.Content content = 8; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder getContentOrBuilder(); - - /** - * bool isAnimated = 9; - * @return The isAnimated. - */ - boolean getIsAnimated(); - - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - java.util.List - getFlexSettingListListList(); - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getFlexSettingListList(int index); - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - int getFlexSettingListListCount(); - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - java.util.List - getFlexSettingListListOrBuilderList(); - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder getFlexSettingListListOrBuilder( - int index); - - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - java.util.List - getTextSettingListListList(); - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getTextSettingListList(int index); - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - int getTextSettingListListCount(); - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - java.util.List - getTextSettingListListOrBuilderList(); - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder getTextSettingListListOrBuilder( - int index); - } - /** - * Protobuf type {@code Image} - */ - public static final class Image extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Image) - ImageOrBuilder { - private static final long serialVersionUID = 0L; - // Use Image.newBuilder() to construct. - private Image(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Image() { - urlListList_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - uri_ = ""; - avgColor_ = ""; - openWebUrl_ = ""; - flexSettingListList_ = java.util.Collections.emptyList(); - textSettingListList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Image(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder.class); - } - - public interface ContentOrBuilder extends - // @@protoc_insertion_point(interface_extends:Image.Content) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string fontColor = 2; - * @return The fontColor. - */ - java.lang.String getFontColor(); - /** - * string fontColor = 2; - * @return The bytes for fontColor. - */ - com.google.protobuf.ByteString - getFontColorBytes(); - - /** - * int64 level = 3; - * @return The level. - */ - long getLevel(); - - /** - * string alternativeText = 4; - * @return The alternativeText. - */ - java.lang.String getAlternativeText(); - /** - * string alternativeText = 4; - * @return The bytes for alternativeText. - */ - com.google.protobuf.ByteString - getAlternativeTextBytes(); - } - /** - * Protobuf type {@code Image.Content} - */ - public static final class Content extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Image.Content) - ContentOrBuilder { - private static final long serialVersionUID = 0L; - // Use Content.newBuilder() to construct. - private Content(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Content() { - name_ = ""; - fontColor_ = ""; - alternativeText_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Content(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_Content_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_Content_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FONTCOLOR_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object fontColor_ = ""; - /** - * string fontColor = 2; - * @return The fontColor. - */ - @java.lang.Override - public java.lang.String getFontColor() { - java.lang.Object ref = fontColor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fontColor_ = s; - return s; - } - } - /** - * string fontColor = 2; - * @return The bytes for fontColor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFontColorBytes() { - java.lang.Object ref = fontColor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fontColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEVEL_FIELD_NUMBER = 3; - private long level_ = 0L; - /** - * int64 level = 3; - * @return The level. - */ - @java.lang.Override - public long getLevel() { - return level_; - } - - public static final int ALTERNATIVETEXT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object alternativeText_ = ""; - /** - * string alternativeText = 4; - * @return The alternativeText. - */ - @java.lang.Override - public java.lang.String getAlternativeText() { - java.lang.Object ref = alternativeText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alternativeText_ = s; - return s; - } - } - /** - * string alternativeText = 4; - * @return The bytes for alternativeText. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAlternativeTextBytes() { - java.lang.Object ref = alternativeText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alternativeText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontColor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fontColor_); - } - if (level_ != 0L) { - output.writeInt64(3, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternativeText_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, alternativeText_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontColor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fontColor_); - } - if (level_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternativeText_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, alternativeText_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFontColor() - .equals(other.getFontColor())) return false; - if (getLevel() - != other.getLevel()) return false; - if (!getAlternativeText() - .equals(other.getAlternativeText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FONTCOLOR_FIELD_NUMBER; - hash = (53 * hash) + getFontColor().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLevel()); - hash = (37 * hash) + ALTERNATIVETEXT_FIELD_NUMBER; - hash = (53 * hash) + getAlternativeText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Image.Content} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Image.Content) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_Content_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_Content_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - fontColor_ = ""; - level_ = 0L; - alternativeText_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_Content_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.fontColor_ = fontColor_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.alternativeText_ = alternativeText_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFontColor().isEmpty()) { - fontColor_ = other.fontColor_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getLevel() != 0L) { - setLevel(other.getLevel()); - } - if (!other.getAlternativeText().isEmpty()) { - alternativeText_ = other.alternativeText_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - fontColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - level_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - alternativeText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object fontColor_ = ""; - /** - * string fontColor = 2; - * @return The fontColor. - */ - public java.lang.String getFontColor() { - java.lang.Object ref = fontColor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fontColor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string fontColor = 2; - * @return The bytes for fontColor. - */ - public com.google.protobuf.ByteString - getFontColorBytes() { - java.lang.Object ref = fontColor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fontColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string fontColor = 2; - * @param value The fontColor to set. - * @return This builder for chaining. - */ - public Builder setFontColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fontColor_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string fontColor = 2; - * @return This builder for chaining. - */ - public Builder clearFontColor() { - fontColor_ = getDefaultInstance().getFontColor(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string fontColor = 2; - * @param value The bytes for fontColor to set. - * @return This builder for chaining. - */ - public Builder setFontColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fontColor_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long level_ ; - /** - * int64 level = 3; - * @return The level. - */ - @java.lang.Override - public long getLevel() { - return level_; - } - /** - * int64 level = 3; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(long value) { - - level_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 level = 3; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000004); - level_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object alternativeText_ = ""; - /** - * string alternativeText = 4; - * @return The alternativeText. - */ - public java.lang.String getAlternativeText() { - java.lang.Object ref = alternativeText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alternativeText_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string alternativeText = 4; - * @return The bytes for alternativeText. - */ - public com.google.protobuf.ByteString - getAlternativeTextBytes() { - java.lang.Object ref = alternativeText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alternativeText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string alternativeText = 4; - * @param value The alternativeText to set. - * @return This builder for chaining. - */ - public Builder setAlternativeText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - alternativeText_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string alternativeText = 4; - * @return This builder for chaining. - */ - public Builder clearAlternativeText() { - alternativeText_ = getDefaultInstance().getAlternativeText(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string alternativeText = 4; - * @param value The bytes for alternativeText to set. - * @return This builder for chaining. - */ - public Builder setAlternativeTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - alternativeText_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Image.Content) - } - - // @@protoc_insertion_point(class_scope:Image.Content) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Content parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NinePatchSettingOrBuilder extends - // @@protoc_insertion_point(interface_extends:Image.NinePatchSetting) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code Image.NinePatchSetting} - */ - public static final class NinePatchSetting extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Image.NinePatchSetting) - NinePatchSettingOrBuilder { - private static final long serialVersionUID = 0L; - // Use NinePatchSetting.newBuilder() to construct. - private NinePatchSetting(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NinePatchSetting() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NinePatchSetting(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_NinePatchSetting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_NinePatchSetting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Image.NinePatchSetting} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Image.NinePatchSetting) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_NinePatchSetting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_NinePatchSetting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_NinePatchSetting_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Image.NinePatchSetting) - } - - // @@protoc_insertion_point(class_scope:Image.NinePatchSetting) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NinePatchSetting parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int URLLISTLIST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList urlListList_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string urlListList = 1; - * @return A list containing the urlListList. - */ - public com.google.protobuf.ProtocolStringList - getUrlListListList() { - return urlListList_; - } - /** - * repeated string urlListList = 1; - * @return The count of urlListList. - */ - public int getUrlListListCount() { - return urlListList_.size(); - } - /** - * repeated string urlListList = 1; - * @param index The index of the element to return. - * @return The urlListList at the given index. - */ - public java.lang.String getUrlListList(int index) { - return urlListList_.get(index); - } - /** - * repeated string urlListList = 1; - * @param index The index of the value to return. - * @return The bytes of the urlListList at the given index. - */ - public com.google.protobuf.ByteString - getUrlListListBytes(int index) { - return urlListList_.getByteString(index); - } - - public static final int URI_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; - /** - * string uri = 2; - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * string uri = 2; - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEIGHT_FIELD_NUMBER = 3; - private long height_ = 0L; - /** - * int64 height = 3; - * @return The height. - */ - @java.lang.Override - public long getHeight() { - return height_; - } - - public static final int WIDTH_FIELD_NUMBER = 4; - private long width_ = 0L; - /** - * int64 width = 4; - * @return The width. - */ - @java.lang.Override - public long getWidth() { - return width_; - } - - public static final int AVGCOLOR_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object avgColor_ = ""; - /** - * string avgColor = 5; - * @return The avgColor. - */ - @java.lang.Override - public java.lang.String getAvgColor() { - java.lang.Object ref = avgColor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - avgColor_ = s; - return s; - } - } - /** - * string avgColor = 5; - * @return The bytes for avgColor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAvgColorBytes() { - java.lang.Object ref = avgColor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - avgColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IMAGETYPE_FIELD_NUMBER = 6; - private int imageType_ = 0; - /** - * int32 imageType = 6; - * @return The imageType. - */ - @java.lang.Override - public int getImageType() { - return imageType_; - } - - public static final int OPENWEBURL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object openWebUrl_ = ""; - /** - * string openWebUrl = 7; - * @return The openWebUrl. - */ - @java.lang.Override - public java.lang.String getOpenWebUrl() { - java.lang.Object ref = openWebUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - openWebUrl_ = s; - return s; - } - } - /** - * string openWebUrl = 7; - * @return The bytes for openWebUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOpenWebUrlBytes() { - java.lang.Object ref = openWebUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - openWebUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTENT_FIELD_NUMBER = 8; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content content_; - /** - * .Image.Content content = 8; - * @return Whether the content field is set. - */ - @java.lang.Override - public boolean hasContent() { - return content_ != null; - } - /** - * .Image.Content content = 8; - * @return The content. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content getContent() { - return content_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance() : content_; - } - /** - * .Image.Content content = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder getContentOrBuilder() { - return content_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance() : content_; - } - - public static final int ISANIMATED_FIELD_NUMBER = 9; - private boolean isAnimated_ = false; - /** - * bool isAnimated = 9; - * @return The isAnimated. - */ - @java.lang.Override - public boolean getIsAnimated() { - return isAnimated_; - } - - public static final int FLEXSETTINGLISTLIST_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private java.util.List flexSettingListList_; - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - @java.lang.Override - public java.util.List getFlexSettingListListList() { - return flexSettingListList_; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - @java.lang.Override - public java.util.List - getFlexSettingListListOrBuilderList() { - return flexSettingListList_; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - @java.lang.Override - public int getFlexSettingListListCount() { - return flexSettingListList_.size(); - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getFlexSettingListList(int index) { - return flexSettingListList_.get(index); - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder getFlexSettingListListOrBuilder( - int index) { - return flexSettingListList_.get(index); - } - - public static final int TEXTSETTINGLISTLIST_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private java.util.List textSettingListList_; - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - @java.lang.Override - public java.util.List getTextSettingListListList() { - return textSettingListList_; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - @java.lang.Override - public java.util.List - getTextSettingListListOrBuilderList() { - return textSettingListList_; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - @java.lang.Override - public int getTextSettingListListCount() { - return textSettingListList_.size(); - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getTextSettingListList(int index) { - return textSettingListList_.get(index); - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder getTextSettingListListOrBuilder( - int index) { - return textSettingListList_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < urlListList_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, urlListList_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); - } - if (height_ != 0L) { - output.writeInt64(3, height_); - } - if (width_ != 0L) { - output.writeInt64(4, width_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avgColor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, avgColor_); - } - if (imageType_ != 0) { - output.writeInt32(6, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openWebUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, openWebUrl_); - } - if (content_ != null) { - output.writeMessage(8, getContent()); - } - if (isAnimated_ != false) { - output.writeBool(9, isAnimated_); - } - for (int i = 0; i < flexSettingListList_.size(); i++) { - output.writeMessage(10, flexSettingListList_.get(i)); - } - for (int i = 0; i < textSettingListList_.size(); i++) { - output.writeMessage(11, textSettingListList_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < urlListList_.size(); i++) { - dataSize += computeStringSizeNoTag(urlListList_.getRaw(i)); - } - size += dataSize; - size += 1 * getUrlListListList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); - } - if (height_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, height_); - } - if (width_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, width_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(avgColor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, avgColor_); - } - if (imageType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, imageType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(openWebUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, openWebUrl_); - } - if (content_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getContent()); - } - if (isAnimated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, isAnimated_); - } - for (int i = 0; i < flexSettingListList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, flexSettingListList_.get(i)); - } - for (int i = 0; i < textSettingListList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, textSettingListList_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image) obj; - - if (!getUrlListListList() - .equals(other.getUrlListListList())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (getHeight() - != other.getHeight()) return false; - if (getWidth() - != other.getWidth()) return false; - if (!getAvgColor() - .equals(other.getAvgColor())) return false; - if (getImageType() - != other.getImageType()) return false; - if (!getOpenWebUrl() - .equals(other.getOpenWebUrl())) return false; - if (hasContent() != other.hasContent()) return false; - if (hasContent()) { - if (!getContent() - .equals(other.getContent())) return false; - } - if (getIsAnimated() - != other.getIsAnimated()) return false; - if (!getFlexSettingListListList() - .equals(other.getFlexSettingListListList())) return false; - if (!getTextSettingListListList() - .equals(other.getTextSettingListListList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUrlListListCount() > 0) { - hash = (37 * hash) + URLLISTLIST_FIELD_NUMBER; - hash = (53 * hash) + getUrlListListList().hashCode(); - } - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeight()); - hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWidth()); - hash = (37 * hash) + AVGCOLOR_FIELD_NUMBER; - hash = (53 * hash) + getAvgColor().hashCode(); - hash = (37 * hash) + IMAGETYPE_FIELD_NUMBER; - hash = (53 * hash) + getImageType(); - hash = (37 * hash) + OPENWEBURL_FIELD_NUMBER; - hash = (53 * hash) + getOpenWebUrl().hashCode(); - if (hasContent()) { - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - } - hash = (37 * hash) + ISANIMATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAnimated()); - if (getFlexSettingListListCount() > 0) { - hash = (37 * hash) + FLEXSETTINGLISTLIST_FIELD_NUMBER; - hash = (53 * hash) + getFlexSettingListListList().hashCode(); - } - if (getTextSettingListListCount() > 0) { - hash = (37 * hash) + TEXTSETTINGLISTLIST_FIELD_NUMBER; - hash = (53 * hash) + getTextSettingListListList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Image} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Image) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - urlListList_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - uri_ = ""; - height_ = 0L; - width_ = 0L; - avgColor_ = ""; - imageType_ = 0; - openWebUrl_ = ""; - content_ = null; - if (contentBuilder_ != null) { - contentBuilder_.dispose(); - contentBuilder_ = null; - } - isAnimated_ = false; - if (flexSettingListListBuilder_ == null) { - flexSettingListList_ = java.util.Collections.emptyList(); - } else { - flexSettingListList_ = null; - flexSettingListListBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (textSettingListListBuilder_ == null) { - textSettingListList_ = java.util.Collections.emptyList(); - } else { - textSettingListList_ = null; - textSettingListListBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.internal_static_Image_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image result) { - if (flexSettingListListBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - flexSettingListList_ = java.util.Collections.unmodifiableList(flexSettingListList_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.flexSettingListList_ = flexSettingListList_; - } else { - result.flexSettingListList_ = flexSettingListListBuilder_.build(); - } - if (textSettingListListBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - textSettingListList_ = java.util.Collections.unmodifiableList(textSettingListList_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.textSettingListList_ = textSettingListList_; - } else { - result.textSettingListList_ = textSettingListListBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - urlListList_.makeImmutable(); - result.urlListList_ = urlListList_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.height_ = height_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.width_ = width_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.avgColor_ = avgColor_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.imageType_ = imageType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.openWebUrl_ = openWebUrl_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.content_ = contentBuilder_ == null - ? content_ - : contentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.isAnimated_ = isAnimated_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) return this; - if (!other.urlListList_.isEmpty()) { - if (urlListList_.isEmpty()) { - urlListList_ = other.urlListList_; - bitField0_ |= 0x00000001; - } else { - ensureUrlListListIsMutable(); - urlListList_.addAll(other.urlListList_); - } - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getHeight() != 0L) { - setHeight(other.getHeight()); - } - if (other.getWidth() != 0L) { - setWidth(other.getWidth()); - } - if (!other.getAvgColor().isEmpty()) { - avgColor_ = other.avgColor_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getImageType() != 0) { - setImageType(other.getImageType()); - } - if (!other.getOpenWebUrl().isEmpty()) { - openWebUrl_ = other.openWebUrl_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (other.hasContent()) { - mergeContent(other.getContent()); - } - if (other.getIsAnimated() != false) { - setIsAnimated(other.getIsAnimated()); - } - if (flexSettingListListBuilder_ == null) { - if (!other.flexSettingListList_.isEmpty()) { - if (flexSettingListList_.isEmpty()) { - flexSettingListList_ = other.flexSettingListList_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureFlexSettingListListIsMutable(); - flexSettingListList_.addAll(other.flexSettingListList_); - } - onChanged(); - } - } else { - if (!other.flexSettingListList_.isEmpty()) { - if (flexSettingListListBuilder_.isEmpty()) { - flexSettingListListBuilder_.dispose(); - flexSettingListListBuilder_ = null; - flexSettingListList_ = other.flexSettingListList_; - bitField0_ = (bitField0_ & ~0x00000200); - flexSettingListListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFlexSettingListListFieldBuilder() : null; - } else { - flexSettingListListBuilder_.addAllMessages(other.flexSettingListList_); - } - } - } - if (textSettingListListBuilder_ == null) { - if (!other.textSettingListList_.isEmpty()) { - if (textSettingListList_.isEmpty()) { - textSettingListList_ = other.textSettingListList_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureTextSettingListListIsMutable(); - textSettingListList_.addAll(other.textSettingListList_); - } - onChanged(); - } - } else { - if (!other.textSettingListList_.isEmpty()) { - if (textSettingListListBuilder_.isEmpty()) { - textSettingListListBuilder_.dispose(); - textSettingListListBuilder_ = null; - textSettingListList_ = other.textSettingListList_; - bitField0_ = (bitField0_ & ~0x00000400); - textSettingListListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTextSettingListListFieldBuilder() : null; - } else { - textSettingListListBuilder_.addAllMessages(other.textSettingListList_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUrlListListIsMutable(); - urlListList_.add(s); - break; - } // case 10 - case 18: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - height_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - width_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - avgColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - imageType_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - openWebUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getContentFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: { - isAnimated_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.parser(), - extensionRegistry); - if (flexSettingListListBuilder_ == null) { - ensureFlexSettingListListIsMutable(); - flexSettingListList_.add(m); - } else { - flexSettingListListBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.parser(), - extensionRegistry); - if (textSettingListListBuilder_ == null) { - ensureTextSettingListListIsMutable(); - textSettingListList_.add(m); - } else { - textSettingListListBuilder_.addMessage(m); - } - break; - } // case 90 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList urlListList_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUrlListListIsMutable() { - if (!urlListList_.isModifiable()) { - urlListList_ = new com.google.protobuf.LazyStringArrayList(urlListList_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string urlListList = 1; - * @return A list containing the urlListList. - */ - public com.google.protobuf.ProtocolStringList - getUrlListListList() { - urlListList_.makeImmutable(); - return urlListList_; - } - /** - * repeated string urlListList = 1; - * @return The count of urlListList. - */ - public int getUrlListListCount() { - return urlListList_.size(); - } - /** - * repeated string urlListList = 1; - * @param index The index of the element to return. - * @return The urlListList at the given index. - */ - public java.lang.String getUrlListList(int index) { - return urlListList_.get(index); - } - /** - * repeated string urlListList = 1; - * @param index The index of the value to return. - * @return The bytes of the urlListList at the given index. - */ - public com.google.protobuf.ByteString - getUrlListListBytes(int index) { - return urlListList_.getByteString(index); - } - /** - * repeated string urlListList = 1; - * @param index The index to set the value at. - * @param value The urlListList to set. - * @return This builder for chaining. - */ - public Builder setUrlListList( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureUrlListListIsMutable(); - urlListList_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string urlListList = 1; - * @param value The urlListList to add. - * @return This builder for chaining. - */ - public Builder addUrlListList( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureUrlListListIsMutable(); - urlListList_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string urlListList = 1; - * @param values The urlListList to add. - * @return This builder for chaining. - */ - public Builder addAllUrlListList( - java.lang.Iterable values) { - ensureUrlListListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, urlListList_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string urlListList = 1; - * @return This builder for chaining. - */ - public Builder clearUrlListList() { - urlListList_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string urlListList = 1; - * @param value The bytes of the urlListList to add. - * @return This builder for chaining. - */ - public Builder addUrlListListBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureUrlListListIsMutable(); - urlListList_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 2; - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 2; - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 2; - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - uri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string uri = 2; - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string uri = 2; - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - uri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long height_ ; - /** - * int64 height = 3; - * @return The height. - */ - @java.lang.Override - public long getHeight() { - return height_; - } - /** - * int64 height = 3; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(long value) { - - height_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 height = 3; - * @return This builder for chaining. - */ - public Builder clearHeight() { - bitField0_ = (bitField0_ & ~0x00000004); - height_ = 0L; - onChanged(); - return this; - } - - private long width_ ; - /** - * int64 width = 4; - * @return The width. - */ - @java.lang.Override - public long getWidth() { - return width_; - } - /** - * int64 width = 4; - * @param value The width to set. - * @return This builder for chaining. - */ - public Builder setWidth(long value) { - - width_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int64 width = 4; - * @return This builder for chaining. - */ - public Builder clearWidth() { - bitField0_ = (bitField0_ & ~0x00000008); - width_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object avgColor_ = ""; - /** - * string avgColor = 5; - * @return The avgColor. - */ - public java.lang.String getAvgColor() { - java.lang.Object ref = avgColor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - avgColor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string avgColor = 5; - * @return The bytes for avgColor. - */ - public com.google.protobuf.ByteString - getAvgColorBytes() { - java.lang.Object ref = avgColor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - avgColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string avgColor = 5; - * @param value The avgColor to set. - * @return This builder for chaining. - */ - public Builder setAvgColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - avgColor_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string avgColor = 5; - * @return This builder for chaining. - */ - public Builder clearAvgColor() { - avgColor_ = getDefaultInstance().getAvgColor(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string avgColor = 5; - * @param value The bytes for avgColor to set. - * @return This builder for chaining. - */ - public Builder setAvgColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - avgColor_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int imageType_ ; - /** - * int32 imageType = 6; - * @return The imageType. - */ - @java.lang.Override - public int getImageType() { - return imageType_; - } - /** - * int32 imageType = 6; - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType(int value) { - - imageType_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int32 imageType = 6; - * @return This builder for chaining. - */ - public Builder clearImageType() { - bitField0_ = (bitField0_ & ~0x00000020); - imageType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object openWebUrl_ = ""; - /** - * string openWebUrl = 7; - * @return The openWebUrl. - */ - public java.lang.String getOpenWebUrl() { - java.lang.Object ref = openWebUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - openWebUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string openWebUrl = 7; - * @return The bytes for openWebUrl. - */ - public com.google.protobuf.ByteString - getOpenWebUrlBytes() { - java.lang.Object ref = openWebUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - openWebUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string openWebUrl = 7; - * @param value The openWebUrl to set. - * @return This builder for chaining. - */ - public Builder setOpenWebUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - openWebUrl_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * string openWebUrl = 7; - * @return This builder for chaining. - */ - public Builder clearOpenWebUrl() { - openWebUrl_ = getDefaultInstance().getOpenWebUrl(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * string openWebUrl = 7; - * @param value The bytes for openWebUrl to set. - * @return This builder for chaining. - */ - public Builder setOpenWebUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - openWebUrl_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content content_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder> contentBuilder_; - /** - * .Image.Content content = 8; - * @return Whether the content field is set. - */ - public boolean hasContent() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * .Image.Content content = 8; - * @return The content. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content getContent() { - if (contentBuilder_ == null) { - return content_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance() : content_; - } else { - return contentBuilder_.getMessage(); - } - } - /** - * .Image.Content content = 8; - */ - public Builder setContent(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content value) { - if (contentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - } else { - contentBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .Image.Content content = 8; - */ - public Builder setContent( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder builderForValue) { - if (contentBuilder_ == null) { - content_ = builderForValue.build(); - } else { - contentBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .Image.Content content = 8; - */ - public Builder mergeContent(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content value) { - if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - content_ != null && - content_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance()) { - getContentBuilder().mergeFrom(value); - } else { - content_ = value; - } - } else { - contentBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .Image.Content content = 8; - */ - public Builder clearContent() { - bitField0_ = (bitField0_ & ~0x00000080); - content_ = null; - if (contentBuilder_ != null) { - contentBuilder_.dispose(); - contentBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image.Content content = 8; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder getContentBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getContentFieldBuilder().getBuilder(); - } - /** - * .Image.Content content = 8; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder getContentOrBuilder() { - if (contentBuilder_ != null) { - return contentBuilder_.getMessageOrBuilder(); - } else { - return content_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.getDefaultInstance() : content_; - } - } - /** - * .Image.Content content = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder> - getContentFieldBuilder() { - if (contentBuilder_ == null) { - contentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Content.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.ContentOrBuilder>( - getContent(), - getParentForChildren(), - isClean()); - content_ = null; - } - return contentBuilder_; - } - - private boolean isAnimated_ ; - /** - * bool isAnimated = 9; - * @return The isAnimated. - */ - @java.lang.Override - public boolean getIsAnimated() { - return isAnimated_; - } - /** - * bool isAnimated = 9; - * @param value The isAnimated to set. - * @return This builder for chaining. - */ - public Builder setIsAnimated(boolean value) { - - isAnimated_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * bool isAnimated = 9; - * @return This builder for chaining. - */ - public Builder clearIsAnimated() { - bitField0_ = (bitField0_ & ~0x00000100); - isAnimated_ = false; - onChanged(); - return this; - } - - private java.util.List flexSettingListList_ = - java.util.Collections.emptyList(); - private void ensureFlexSettingListListIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - flexSettingListList_ = new java.util.ArrayList(flexSettingListList_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder> flexSettingListListBuilder_; - - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public java.util.List getFlexSettingListListList() { - if (flexSettingListListBuilder_ == null) { - return java.util.Collections.unmodifiableList(flexSettingListList_); - } else { - return flexSettingListListBuilder_.getMessageList(); - } - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public int getFlexSettingListListCount() { - if (flexSettingListListBuilder_ == null) { - return flexSettingListList_.size(); - } else { - return flexSettingListListBuilder_.getCount(); - } - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getFlexSettingListList(int index) { - if (flexSettingListListBuilder_ == null) { - return flexSettingListList_.get(index); - } else { - return flexSettingListListBuilder_.getMessage(index); - } - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder setFlexSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting value) { - if (flexSettingListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlexSettingListListIsMutable(); - flexSettingListList_.set(index, value); - onChanged(); - } else { - flexSettingListListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder setFlexSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder builderForValue) { - if (flexSettingListListBuilder_ == null) { - ensureFlexSettingListListIsMutable(); - flexSettingListList_.set(index, builderForValue.build()); - onChanged(); - } else { - flexSettingListListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder addFlexSettingListList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting value) { - if (flexSettingListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlexSettingListListIsMutable(); - flexSettingListList_.add(value); - onChanged(); - } else { - flexSettingListListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder addFlexSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting value) { - if (flexSettingListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlexSettingListListIsMutable(); - flexSettingListList_.add(index, value); - onChanged(); - } else { - flexSettingListListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder addFlexSettingListList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder builderForValue) { - if (flexSettingListListBuilder_ == null) { - ensureFlexSettingListListIsMutable(); - flexSettingListList_.add(builderForValue.build()); - onChanged(); - } else { - flexSettingListListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder addFlexSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder builderForValue) { - if (flexSettingListListBuilder_ == null) { - ensureFlexSettingListListIsMutable(); - flexSettingListList_.add(index, builderForValue.build()); - onChanged(); - } else { - flexSettingListListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder addAllFlexSettingListList( - java.lang.Iterable values) { - if (flexSettingListListBuilder_ == null) { - ensureFlexSettingListListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, flexSettingListList_); - onChanged(); - } else { - flexSettingListListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder clearFlexSettingListList() { - if (flexSettingListListBuilder_ == null) { - flexSettingListList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - flexSettingListListBuilder_.clear(); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public Builder removeFlexSettingListList(int index) { - if (flexSettingListListBuilder_ == null) { - ensureFlexSettingListListIsMutable(); - flexSettingListList_.remove(index); - onChanged(); - } else { - flexSettingListListBuilder_.remove(index); - } - return this; - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder getFlexSettingListListBuilder( - int index) { - return getFlexSettingListListFieldBuilder().getBuilder(index); - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder getFlexSettingListListOrBuilder( - int index) { - if (flexSettingListListBuilder_ == null) { - return flexSettingListList_.get(index); } else { - return flexSettingListListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public java.util.List - getFlexSettingListListOrBuilderList() { - if (flexSettingListListBuilder_ != null) { - return flexSettingListListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(flexSettingListList_); - } - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder addFlexSettingListListBuilder() { - return getFlexSettingListListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.getDefaultInstance()); - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder addFlexSettingListListBuilder( - int index) { - return getFlexSettingListListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.getDefaultInstance()); - } - /** - * repeated .Image.NinePatchSetting flexSettingListList = 10; - */ - public java.util.List - getFlexSettingListListBuilderList() { - return getFlexSettingListListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder> - getFlexSettingListListFieldBuilder() { - if (flexSettingListListBuilder_ == null) { - flexSettingListListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder>( - flexSettingListList_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - flexSettingListList_ = null; - } - return flexSettingListListBuilder_; - } - - private java.util.List textSettingListList_ = - java.util.Collections.emptyList(); - private void ensureTextSettingListListIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - textSettingListList_ = new java.util.ArrayList(textSettingListList_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder> textSettingListListBuilder_; - - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public java.util.List getTextSettingListListList() { - if (textSettingListListBuilder_ == null) { - return java.util.Collections.unmodifiableList(textSettingListList_); - } else { - return textSettingListListBuilder_.getMessageList(); - } - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public int getTextSettingListListCount() { - if (textSettingListListBuilder_ == null) { - return textSettingListList_.size(); - } else { - return textSettingListListBuilder_.getCount(); - } - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting getTextSettingListList(int index) { - if (textSettingListListBuilder_ == null) { - return textSettingListList_.get(index); - } else { - return textSettingListListBuilder_.getMessage(index); - } - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder setTextSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting value) { - if (textSettingListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTextSettingListListIsMutable(); - textSettingListList_.set(index, value); - onChanged(); - } else { - textSettingListListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder setTextSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder builderForValue) { - if (textSettingListListBuilder_ == null) { - ensureTextSettingListListIsMutable(); - textSettingListList_.set(index, builderForValue.build()); - onChanged(); - } else { - textSettingListListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder addTextSettingListList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting value) { - if (textSettingListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTextSettingListListIsMutable(); - textSettingListList_.add(value); - onChanged(); - } else { - textSettingListListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder addTextSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting value) { - if (textSettingListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTextSettingListListIsMutable(); - textSettingListList_.add(index, value); - onChanged(); - } else { - textSettingListListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder addTextSettingListList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder builderForValue) { - if (textSettingListListBuilder_ == null) { - ensureTextSettingListListIsMutable(); - textSettingListList_.add(builderForValue.build()); - onChanged(); - } else { - textSettingListListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder addTextSettingListList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder builderForValue) { - if (textSettingListListBuilder_ == null) { - ensureTextSettingListListIsMutable(); - textSettingListList_.add(index, builderForValue.build()); - onChanged(); - } else { - textSettingListListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder addAllTextSettingListList( - java.lang.Iterable values) { - if (textSettingListListBuilder_ == null) { - ensureTextSettingListListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, textSettingListList_); - onChanged(); - } else { - textSettingListListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder clearTextSettingListList() { - if (textSettingListListBuilder_ == null) { - textSettingListList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - textSettingListListBuilder_.clear(); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public Builder removeTextSettingListList(int index) { - if (textSettingListListBuilder_ == null) { - ensureTextSettingListListIsMutable(); - textSettingListList_.remove(index); - onChanged(); - } else { - textSettingListListBuilder_.remove(index); - } - return this; - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder getTextSettingListListBuilder( - int index) { - return getTextSettingListListFieldBuilder().getBuilder(index); - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder getTextSettingListListOrBuilder( - int index) { - if (textSettingListListBuilder_ == null) { - return textSettingListList_.get(index); } else { - return textSettingListListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public java.util.List - getTextSettingListListOrBuilderList() { - if (textSettingListListBuilder_ != null) { - return textSettingListListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(textSettingListList_); - } - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder addTextSettingListListBuilder() { - return getTextSettingListListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.getDefaultInstance()); - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder addTextSettingListListBuilder( - int index) { - return getTextSettingListListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.getDefaultInstance()); - } - /** - * repeated .Image.NinePatchSetting textSettingListList = 11; - */ - public java.util.List - getTextSettingListListBuilderList() { - return getTextSettingListListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder> - getTextSettingListListFieldBuilder() { - if (textSettingListListBuilder_ == null) { - textSettingListListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSetting.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.NinePatchSettingOrBuilder>( - textSettingListList_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - textSettingListList_ = null; - } - return textSettingListListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Image) - } - - // @@protoc_insertion_point(class_scope:Image) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Image parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Image_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Image_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Image_Content_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Image_Content_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Image_NinePatchSetting_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Image_NinePatchSetting_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\013Image.proto\"\212\003\n\005Image\022\023\n\013urlListList\030\001" + - " \003(\t\022\013\n\003uri\030\002 \001(\t\022\016\n\006height\030\003 \001(\003\022\r\n\005wid" + - "th\030\004 \001(\003\022\020\n\010avgColor\030\005 \001(\t\022\021\n\timageType\030" + - "\006 \001(\005\022\022\n\nopenWebUrl\030\007 \001(\t\022\037\n\007content\030\010 \001" + - "(\0132\016.Image.Content\022\022\n\nisAnimated\030\t \001(\010\0224" + - "\n\023flexSettingListList\030\n \003(\0132\027.Image.Nine" + - "PatchSetting\0224\n\023textSettingListList\030\013 \003(" + - "\0132\027.Image.NinePatchSetting\032R\n\007Content\022\014\n" + - "\004name\030\001 \001(\t\022\021\n\tfontColor\030\002 \001(\t\022\r\n\005level\030" + - "\003 \001(\003\022\027\n\017alternativeText\030\004 \001(\t\032\022\n\020NinePa" + - "tchSettingB8\n6tech.ordinaryroad.live.cha" + - "t.client.douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_Image_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Image_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Image_descriptor, - new java.lang.String[] { "UrlListList", "Uri", "Height", "Width", "AvgColor", "ImageType", "OpenWebUrl", "Content", "IsAnimated", "FlexSettingListList", "TextSettingListList", }); - internal_static_Image_Content_descriptor = - internal_static_Image_descriptor.getNestedTypes().get(0); - internal_static_Image_Content_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Image_Content_descriptor, - new java.lang.String[] { "Name", "FontColor", "Level", "AlternativeText", }); - internal_static_Image_NinePatchSetting_descriptor = - internal_static_Image_descriptor.getNestedTypes().get(1); - internal_static_Image_NinePatchSetting_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Image_NinePatchSetting_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/PatternRefOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/PatternRefOuterClass.java deleted file mode 100644 index 378b1fcd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/PatternRefOuterClass.java +++ /dev/null @@ -1,773 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PatternRef.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class PatternRefOuterClass { - private PatternRefOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PatternRefOrBuilder extends - // @@protoc_insertion_point(interface_extends:PatternRef) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string default_pattern = 2; - * @return The defaultPattern. - */ - java.lang.String getDefaultPattern(); - /** - * string default_pattern = 2; - * @return The bytes for defaultPattern. - */ - com.google.protobuf.ByteString - getDefaultPatternBytes(); - } - /** - * Protobuf type {@code PatternRef} - */ - public static final class PatternRef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PatternRef) - PatternRefOrBuilder { - private static final long serialVersionUID = 0L; - // Use PatternRef.newBuilder() to construct. - private PatternRef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PatternRef() { - key_ = ""; - defaultPattern_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PatternRef(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.internal_static_PatternRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.internal_static_PatternRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_PATTERN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultPattern_ = ""; - /** - * string default_pattern = 2; - * @return The defaultPattern. - */ - @java.lang.Override - public java.lang.String getDefaultPattern() { - java.lang.Object ref = defaultPattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultPattern_ = s; - return s; - } - } - /** - * string default_pattern = 2; - * @return The bytes for defaultPattern. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultPatternBytes() { - java.lang.Object ref = defaultPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPattern_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultPattern_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPattern_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultPattern_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getDefaultPattern() - .equals(other.getDefaultPattern())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DEFAULT_PATTERN_FIELD_NUMBER; - hash = (53 * hash) + getDefaultPattern().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PatternRef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PatternRef) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.internal_static_PatternRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.internal_static_PatternRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - key_ = ""; - defaultPattern_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.internal_static_PatternRef_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultPattern_ = defaultPattern_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDefaultPattern().isEmpty()) { - defaultPattern_ = other.defaultPattern_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - defaultPattern_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - key_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - key_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object defaultPattern_ = ""; - /** - * string default_pattern = 2; - * @return The defaultPattern. - */ - public java.lang.String getDefaultPattern() { - java.lang.Object ref = defaultPattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultPattern_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string default_pattern = 2; - * @return The bytes for defaultPattern. - */ - public com.google.protobuf.ByteString - getDefaultPatternBytes() { - java.lang.Object ref = defaultPattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string default_pattern = 2; - * @param value The defaultPattern to set. - * @return This builder for chaining. - */ - public Builder setDefaultPattern( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultPattern_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string default_pattern = 2; - * @return This builder for chaining. - */ - public Builder clearDefaultPattern() { - defaultPattern_ = getDefaultInstance().getDefaultPattern(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string default_pattern = 2; - * @param value The bytes for defaultPattern to set. - * @return This builder for chaining. - */ - public Builder setDefaultPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultPattern_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PatternRef) - } - - // @@protoc_insertion_point(class_scope:PatternRef) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PatternRef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PatternRef_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PatternRef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020PatternRef.proto\"2\n\nPatternRef\022\013\n\003key\030" + - "\001 \001(\t\022\027\n\017default_pattern\030\002 \001(\tB8\n6tech.o" + - "rdinaryroad.live.chat.client.douyin.prot" + - "obuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PatternRef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PatternRef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PatternRef_descriptor, - new java.lang.String[] { "Key", "DefaultPattern", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/PublicAreaCommonOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/PublicAreaCommonOuterClass.java deleted file mode 100644 index 6585a114..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/PublicAreaCommonOuterClass.java +++ /dev/null @@ -1,823 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PublicAreaCommon.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class PublicAreaCommonOuterClass { - private PublicAreaCommonOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PublicAreaCommonOrBuilder extends - // @@protoc_insertion_point(interface_extends:PublicAreaCommon) - com.google.protobuf.MessageOrBuilder { - - /** - * .Image user_label = 1; - * @return Whether the userLabel field is set. - */ - boolean hasUserLabel(); - /** - * .Image user_label = 1; - * @return The userLabel. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getUserLabel(); - /** - * .Image user_label = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getUserLabelOrBuilder(); - - /** - * uint64 user_consume_in_room = 2; - * @return The userConsumeInRoom. - */ - long getUserConsumeInRoom(); - - /** - * uint64 user_send_gift_cnt_in_room = 3; - * @return The userSendGiftCntInRoom. - */ - long getUserSendGiftCntInRoom(); - } - /** - * Protobuf type {@code PublicAreaCommon} - */ - public static final class PublicAreaCommon extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PublicAreaCommon) - PublicAreaCommonOrBuilder { - private static final long serialVersionUID = 0L; - // Use PublicAreaCommon.newBuilder() to construct. - private PublicAreaCommon(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PublicAreaCommon() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PublicAreaCommon(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.internal_static_PublicAreaCommon_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.internal_static_PublicAreaCommon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder.class); - } - - public static final int USER_LABEL_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image userLabel_; - /** - * .Image user_label = 1; - * @return Whether the userLabel field is set. - */ - @java.lang.Override - public boolean hasUserLabel() { - return userLabel_ != null; - } - /** - * .Image user_label = 1; - * @return The userLabel. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getUserLabel() { - return userLabel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : userLabel_; - } - /** - * .Image user_label = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getUserLabelOrBuilder() { - return userLabel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : userLabel_; - } - - public static final int USER_CONSUME_IN_ROOM_FIELD_NUMBER = 2; - private long userConsumeInRoom_ = 0L; - /** - * uint64 user_consume_in_room = 2; - * @return The userConsumeInRoom. - */ - @java.lang.Override - public long getUserConsumeInRoom() { - return userConsumeInRoom_; - } - - public static final int USER_SEND_GIFT_CNT_IN_ROOM_FIELD_NUMBER = 3; - private long userSendGiftCntInRoom_ = 0L; - /** - * uint64 user_send_gift_cnt_in_room = 3; - * @return The userSendGiftCntInRoom. - */ - @java.lang.Override - public long getUserSendGiftCntInRoom() { - return userSendGiftCntInRoom_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (userLabel_ != null) { - output.writeMessage(1, getUserLabel()); - } - if (userConsumeInRoom_ != 0L) { - output.writeUInt64(2, userConsumeInRoom_); - } - if (userSendGiftCntInRoom_ != 0L) { - output.writeUInt64(3, userSendGiftCntInRoom_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (userLabel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUserLabel()); - } - if (userConsumeInRoom_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, userConsumeInRoom_); - } - if (userSendGiftCntInRoom_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, userSendGiftCntInRoom_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon) obj; - - if (hasUserLabel() != other.hasUserLabel()) return false; - if (hasUserLabel()) { - if (!getUserLabel() - .equals(other.getUserLabel())) return false; - } - if (getUserConsumeInRoom() - != other.getUserConsumeInRoom()) return false; - if (getUserSendGiftCntInRoom() - != other.getUserSendGiftCntInRoom()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUserLabel()) { - hash = (37 * hash) + USER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getUserLabel().hashCode(); - } - hash = (37 * hash) + USER_CONSUME_IN_ROOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserConsumeInRoom()); - hash = (37 * hash) + USER_SEND_GIFT_CNT_IN_ROOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserSendGiftCntInRoom()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PublicAreaCommon} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PublicAreaCommon) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.internal_static_PublicAreaCommon_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.internal_static_PublicAreaCommon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - userLabel_ = null; - if (userLabelBuilder_ != null) { - userLabelBuilder_.dispose(); - userLabelBuilder_ = null; - } - userConsumeInRoom_ = 0L; - userSendGiftCntInRoom_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.internal_static_PublicAreaCommon_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.userLabel_ = userLabelBuilder_ == null - ? userLabel_ - : userLabelBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.userConsumeInRoom_ = userConsumeInRoom_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.userSendGiftCntInRoom_ = userSendGiftCntInRoom_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon.getDefaultInstance()) return this; - if (other.hasUserLabel()) { - mergeUserLabel(other.getUserLabel()); - } - if (other.getUserConsumeInRoom() != 0L) { - setUserConsumeInRoom(other.getUserConsumeInRoom()); - } - if (other.getUserSendGiftCntInRoom() != 0L) { - setUserSendGiftCntInRoom(other.getUserSendGiftCntInRoom()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getUserLabelFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - userConsumeInRoom_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - userSendGiftCntInRoom_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image userLabel_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> userLabelBuilder_; - /** - * .Image user_label = 1; - * @return Whether the userLabel field is set. - */ - public boolean hasUserLabel() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Image user_label = 1; - * @return The userLabel. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getUserLabel() { - if (userLabelBuilder_ == null) { - return userLabel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : userLabel_; - } else { - return userLabelBuilder_.getMessage(); - } - } - /** - * .Image user_label = 1; - */ - public Builder setUserLabel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (userLabelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userLabel_ = value; - } else { - userLabelBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image user_label = 1; - */ - public Builder setUserLabel( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (userLabelBuilder_ == null) { - userLabel_ = builderForValue.build(); - } else { - userLabelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image user_label = 1; - */ - public Builder mergeUserLabel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (userLabelBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - userLabel_ != null && - userLabel_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getUserLabelBuilder().mergeFrom(value); - } else { - userLabel_ = value; - } - } else { - userLabelBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image user_label = 1; - */ - public Builder clearUserLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - userLabel_ = null; - if (userLabelBuilder_ != null) { - userLabelBuilder_.dispose(); - userLabelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image user_label = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getUserLabelBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getUserLabelFieldBuilder().getBuilder(); - } - /** - * .Image user_label = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getUserLabelOrBuilder() { - if (userLabelBuilder_ != null) { - return userLabelBuilder_.getMessageOrBuilder(); - } else { - return userLabel_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : userLabel_; - } - } - /** - * .Image user_label = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getUserLabelFieldBuilder() { - if (userLabelBuilder_ == null) { - userLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getUserLabel(), - getParentForChildren(), - isClean()); - userLabel_ = null; - } - return userLabelBuilder_; - } - - private long userConsumeInRoom_ ; - /** - * uint64 user_consume_in_room = 2; - * @return The userConsumeInRoom. - */ - @java.lang.Override - public long getUserConsumeInRoom() { - return userConsumeInRoom_; - } - /** - * uint64 user_consume_in_room = 2; - * @param value The userConsumeInRoom to set. - * @return This builder for chaining. - */ - public Builder setUserConsumeInRoom(long value) { - - userConsumeInRoom_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 user_consume_in_room = 2; - * @return This builder for chaining. - */ - public Builder clearUserConsumeInRoom() { - bitField0_ = (bitField0_ & ~0x00000002); - userConsumeInRoom_ = 0L; - onChanged(); - return this; - } - - private long userSendGiftCntInRoom_ ; - /** - * uint64 user_send_gift_cnt_in_room = 3; - * @return The userSendGiftCntInRoom. - */ - @java.lang.Override - public long getUserSendGiftCntInRoom() { - return userSendGiftCntInRoom_; - } - /** - * uint64 user_send_gift_cnt_in_room = 3; - * @param value The userSendGiftCntInRoom to set. - * @return This builder for chaining. - */ - public Builder setUserSendGiftCntInRoom(long value) { - - userSendGiftCntInRoom_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 user_send_gift_cnt_in_room = 3; - * @return This builder for chaining. - */ - public Builder clearUserSendGiftCntInRoom() { - bitField0_ = (bitField0_ & ~0x00000004); - userSendGiftCntInRoom_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PublicAreaCommon) - } - - // @@protoc_insertion_point(class_scope:PublicAreaCommon) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicAreaCommon parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PublicAreaCommonOuterClass.PublicAreaCommon getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PublicAreaCommon_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PublicAreaCommon_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026PublicAreaCommon.proto\032\013Image.proto\"p\n" + - "\020PublicAreaCommon\022\032\n\nuser_label\030\001 \001(\0132\006." + - "Image\022\034\n\024user_consume_in_room\030\002 \001(\004\022\"\n\032u" + - "ser_send_gift_cnt_in_room\030\003 \001(\004B8\n6tech." + - "ordinaryroad.live.chat.client.douyin.pro" + - "tobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - }); - internal_static_PublicAreaCommon_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PublicAreaCommon_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PublicAreaCommon_descriptor, - new java.lang.String[] { "UserLabel", "UserConsumeInRoom", "UserSendGiftCntInRoom", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextEffectDetailOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextEffectDetailOuterClass.java deleted file mode 100644 index 9e29e90a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextEffectDetailOuterClass.java +++ /dev/null @@ -1,1968 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextEffectDetail.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextEffectDetailOuterClass { - private TextEffectDetailOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextEffectDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextEffectDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * .Text text = 1; - * @return Whether the text field is set. - */ - boolean hasText(); - /** - * .Text text = 1; - * @return The text. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getText(); - /** - * .Text text = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getTextOrBuilder(); - - /** - * uint32 text_font_size = 2; - * @return The textFontSize. - */ - int getTextFontSize(); - - /** - * .Image background = 3; - * @return Whether the background field is set. - */ - boolean hasBackground(); - /** - * .Image background = 3; - * @return The background. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackground(); - /** - * .Image background = 3; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundOrBuilder(); - - /** - * uint32 start = 4; - * @return The start. - */ - int getStart(); - - /** - * uint32 duration = 5; - * @return The duration. - */ - int getDuration(); - - /** - * uint32 x = 6; - * @return The x. - */ - int getX(); - - /** - * uint32 y = 7; - * @return The y. - */ - int getY(); - - /** - * uint32 width = 8; - * @return The width. - */ - int getWidth(); - - /** - * uint32 height = 9; - * @return The height. - */ - int getHeight(); - - /** - * uint32 shadow_dx = 10; - * @return The shadowDx. - */ - int getShadowDx(); - - /** - * uint32 shadow_dy = 11; - * @return The shadowDy. - */ - int getShadowDy(); - - /** - * uint32 shadow_radius = 12; - * @return The shadowRadius. - */ - int getShadowRadius(); - - /** - * string shadow_color = 13; - * @return The shadowColor. - */ - java.lang.String getShadowColor(); - /** - * string shadow_color = 13; - * @return The bytes for shadowColor. - */ - com.google.protobuf.ByteString - getShadowColorBytes(); - - /** - * string stroke_color = 14; - * @return The strokeColor. - */ - java.lang.String getStrokeColor(); - /** - * string stroke_color = 14; - * @return The bytes for strokeColor. - */ - com.google.protobuf.ByteString - getStrokeColorBytes(); - - /** - * uint32 stroke_width = 15; - * @return The strokeWidth. - */ - int getStrokeWidth(); - } - /** - * Protobuf type {@code TextEffectDetail} - */ - public static final class TextEffectDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextEffectDetail) - TextEffectDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextEffectDetail.newBuilder() to construct. - private TextEffectDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextEffectDetail() { - shadowColor_ = ""; - strokeColor_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextEffectDetail(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.internal_static_TextEffectDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.internal_static_TextEffectDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder.class); - } - - public static final int TEXT_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text text_; - /** - * .Text text = 1; - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return text_ != null; - } - /** - * .Text text = 1; - * @return The text. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getText() { - return text_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : text_; - } - /** - * .Text text = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getTextOrBuilder() { - return text_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : text_; - } - - public static final int TEXT_FONT_SIZE_FIELD_NUMBER = 2; - private int textFontSize_ = 0; - /** - * uint32 text_font_size = 2; - * @return The textFontSize. - */ - @java.lang.Override - public int getTextFontSize() { - return textFontSize_; - } - - public static final int BACKGROUND_FIELD_NUMBER = 3; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image background_; - /** - * .Image background = 3; - * @return Whether the background field is set. - */ - @java.lang.Override - public boolean hasBackground() { - return background_ != null; - } - /** - * .Image background = 3; - * @return The background. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackground() { - return background_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } - /** - * .Image background = 3; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundOrBuilder() { - return background_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } - - public static final int START_FIELD_NUMBER = 4; - private int start_ = 0; - /** - * uint32 start = 4; - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - - public static final int DURATION_FIELD_NUMBER = 5; - private int duration_ = 0; - /** - * uint32 duration = 5; - * @return The duration. - */ - @java.lang.Override - public int getDuration() { - return duration_; - } - - public static final int X_FIELD_NUMBER = 6; - private int x_ = 0; - /** - * uint32 x = 6; - * @return The x. - */ - @java.lang.Override - public int getX() { - return x_; - } - - public static final int Y_FIELD_NUMBER = 7; - private int y_ = 0; - /** - * uint32 y = 7; - * @return The y. - */ - @java.lang.Override - public int getY() { - return y_; - } - - public static final int WIDTH_FIELD_NUMBER = 8; - private int width_ = 0; - /** - * uint32 width = 8; - * @return The width. - */ - @java.lang.Override - public int getWidth() { - return width_; - } - - public static final int HEIGHT_FIELD_NUMBER = 9; - private int height_ = 0; - /** - * uint32 height = 9; - * @return The height. - */ - @java.lang.Override - public int getHeight() { - return height_; - } - - public static final int SHADOW_DX_FIELD_NUMBER = 10; - private int shadowDx_ = 0; - /** - * uint32 shadow_dx = 10; - * @return The shadowDx. - */ - @java.lang.Override - public int getShadowDx() { - return shadowDx_; - } - - public static final int SHADOW_DY_FIELD_NUMBER = 11; - private int shadowDy_ = 0; - /** - * uint32 shadow_dy = 11; - * @return The shadowDy. - */ - @java.lang.Override - public int getShadowDy() { - return shadowDy_; - } - - public static final int SHADOW_RADIUS_FIELD_NUMBER = 12; - private int shadowRadius_ = 0; - /** - * uint32 shadow_radius = 12; - * @return The shadowRadius. - */ - @java.lang.Override - public int getShadowRadius() { - return shadowRadius_; - } - - public static final int SHADOW_COLOR_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object shadowColor_ = ""; - /** - * string shadow_color = 13; - * @return The shadowColor. - */ - @java.lang.Override - public java.lang.String getShadowColor() { - java.lang.Object ref = shadowColor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shadowColor_ = s; - return s; - } - } - /** - * string shadow_color = 13; - * @return The bytes for shadowColor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getShadowColorBytes() { - java.lang.Object ref = shadowColor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shadowColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STROKE_COLOR_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object strokeColor_ = ""; - /** - * string stroke_color = 14; - * @return The strokeColor. - */ - @java.lang.Override - public java.lang.String getStrokeColor() { - java.lang.Object ref = strokeColor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - strokeColor_ = s; - return s; - } - } - /** - * string stroke_color = 14; - * @return The bytes for strokeColor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStrokeColorBytes() { - java.lang.Object ref = strokeColor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - strokeColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STROKE_WIDTH_FIELD_NUMBER = 15; - private int strokeWidth_ = 0; - /** - * uint32 stroke_width = 15; - * @return The strokeWidth. - */ - @java.lang.Override - public int getStrokeWidth() { - return strokeWidth_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (text_ != null) { - output.writeMessage(1, getText()); - } - if (textFontSize_ != 0) { - output.writeUInt32(2, textFontSize_); - } - if (background_ != null) { - output.writeMessage(3, getBackground()); - } - if (start_ != 0) { - output.writeUInt32(4, start_); - } - if (duration_ != 0) { - output.writeUInt32(5, duration_); - } - if (x_ != 0) { - output.writeUInt32(6, x_); - } - if (y_ != 0) { - output.writeUInt32(7, y_); - } - if (width_ != 0) { - output.writeUInt32(8, width_); - } - if (height_ != 0) { - output.writeUInt32(9, height_); - } - if (shadowDx_ != 0) { - output.writeUInt32(10, shadowDx_); - } - if (shadowDy_ != 0) { - output.writeUInt32(11, shadowDy_); - } - if (shadowRadius_ != 0) { - output.writeUInt32(12, shadowRadius_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shadowColor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, shadowColor_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strokeColor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, strokeColor_); - } - if (strokeWidth_ != 0) { - output.writeUInt32(15, strokeWidth_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (text_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getText()); - } - if (textFontSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, textFontSize_); - } - if (background_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBackground()); - } - if (start_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, start_); - } - if (duration_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, duration_); - } - if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, x_); - } - if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, y_); - } - if (width_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, width_); - } - if (height_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, height_); - } - if (shadowDx_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, shadowDx_); - } - if (shadowDy_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(11, shadowDy_); - } - if (shadowRadius_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, shadowRadius_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shadowColor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, shadowColor_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strokeColor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, strokeColor_); - } - if (strokeWidth_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(15, strokeWidth_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail) obj; - - if (hasText() != other.hasText()) return false; - if (hasText()) { - if (!getText() - .equals(other.getText())) return false; - } - if (getTextFontSize() - != other.getTextFontSize()) return false; - if (hasBackground() != other.hasBackground()) return false; - if (hasBackground()) { - if (!getBackground() - .equals(other.getBackground())) return false; - } - if (getStart() - != other.getStart()) return false; - if (getDuration() - != other.getDuration()) return false; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; - if (getWidth() - != other.getWidth()) return false; - if (getHeight() - != other.getHeight()) return false; - if (getShadowDx() - != other.getShadowDx()) return false; - if (getShadowDy() - != other.getShadowDy()) return false; - if (getShadowRadius() - != other.getShadowRadius()) return false; - if (!getShadowColor() - .equals(other.getShadowColor())) return false; - if (!getStrokeColor() - .equals(other.getStrokeColor())) return false; - if (getStrokeWidth() - != other.getStrokeWidth()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasText()) { - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - } - hash = (37 * hash) + TEXT_FONT_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getTextFontSize(); - if (hasBackground()) { - hash = (37 * hash) + BACKGROUND_FIELD_NUMBER; - hash = (53 * hash) + getBackground().hashCode(); - } - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart(); - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration(); - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + getX(); - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + getY(); - hash = (37 * hash) + WIDTH_FIELD_NUMBER; - hash = (53 * hash) + getWidth(); - hash = (37 * hash) + HEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getHeight(); - hash = (37 * hash) + SHADOW_DX_FIELD_NUMBER; - hash = (53 * hash) + getShadowDx(); - hash = (37 * hash) + SHADOW_DY_FIELD_NUMBER; - hash = (53 * hash) + getShadowDy(); - hash = (37 * hash) + SHADOW_RADIUS_FIELD_NUMBER; - hash = (53 * hash) + getShadowRadius(); - hash = (37 * hash) + SHADOW_COLOR_FIELD_NUMBER; - hash = (53 * hash) + getShadowColor().hashCode(); - hash = (37 * hash) + STROKE_COLOR_FIELD_NUMBER; - hash = (53 * hash) + getStrokeColor().hashCode(); - hash = (37 * hash) + STROKE_WIDTH_FIELD_NUMBER; - hash = (53 * hash) + getStrokeWidth(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextEffectDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextEffectDetail) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.internal_static_TextEffectDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.internal_static_TextEffectDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - text_ = null; - if (textBuilder_ != null) { - textBuilder_.dispose(); - textBuilder_ = null; - } - textFontSize_ = 0; - background_ = null; - if (backgroundBuilder_ != null) { - backgroundBuilder_.dispose(); - backgroundBuilder_ = null; - } - start_ = 0; - duration_ = 0; - x_ = 0; - y_ = 0; - width_ = 0; - height_ = 0; - shadowDx_ = 0; - shadowDy_ = 0; - shadowRadius_ = 0; - shadowColor_ = ""; - strokeColor_ = ""; - strokeWidth_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.internal_static_TextEffectDetail_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = textBuilder_ == null - ? text_ - : textBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.textFontSize_ = textFontSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.background_ = backgroundBuilder_ == null - ? background_ - : backgroundBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.start_ = start_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.duration_ = duration_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.x_ = x_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.y_ = y_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.width_ = width_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.height_ = height_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.shadowDx_ = shadowDx_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.shadowDy_ = shadowDy_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.shadowRadius_ = shadowRadius_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.shadowColor_ = shadowColor_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.strokeColor_ = strokeColor_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.strokeWidth_ = strokeWidth_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance()) return this; - if (other.hasText()) { - mergeText(other.getText()); - } - if (other.getTextFontSize() != 0) { - setTextFontSize(other.getTextFontSize()); - } - if (other.hasBackground()) { - mergeBackground(other.getBackground()); - } - if (other.getStart() != 0) { - setStart(other.getStart()); - } - if (other.getDuration() != 0) { - setDuration(other.getDuration()); - } - if (other.getX() != 0) { - setX(other.getX()); - } - if (other.getY() != 0) { - setY(other.getY()); - } - if (other.getWidth() != 0) { - setWidth(other.getWidth()); - } - if (other.getHeight() != 0) { - setHeight(other.getHeight()); - } - if (other.getShadowDx() != 0) { - setShadowDx(other.getShadowDx()); - } - if (other.getShadowDy() != 0) { - setShadowDy(other.getShadowDy()); - } - if (other.getShadowRadius() != 0) { - setShadowRadius(other.getShadowRadius()); - } - if (!other.getShadowColor().isEmpty()) { - shadowColor_ = other.shadowColor_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (!other.getStrokeColor().isEmpty()) { - strokeColor_ = other.strokeColor_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.getStrokeWidth() != 0) { - setStrokeWidth(other.getStrokeWidth()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getTextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - textFontSize_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getBackgroundFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - start_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - duration_ = input.readUInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - x_ = input.readUInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - y_ = input.readUInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - width_ = input.readUInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - height_ = input.readUInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - shadowDx_ = input.readUInt32(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - shadowDy_ = input.readUInt32(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - shadowRadius_ = input.readUInt32(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 106: { - shadowColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 114: { - strokeColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 120: { - strokeWidth_ = input.readUInt32(); - bitField0_ |= 0x00004000; - break; - } // case 120 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text text_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder> textBuilder_; - /** - * .Text text = 1; - * @return Whether the text field is set. - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Text text = 1; - * @return The text. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getText() { - if (textBuilder_ == null) { - return text_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : text_; - } else { - return textBuilder_.getMessage(); - } - } - /** - * .Text text = 1; - */ - public Builder setText(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text value) { - if (textBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - text_ = value; - } else { - textBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Text text = 1; - */ - public Builder setText( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder builderForValue) { - if (textBuilder_ == null) { - text_ = builderForValue.build(); - } else { - textBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Text text = 1; - */ - public Builder mergeText(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text value) { - if (textBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - text_ != null && - text_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance()) { - getTextBuilder().mergeFrom(value); - } else { - text_ = value; - } - } else { - textBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Text text = 1; - */ - public Builder clearText() { - bitField0_ = (bitField0_ & ~0x00000001); - text_ = null; - if (textBuilder_ != null) { - textBuilder_.dispose(); - textBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Text text = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder getTextBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTextFieldBuilder().getBuilder(); - } - /** - * .Text text = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder getTextOrBuilder() { - if (textBuilder_ != null) { - return textBuilder_.getMessageOrBuilder(); - } else { - return text_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance() : text_; - } - } - /** - * .Text text = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder> - getTextFieldBuilder() { - if (textBuilder_ == null) { - textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder>( - getText(), - getParentForChildren(), - isClean()); - text_ = null; - } - return textBuilder_; - } - - private int textFontSize_ ; - /** - * uint32 text_font_size = 2; - * @return The textFontSize. - */ - @java.lang.Override - public int getTextFontSize() { - return textFontSize_; - } - /** - * uint32 text_font_size = 2; - * @param value The textFontSize to set. - * @return This builder for chaining. - */ - public Builder setTextFontSize(int value) { - - textFontSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 text_font_size = 2; - * @return This builder for chaining. - */ - public Builder clearTextFontSize() { - bitField0_ = (bitField0_ & ~0x00000002); - textFontSize_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image background_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundBuilder_; - /** - * .Image background = 3; - * @return Whether the background field is set. - */ - public boolean hasBackground() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .Image background = 3; - * @return The background. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackground() { - if (backgroundBuilder_ == null) { - return background_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } else { - return backgroundBuilder_.getMessage(); - } - } - /** - * .Image background = 3; - */ - public Builder setBackground(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - background_ = value; - } else { - backgroundBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .Image background = 3; - */ - public Builder setBackground( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundBuilder_ == null) { - background_ = builderForValue.build(); - } else { - backgroundBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .Image background = 3; - */ - public Builder mergeBackground(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - background_ != null && - background_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundBuilder().mergeFrom(value); - } else { - background_ = value; - } - } else { - backgroundBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .Image background = 3; - */ - public Builder clearBackground() { - bitField0_ = (bitField0_ & ~0x00000004); - background_ = null; - if (backgroundBuilder_ != null) { - backgroundBuilder_.dispose(); - backgroundBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image background = 3; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getBackgroundFieldBuilder().getBuilder(); - } - /** - * .Image background = 3; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundOrBuilder() { - if (backgroundBuilder_ != null) { - return backgroundBuilder_.getMessageOrBuilder(); - } else { - return background_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } - } - /** - * .Image background = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundFieldBuilder() { - if (backgroundBuilder_ == null) { - backgroundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackground(), - getParentForChildren(), - isClean()); - background_ = null; - } - return backgroundBuilder_; - } - - private int start_ ; - /** - * uint32 start = 4; - * @return The start. - */ - @java.lang.Override - public int getStart() { - return start_; - } - /** - * uint32 start = 4; - * @param value The start to set. - * @return This builder for chaining. - */ - public Builder setStart(int value) { - - start_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 start = 4; - * @return This builder for chaining. - */ - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000008); - start_ = 0; - onChanged(); - return this; - } - - private int duration_ ; - /** - * uint32 duration = 5; - * @return The duration. - */ - @java.lang.Override - public int getDuration() { - return duration_; - } - /** - * uint32 duration = 5; - * @param value The duration to set. - * @return This builder for chaining. - */ - public Builder setDuration(int value) { - - duration_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint32 duration = 5; - * @return This builder for chaining. - */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00000010); - duration_ = 0; - onChanged(); - return this; - } - - private int x_ ; - /** - * uint32 x = 6; - * @return The x. - */ - @java.lang.Override - public int getX() { - return x_; - } - /** - * uint32 x = 6; - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX(int value) { - - x_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint32 x = 6; - * @return This builder for chaining. - */ - public Builder clearX() { - bitField0_ = (bitField0_ & ~0x00000020); - x_ = 0; - onChanged(); - return this; - } - - private int y_ ; - /** - * uint32 y = 7; - * @return The y. - */ - @java.lang.Override - public int getY() { - return y_; - } - /** - * uint32 y = 7; - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(int value) { - - y_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * uint32 y = 7; - * @return This builder for chaining. - */ - public Builder clearY() { - bitField0_ = (bitField0_ & ~0x00000040); - y_ = 0; - onChanged(); - return this; - } - - private int width_ ; - /** - * uint32 width = 8; - * @return The width. - */ - @java.lang.Override - public int getWidth() { - return width_; - } - /** - * uint32 width = 8; - * @param value The width to set. - * @return This builder for chaining. - */ - public Builder setWidth(int value) { - - width_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * uint32 width = 8; - * @return This builder for chaining. - */ - public Builder clearWidth() { - bitField0_ = (bitField0_ & ~0x00000080); - width_ = 0; - onChanged(); - return this; - } - - private int height_ ; - /** - * uint32 height = 9; - * @return The height. - */ - @java.lang.Override - public int getHeight() { - return height_; - } - /** - * uint32 height = 9; - * @param value The height to set. - * @return This builder for chaining. - */ - public Builder setHeight(int value) { - - height_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint32 height = 9; - * @return This builder for chaining. - */ - public Builder clearHeight() { - bitField0_ = (bitField0_ & ~0x00000100); - height_ = 0; - onChanged(); - return this; - } - - private int shadowDx_ ; - /** - * uint32 shadow_dx = 10; - * @return The shadowDx. - */ - @java.lang.Override - public int getShadowDx() { - return shadowDx_; - } - /** - * uint32 shadow_dx = 10; - * @param value The shadowDx to set. - * @return This builder for chaining. - */ - public Builder setShadowDx(int value) { - - shadowDx_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * uint32 shadow_dx = 10; - * @return This builder for chaining. - */ - public Builder clearShadowDx() { - bitField0_ = (bitField0_ & ~0x00000200); - shadowDx_ = 0; - onChanged(); - return this; - } - - private int shadowDy_ ; - /** - * uint32 shadow_dy = 11; - * @return The shadowDy. - */ - @java.lang.Override - public int getShadowDy() { - return shadowDy_; - } - /** - * uint32 shadow_dy = 11; - * @param value The shadowDy to set. - * @return This builder for chaining. - */ - public Builder setShadowDy(int value) { - - shadowDy_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * uint32 shadow_dy = 11; - * @return This builder for chaining. - */ - public Builder clearShadowDy() { - bitField0_ = (bitField0_ & ~0x00000400); - shadowDy_ = 0; - onChanged(); - return this; - } - - private int shadowRadius_ ; - /** - * uint32 shadow_radius = 12; - * @return The shadowRadius. - */ - @java.lang.Override - public int getShadowRadius() { - return shadowRadius_; - } - /** - * uint32 shadow_radius = 12; - * @param value The shadowRadius to set. - * @return This builder for chaining. - */ - public Builder setShadowRadius(int value) { - - shadowRadius_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * uint32 shadow_radius = 12; - * @return This builder for chaining. - */ - public Builder clearShadowRadius() { - bitField0_ = (bitField0_ & ~0x00000800); - shadowRadius_ = 0; - onChanged(); - return this; - } - - private java.lang.Object shadowColor_ = ""; - /** - * string shadow_color = 13; - * @return The shadowColor. - */ - public java.lang.String getShadowColor() { - java.lang.Object ref = shadowColor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shadowColor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string shadow_color = 13; - * @return The bytes for shadowColor. - */ - public com.google.protobuf.ByteString - getShadowColorBytes() { - java.lang.Object ref = shadowColor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shadowColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string shadow_color = 13; - * @param value The shadowColor to set. - * @return This builder for chaining. - */ - public Builder setShadowColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - shadowColor_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * string shadow_color = 13; - * @return This builder for chaining. - */ - public Builder clearShadowColor() { - shadowColor_ = getDefaultInstance().getShadowColor(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * string shadow_color = 13; - * @param value The bytes for shadowColor to set. - * @return This builder for chaining. - */ - public Builder setShadowColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - shadowColor_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.lang.Object strokeColor_ = ""; - /** - * string stroke_color = 14; - * @return The strokeColor. - */ - public java.lang.String getStrokeColor() { - java.lang.Object ref = strokeColor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - strokeColor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string stroke_color = 14; - * @return The bytes for strokeColor. - */ - public com.google.protobuf.ByteString - getStrokeColorBytes() { - java.lang.Object ref = strokeColor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - strokeColor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string stroke_color = 14; - * @param value The strokeColor to set. - * @return This builder for chaining. - */ - public Builder setStrokeColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - strokeColor_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * string stroke_color = 14; - * @return This builder for chaining. - */ - public Builder clearStrokeColor() { - strokeColor_ = getDefaultInstance().getStrokeColor(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * string stroke_color = 14; - * @param value The bytes for strokeColor to set. - * @return This builder for chaining. - */ - public Builder setStrokeColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - strokeColor_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private int strokeWidth_ ; - /** - * uint32 stroke_width = 15; - * @return The strokeWidth. - */ - @java.lang.Override - public int getStrokeWidth() { - return strokeWidth_; - } - /** - * uint32 stroke_width = 15; - * @param value The strokeWidth to set. - * @return This builder for chaining. - */ - public Builder setStrokeWidth(int value) { - - strokeWidth_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * uint32 stroke_width = 15; - * @return This builder for chaining. - */ - public Builder clearStrokeWidth() { - bitField0_ = (bitField0_ & ~0x00004000); - strokeWidth_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextEffectDetail) - } - - // @@protoc_insertion_point(class_scope:TextEffectDetail) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextEffectDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextEffectDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextEffectDetail_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026TextEffectDetail.proto\032\013Image.proto\032\nT" + - "ext.proto\"\260\002\n\020TextEffectDetail\022\023\n\004text\030\001" + - " \001(\0132\005.Text\022\026\n\016text_font_size\030\002 \001(\r\022\032\n\nb" + - "ackground\030\003 \001(\0132\006.Image\022\r\n\005start\030\004 \001(\r\022\020" + - "\n\010duration\030\005 \001(\r\022\t\n\001x\030\006 \001(\r\022\t\n\001y\030\007 \001(\r\022\r" + - "\n\005width\030\010 \001(\r\022\016\n\006height\030\t \001(\r\022\021\n\tshadow_" + - "dx\030\n \001(\r\022\021\n\tshadow_dy\030\013 \001(\r\022\025\n\rshadow_ra" + - "dius\030\014 \001(\r\022\024\n\014shadow_color\030\r \001(\t\022\024\n\014stro" + - "ke_color\030\016 \001(\t\022\024\n\014stroke_width\030\017 \001(\rB8\n6" + - "tech.ordinaryroad.live.chat.client.douyi" + - "n.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.getDescriptor(), - }); - internal_static_TextEffectDetail_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextEffectDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextEffectDetail_descriptor, - new java.lang.String[] { "Text", "TextFontSize", "Background", "Start", "Duration", "X", "Y", "Width", "Height", "ShadowDx", "ShadowDy", "ShadowRadius", "ShadowColor", "StrokeColor", "StrokeWidth", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextEffectOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextEffectOuterClass.java deleted file mode 100644 index 9fffc74a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextEffectOuterClass.java +++ /dev/null @@ -1,872 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextEffect.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextEffectOuterClass { - private TextEffectOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextEffectOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextEffect) - com.google.protobuf.MessageOrBuilder { - - /** - * .TextEffectDetail portrait = 1; - * @return Whether the portrait field is set. - */ - boolean hasPortrait(); - /** - * .TextEffectDetail portrait = 1; - * @return The portrait. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getPortrait(); - /** - * .TextEffectDetail portrait = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder getPortraitOrBuilder(); - - /** - * .TextEffectDetail landscape = 2; - * @return Whether the landscape field is set. - */ - boolean hasLandscape(); - /** - * .TextEffectDetail landscape = 2; - * @return The landscape. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getLandscape(); - /** - * .TextEffectDetail landscape = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder getLandscapeOrBuilder(); - } - /** - * Protobuf type {@code TextEffect} - */ - public static final class TextEffect extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextEffect) - TextEffectOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextEffect.newBuilder() to construct. - private TextEffect(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextEffect() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextEffect(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.internal_static_TextEffect_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.internal_static_TextEffect_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder.class); - } - - public static final int PORTRAIT_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail portrait_; - /** - * .TextEffectDetail portrait = 1; - * @return Whether the portrait field is set. - */ - @java.lang.Override - public boolean hasPortrait() { - return portrait_ != null; - } - /** - * .TextEffectDetail portrait = 1; - * @return The portrait. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getPortrait() { - return portrait_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : portrait_; - } - /** - * .TextEffectDetail portrait = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder getPortraitOrBuilder() { - return portrait_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : portrait_; - } - - public static final int LANDSCAPE_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail landscape_; - /** - * .TextEffectDetail landscape = 2; - * @return Whether the landscape field is set. - */ - @java.lang.Override - public boolean hasLandscape() { - return landscape_ != null; - } - /** - * .TextEffectDetail landscape = 2; - * @return The landscape. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getLandscape() { - return landscape_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : landscape_; - } - /** - * .TextEffectDetail landscape = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder getLandscapeOrBuilder() { - return landscape_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : landscape_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (portrait_ != null) { - output.writeMessage(1, getPortrait()); - } - if (landscape_ != null) { - output.writeMessage(2, getLandscape()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (portrait_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPortrait()); - } - if (landscape_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLandscape()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect) obj; - - if (hasPortrait() != other.hasPortrait()) return false; - if (hasPortrait()) { - if (!getPortrait() - .equals(other.getPortrait())) return false; - } - if (hasLandscape() != other.hasLandscape()) return false; - if (hasLandscape()) { - if (!getLandscape() - .equals(other.getLandscape())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPortrait()) { - hash = (37 * hash) + PORTRAIT_FIELD_NUMBER; - hash = (53 * hash) + getPortrait().hashCode(); - } - if (hasLandscape()) { - hash = (37 * hash) + LANDSCAPE_FIELD_NUMBER; - hash = (53 * hash) + getLandscape().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextEffect} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextEffect) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.internal_static_TextEffect_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.internal_static_TextEffect_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - portrait_ = null; - if (portraitBuilder_ != null) { - portraitBuilder_.dispose(); - portraitBuilder_ = null; - } - landscape_ = null; - if (landscapeBuilder_ != null) { - landscapeBuilder_.dispose(); - landscapeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.internal_static_TextEffect_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.portrait_ = portraitBuilder_ == null - ? portrait_ - : portraitBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.landscape_ = landscapeBuilder_ == null - ? landscape_ - : landscapeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect.getDefaultInstance()) return this; - if (other.hasPortrait()) { - mergePortrait(other.getPortrait()); - } - if (other.hasLandscape()) { - mergeLandscape(other.getLandscape()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getPortraitFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLandscapeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail portrait_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder> portraitBuilder_; - /** - * .TextEffectDetail portrait = 1; - * @return Whether the portrait field is set. - */ - public boolean hasPortrait() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .TextEffectDetail portrait = 1; - * @return The portrait. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getPortrait() { - if (portraitBuilder_ == null) { - return portrait_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : portrait_; - } else { - return portraitBuilder_.getMessage(); - } - } - /** - * .TextEffectDetail portrait = 1; - */ - public Builder setPortrait(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail value) { - if (portraitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - portrait_ = value; - } else { - portraitBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .TextEffectDetail portrait = 1; - */ - public Builder setPortrait( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder builderForValue) { - if (portraitBuilder_ == null) { - portrait_ = builderForValue.build(); - } else { - portraitBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .TextEffectDetail portrait = 1; - */ - public Builder mergePortrait(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail value) { - if (portraitBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - portrait_ != null && - portrait_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance()) { - getPortraitBuilder().mergeFrom(value); - } else { - portrait_ = value; - } - } else { - portraitBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .TextEffectDetail portrait = 1; - */ - public Builder clearPortrait() { - bitField0_ = (bitField0_ & ~0x00000001); - portrait_ = null; - if (portraitBuilder_ != null) { - portraitBuilder_.dispose(); - portraitBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextEffectDetail portrait = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder getPortraitBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPortraitFieldBuilder().getBuilder(); - } - /** - * .TextEffectDetail portrait = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder getPortraitOrBuilder() { - if (portraitBuilder_ != null) { - return portraitBuilder_.getMessageOrBuilder(); - } else { - return portrait_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : portrait_; - } - } - /** - * .TextEffectDetail portrait = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder> - getPortraitFieldBuilder() { - if (portraitBuilder_ == null) { - portraitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder>( - getPortrait(), - getParentForChildren(), - isClean()); - portrait_ = null; - } - return portraitBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail landscape_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder> landscapeBuilder_; - /** - * .TextEffectDetail landscape = 2; - * @return Whether the landscape field is set. - */ - public boolean hasLandscape() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .TextEffectDetail landscape = 2; - * @return The landscape. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail getLandscape() { - if (landscapeBuilder_ == null) { - return landscape_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : landscape_; - } else { - return landscapeBuilder_.getMessage(); - } - } - /** - * .TextEffectDetail landscape = 2; - */ - public Builder setLandscape(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail value) { - if (landscapeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - landscape_ = value; - } else { - landscapeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .TextEffectDetail landscape = 2; - */ - public Builder setLandscape( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder builderForValue) { - if (landscapeBuilder_ == null) { - landscape_ = builderForValue.build(); - } else { - landscapeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .TextEffectDetail landscape = 2; - */ - public Builder mergeLandscape(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail value) { - if (landscapeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - landscape_ != null && - landscape_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance()) { - getLandscapeBuilder().mergeFrom(value); - } else { - landscape_ = value; - } - } else { - landscapeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .TextEffectDetail landscape = 2; - */ - public Builder clearLandscape() { - bitField0_ = (bitField0_ & ~0x00000002); - landscape_ = null; - if (landscapeBuilder_ != null) { - landscapeBuilder_.dispose(); - landscapeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextEffectDetail landscape = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder getLandscapeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getLandscapeFieldBuilder().getBuilder(); - } - /** - * .TextEffectDetail landscape = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder getLandscapeOrBuilder() { - if (landscapeBuilder_ != null) { - return landscapeBuilder_.getMessageOrBuilder(); - } else { - return landscape_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.getDefaultInstance() : landscape_; - } - } - /** - * .TextEffectDetail landscape = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder> - getLandscapeFieldBuilder() { - if (landscapeBuilder_ == null) { - landscapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetail.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.TextEffectDetailOrBuilder>( - getLandscape(), - getParentForChildren(), - isClean()); - landscape_ = null; - } - return landscapeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextEffect) - } - - // @@protoc_insertion_point(class_scope:TextEffect) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextEffect parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectOuterClass.TextEffect getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextEffect_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextEffect_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020TextEffect.proto\032\026TextEffectDetail.pro" + - "to\"W\n\nTextEffect\022#\n\010portrait\030\001 \001(\0132\021.Tex" + - "tEffectDetail\022$\n\tlandscape\030\002 \001(\0132\021.TextE" + - "ffectDetailB8\n6tech.ordinaryroad.live.ch" + - "at.client.douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.getDescriptor(), - }); - internal_static_TextEffect_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextEffect_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextEffect_descriptor, - new java.lang.String[] { "Portrait", "Landscape", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextEffectDetailOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextFormatOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextFormatOuterClass.java deleted file mode 100644 index d3fc3455..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextFormatOuterClass.java +++ /dev/null @@ -1,1136 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextFormat.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextFormatOuterClass { - private TextFormatOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextFormatOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextFormat) - com.google.protobuf.MessageOrBuilder { - - /** - * string color = 1; - * @return The color. - */ - java.lang.String getColor(); - /** - * string color = 1; - * @return The bytes for color. - */ - com.google.protobuf.ByteString - getColorBytes(); - - /** - * bool bold = 2; - * @return The bold. - */ - boolean getBold(); - - /** - * bool italic = 3; - * @return The italic. - */ - boolean getItalic(); - - /** - * uint32 weight = 4; - * @return The weight. - */ - int getWeight(); - - /** - * uint32 italic_angle = 5; - * @return The italicAngle. - */ - int getItalicAngle(); - - /** - * uint32 font_size = 6; - * @return The fontSize. - */ - int getFontSize(); - - /** - * bool use_heigh_light_color = 7; - * @return The useHeighLightColor. - */ - boolean getUseHeighLightColor(); - - /** - * bool use_remote_clor = 8; - * @return The useRemoteClor. - */ - boolean getUseRemoteClor(); - } - /** - * Protobuf type {@code TextFormat} - */ - public static final class TextFormat extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextFormat) - TextFormatOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextFormat.newBuilder() to construct. - private TextFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextFormat() { - color_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextFormat(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.internal_static_TextFormat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.internal_static_TextFormat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder.class); - } - - public static final int COLOR_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object color_ = ""; - /** - * string color = 1; - * @return The color. - */ - @java.lang.Override - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - color_ = s; - return s; - } - } - /** - * string color = 1; - * @return The bytes for color. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOLD_FIELD_NUMBER = 2; - private boolean bold_ = false; - /** - * bool bold = 2; - * @return The bold. - */ - @java.lang.Override - public boolean getBold() { - return bold_; - } - - public static final int ITALIC_FIELD_NUMBER = 3; - private boolean italic_ = false; - /** - * bool italic = 3; - * @return The italic. - */ - @java.lang.Override - public boolean getItalic() { - return italic_; - } - - public static final int WEIGHT_FIELD_NUMBER = 4; - private int weight_ = 0; - /** - * uint32 weight = 4; - * @return The weight. - */ - @java.lang.Override - public int getWeight() { - return weight_; - } - - public static final int ITALIC_ANGLE_FIELD_NUMBER = 5; - private int italicAngle_ = 0; - /** - * uint32 italic_angle = 5; - * @return The italicAngle. - */ - @java.lang.Override - public int getItalicAngle() { - return italicAngle_; - } - - public static final int FONT_SIZE_FIELD_NUMBER = 6; - private int fontSize_ = 0; - /** - * uint32 font_size = 6; - * @return The fontSize. - */ - @java.lang.Override - public int getFontSize() { - return fontSize_; - } - - public static final int USE_HEIGH_LIGHT_COLOR_FIELD_NUMBER = 7; - private boolean useHeighLightColor_ = false; - /** - * bool use_heigh_light_color = 7; - * @return The useHeighLightColor. - */ - @java.lang.Override - public boolean getUseHeighLightColor() { - return useHeighLightColor_; - } - - public static final int USE_REMOTE_CLOR_FIELD_NUMBER = 8; - private boolean useRemoteClor_ = false; - /** - * bool use_remote_clor = 8; - * @return The useRemoteClor. - */ - @java.lang.Override - public boolean getUseRemoteClor() { - return useRemoteClor_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, color_); - } - if (bold_ != false) { - output.writeBool(2, bold_); - } - if (italic_ != false) { - output.writeBool(3, italic_); - } - if (weight_ != 0) { - output.writeUInt32(4, weight_); - } - if (italicAngle_ != 0) { - output.writeUInt32(5, italicAngle_); - } - if (fontSize_ != 0) { - output.writeUInt32(6, fontSize_); - } - if (useHeighLightColor_ != false) { - output.writeBool(7, useHeighLightColor_); - } - if (useRemoteClor_ != false) { - output.writeBool(8, useRemoteClor_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, color_); - } - if (bold_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, bold_); - } - if (italic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, italic_); - } - if (weight_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, weight_); - } - if (italicAngle_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, italicAngle_); - } - if (fontSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, fontSize_); - } - if (useHeighLightColor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, useHeighLightColor_); - } - if (useRemoteClor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, useRemoteClor_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat) obj; - - if (!getColor() - .equals(other.getColor())) return false; - if (getBold() - != other.getBold()) return false; - if (getItalic() - != other.getItalic()) return false; - if (getWeight() - != other.getWeight()) return false; - if (getItalicAngle() - != other.getItalicAngle()) return false; - if (getFontSize() - != other.getFontSize()) return false; - if (getUseHeighLightColor() - != other.getUseHeighLightColor()) return false; - if (getUseRemoteClor() - != other.getUseRemoteClor()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLOR_FIELD_NUMBER; - hash = (53 * hash) + getColor().hashCode(); - hash = (37 * hash) + BOLD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBold()); - hash = (37 * hash) + ITALIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getItalic()); - hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getWeight(); - hash = (37 * hash) + ITALIC_ANGLE_FIELD_NUMBER; - hash = (53 * hash) + getItalicAngle(); - hash = (37 * hash) + FONT_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getFontSize(); - hash = (37 * hash) + USE_HEIGH_LIGHT_COLOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseHeighLightColor()); - hash = (37 * hash) + USE_REMOTE_CLOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseRemoteClor()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextFormat} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextFormat) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.internal_static_TextFormat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.internal_static_TextFormat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - color_ = ""; - bold_ = false; - italic_ = false; - weight_ = 0; - italicAngle_ = 0; - fontSize_ = 0; - useHeighLightColor_ = false; - useRemoteClor_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.internal_static_TextFormat_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.color_ = color_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.bold_ = bold_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.italic_ = italic_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.weight_ = weight_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.italicAngle_ = italicAngle_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.fontSize_ = fontSize_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.useHeighLightColor_ = useHeighLightColor_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.useRemoteClor_ = useRemoteClor_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance()) return this; - if (!other.getColor().isEmpty()) { - color_ = other.color_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getBold() != false) { - setBold(other.getBold()); - } - if (other.getItalic() != false) { - setItalic(other.getItalic()); - } - if (other.getWeight() != 0) { - setWeight(other.getWeight()); - } - if (other.getItalicAngle() != 0) { - setItalicAngle(other.getItalicAngle()); - } - if (other.getFontSize() != 0) { - setFontSize(other.getFontSize()); - } - if (other.getUseHeighLightColor() != false) { - setUseHeighLightColor(other.getUseHeighLightColor()); - } - if (other.getUseRemoteClor() != false) { - setUseRemoteClor(other.getUseRemoteClor()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - color_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - bold_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - italic_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - weight_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - italicAngle_ = input.readUInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - fontSize_ = input.readUInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - useHeighLightColor_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - useRemoteClor_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object color_ = ""; - /** - * string color = 1; - * @return The color. - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - color_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string color = 1; - * @return The bytes for color. - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string color = 1; - * @param value The color to set. - * @return This builder for chaining. - */ - public Builder setColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - color_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string color = 1; - * @return This builder for chaining. - */ - public Builder clearColor() { - color_ = getDefaultInstance().getColor(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string color = 1; - * @param value The bytes for color to set. - * @return This builder for chaining. - */ - public Builder setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - color_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean bold_ ; - /** - * bool bold = 2; - * @return The bold. - */ - @java.lang.Override - public boolean getBold() { - return bold_; - } - /** - * bool bold = 2; - * @param value The bold to set. - * @return This builder for chaining. - */ - public Builder setBold(boolean value) { - - bold_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool bold = 2; - * @return This builder for chaining. - */ - public Builder clearBold() { - bitField0_ = (bitField0_ & ~0x00000002); - bold_ = false; - onChanged(); - return this; - } - - private boolean italic_ ; - /** - * bool italic = 3; - * @return The italic. - */ - @java.lang.Override - public boolean getItalic() { - return italic_; - } - /** - * bool italic = 3; - * @param value The italic to set. - * @return This builder for chaining. - */ - public Builder setItalic(boolean value) { - - italic_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool italic = 3; - * @return This builder for chaining. - */ - public Builder clearItalic() { - bitField0_ = (bitField0_ & ~0x00000004); - italic_ = false; - onChanged(); - return this; - } - - private int weight_ ; - /** - * uint32 weight = 4; - * @return The weight. - */ - @java.lang.Override - public int getWeight() { - return weight_; - } - /** - * uint32 weight = 4; - * @param value The weight to set. - * @return This builder for chaining. - */ - public Builder setWeight(int value) { - - weight_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 weight = 4; - * @return This builder for chaining. - */ - public Builder clearWeight() { - bitField0_ = (bitField0_ & ~0x00000008); - weight_ = 0; - onChanged(); - return this; - } - - private int italicAngle_ ; - /** - * uint32 italic_angle = 5; - * @return The italicAngle. - */ - @java.lang.Override - public int getItalicAngle() { - return italicAngle_; - } - /** - * uint32 italic_angle = 5; - * @param value The italicAngle to set. - * @return This builder for chaining. - */ - public Builder setItalicAngle(int value) { - - italicAngle_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint32 italic_angle = 5; - * @return This builder for chaining. - */ - public Builder clearItalicAngle() { - bitField0_ = (bitField0_ & ~0x00000010); - italicAngle_ = 0; - onChanged(); - return this; - } - - private int fontSize_ ; - /** - * uint32 font_size = 6; - * @return The fontSize. - */ - @java.lang.Override - public int getFontSize() { - return fontSize_; - } - /** - * uint32 font_size = 6; - * @param value The fontSize to set. - * @return This builder for chaining. - */ - public Builder setFontSize(int value) { - - fontSize_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint32 font_size = 6; - * @return This builder for chaining. - */ - public Builder clearFontSize() { - bitField0_ = (bitField0_ & ~0x00000020); - fontSize_ = 0; - onChanged(); - return this; - } - - private boolean useHeighLightColor_ ; - /** - * bool use_heigh_light_color = 7; - * @return The useHeighLightColor. - */ - @java.lang.Override - public boolean getUseHeighLightColor() { - return useHeighLightColor_; - } - /** - * bool use_heigh_light_color = 7; - * @param value The useHeighLightColor to set. - * @return This builder for chaining. - */ - public Builder setUseHeighLightColor(boolean value) { - - useHeighLightColor_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * bool use_heigh_light_color = 7; - * @return This builder for chaining. - */ - public Builder clearUseHeighLightColor() { - bitField0_ = (bitField0_ & ~0x00000040); - useHeighLightColor_ = false; - onChanged(); - return this; - } - - private boolean useRemoteClor_ ; - /** - * bool use_remote_clor = 8; - * @return The useRemoteClor. - */ - @java.lang.Override - public boolean getUseRemoteClor() { - return useRemoteClor_; - } - /** - * bool use_remote_clor = 8; - * @param value The useRemoteClor to set. - * @return This builder for chaining. - */ - public Builder setUseRemoteClor(boolean value) { - - useRemoteClor_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * bool use_remote_clor = 8; - * @return This builder for chaining. - */ - public Builder clearUseRemoteClor() { - bitField0_ = (bitField0_ & ~0x00000080); - useRemoteClor_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextFormat) - } - - // @@protoc_insertion_point(class_scope:TextFormat) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextFormat_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextFormat_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020TextFormat.proto\"\252\001\n\nTextFormat\022\r\n\005col" + - "or\030\001 \001(\t\022\014\n\004bold\030\002 \001(\010\022\016\n\006italic\030\003 \001(\010\022\016" + - "\n\006weight\030\004 \001(\r\022\024\n\014italic_angle\030\005 \001(\r\022\021\n\t" + - "font_size\030\006 \001(\r\022\035\n\025use_heigh_light_color" + - "\030\007 \001(\010\022\027\n\017use_remote_clor\030\010 \001(\010B8\n6tech." + - "ordinaryroad.live.chat.client.douyin.pro" + - "tobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TextFormat_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextFormat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextFormat_descriptor, - new java.lang.String[] { "Color", "Bold", "Italic", "Weight", "ItalicAngle", "FontSize", "UseHeighLightColor", "UseRemoteClor", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextOuterClass.java deleted file mode 100644 index 4ff0f8d6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextOuterClass.java +++ /dev/null @@ -1,1171 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Text.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextOuterClass { - private TextOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextOrBuilder extends - // @@protoc_insertion_point(interface_extends:Text) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string default_patter = 2; - * @return The defaultPatter. - */ - java.lang.String getDefaultPatter(); - /** - * string default_patter = 2; - * @return The bytes for defaultPatter. - */ - com.google.protobuf.ByteString - getDefaultPatterBytes(); - - /** - * .TextFormat default_format = 3; - * @return Whether the defaultFormat field is set. - */ - boolean hasDefaultFormat(); - /** - * .TextFormat default_format = 3; - * @return The defaultFormat. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getDefaultFormat(); - /** - * .TextFormat default_format = 3; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder getDefaultFormatOrBuilder(); - - /** - * .TextPiece pieces_list = 4; - * @return Whether the piecesList field is set. - */ - boolean hasPiecesList(); - /** - * .TextPiece pieces_list = 4; - * @return The piecesList. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece getPiecesList(); - /** - * .TextPiece pieces_list = 4; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder getPiecesListOrBuilder(); - } - /** - * Protobuf type {@code Text} - */ - public static final class Text extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Text) - TextOrBuilder { - private static final long serialVersionUID = 0L; - // Use Text.newBuilder() to construct. - private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Text() { - key_ = ""; - defaultPatter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Text(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.internal_static_Text_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.internal_static_Text_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_PATTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultPatter_ = ""; - /** - * string default_patter = 2; - * @return The defaultPatter. - */ - @java.lang.Override - public java.lang.String getDefaultPatter() { - java.lang.Object ref = defaultPatter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultPatter_ = s; - return s; - } - } - /** - * string default_patter = 2; - * @return The bytes for defaultPatter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultPatterBytes() { - java.lang.Object ref = defaultPatter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultPatter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_FORMAT_FIELD_NUMBER = 3; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat defaultFormat_; - /** - * .TextFormat default_format = 3; - * @return Whether the defaultFormat field is set. - */ - @java.lang.Override - public boolean hasDefaultFormat() { - return defaultFormat_ != null; - } - /** - * .TextFormat default_format = 3; - * @return The defaultFormat. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getDefaultFormat() { - return defaultFormat_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : defaultFormat_; - } - /** - * .TextFormat default_format = 3; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder getDefaultFormatOrBuilder() { - return defaultFormat_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : defaultFormat_; - } - - public static final int PIECES_LIST_FIELD_NUMBER = 4; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece piecesList_; - /** - * .TextPiece pieces_list = 4; - * @return Whether the piecesList field is set. - */ - @java.lang.Override - public boolean hasPiecesList() { - return piecesList_ != null; - } - /** - * .TextPiece pieces_list = 4; - * @return The piecesList. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece getPiecesList() { - return piecesList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance() : piecesList_; - } - /** - * .TextPiece pieces_list = 4; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder getPiecesListOrBuilder() { - return piecesList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance() : piecesList_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPatter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultPatter_); - } - if (defaultFormat_ != null) { - output.writeMessage(3, getDefaultFormat()); - } - if (piecesList_ != null) { - output.writeMessage(4, getPiecesList()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPatter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultPatter_); - } - if (defaultFormat_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultFormat()); - } - if (piecesList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPiecesList()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getDefaultPatter() - .equals(other.getDefaultPatter())) return false; - if (hasDefaultFormat() != other.hasDefaultFormat()) return false; - if (hasDefaultFormat()) { - if (!getDefaultFormat() - .equals(other.getDefaultFormat())) return false; - } - if (hasPiecesList() != other.hasPiecesList()) return false; - if (hasPiecesList()) { - if (!getPiecesList() - .equals(other.getPiecesList())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DEFAULT_PATTER_FIELD_NUMBER; - hash = (53 * hash) + getDefaultPatter().hashCode(); - if (hasDefaultFormat()) { - hash = (37 * hash) + DEFAULT_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getDefaultFormat().hashCode(); - } - if (hasPiecesList()) { - hash = (37 * hash) + PIECES_LIST_FIELD_NUMBER; - hash = (53 * hash) + getPiecesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Text} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Text) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.TextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.internal_static_Text_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.internal_static_Text_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - key_ = ""; - defaultPatter_ = ""; - defaultFormat_ = null; - if (defaultFormatBuilder_ != null) { - defaultFormatBuilder_.dispose(); - defaultFormatBuilder_ = null; - } - piecesList_ = null; - if (piecesListBuilder_ != null) { - piecesListBuilder_.dispose(); - piecesListBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.internal_static_Text_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultPatter_ = defaultPatter_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.defaultFormat_ = defaultFormatBuilder_ == null - ? defaultFormat_ - : defaultFormatBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.piecesList_ = piecesListBuilder_ == null - ? piecesList_ - : piecesListBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDefaultPatter().isEmpty()) { - defaultPatter_ = other.defaultPatter_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasDefaultFormat()) { - mergeDefaultFormat(other.getDefaultFormat()); - } - if (other.hasPiecesList()) { - mergePiecesList(other.getPiecesList()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - defaultPatter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getDefaultFormatFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getPiecesListFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - key_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - key_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object defaultPatter_ = ""; - /** - * string default_patter = 2; - * @return The defaultPatter. - */ - public java.lang.String getDefaultPatter() { - java.lang.Object ref = defaultPatter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultPatter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string default_patter = 2; - * @return The bytes for defaultPatter. - */ - public com.google.protobuf.ByteString - getDefaultPatterBytes() { - java.lang.Object ref = defaultPatter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultPatter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string default_patter = 2; - * @param value The defaultPatter to set. - * @return This builder for chaining. - */ - public Builder setDefaultPatter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultPatter_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string default_patter = 2; - * @return This builder for chaining. - */ - public Builder clearDefaultPatter() { - defaultPatter_ = getDefaultInstance().getDefaultPatter(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string default_patter = 2; - * @param value The bytes for defaultPatter to set. - * @return This builder for chaining. - */ - public Builder setDefaultPatterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultPatter_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat defaultFormat_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder> defaultFormatBuilder_; - /** - * .TextFormat default_format = 3; - * @return Whether the defaultFormat field is set. - */ - public boolean hasDefaultFormat() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .TextFormat default_format = 3; - * @return The defaultFormat. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getDefaultFormat() { - if (defaultFormatBuilder_ == null) { - return defaultFormat_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : defaultFormat_; - } else { - return defaultFormatBuilder_.getMessage(); - } - } - /** - * .TextFormat default_format = 3; - */ - public Builder setDefaultFormat(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat value) { - if (defaultFormatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultFormat_ = value; - } else { - defaultFormatBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .TextFormat default_format = 3; - */ - public Builder setDefaultFormat( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder builderForValue) { - if (defaultFormatBuilder_ == null) { - defaultFormat_ = builderForValue.build(); - } else { - defaultFormatBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .TextFormat default_format = 3; - */ - public Builder mergeDefaultFormat(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat value) { - if (defaultFormatBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - defaultFormat_ != null && - defaultFormat_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance()) { - getDefaultFormatBuilder().mergeFrom(value); - } else { - defaultFormat_ = value; - } - } else { - defaultFormatBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .TextFormat default_format = 3; - */ - public Builder clearDefaultFormat() { - bitField0_ = (bitField0_ & ~0x00000004); - defaultFormat_ = null; - if (defaultFormatBuilder_ != null) { - defaultFormatBuilder_.dispose(); - defaultFormatBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextFormat default_format = 3; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder getDefaultFormatBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getDefaultFormatFieldBuilder().getBuilder(); - } - /** - * .TextFormat default_format = 3; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder getDefaultFormatOrBuilder() { - if (defaultFormatBuilder_ != null) { - return defaultFormatBuilder_.getMessageOrBuilder(); - } else { - return defaultFormat_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : defaultFormat_; - } - } - /** - * .TextFormat default_format = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder> - getDefaultFormatFieldBuilder() { - if (defaultFormatBuilder_ == null) { - defaultFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder>( - getDefaultFormat(), - getParentForChildren(), - isClean()); - defaultFormat_ = null; - } - return defaultFormatBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece piecesList_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder> piecesListBuilder_; - /** - * .TextPiece pieces_list = 4; - * @return Whether the piecesList field is set. - */ - public boolean hasPiecesList() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * .TextPiece pieces_list = 4; - * @return The piecesList. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece getPiecesList() { - if (piecesListBuilder_ == null) { - return piecesList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance() : piecesList_; - } else { - return piecesListBuilder_.getMessage(); - } - } - /** - * .TextPiece pieces_list = 4; - */ - public Builder setPiecesList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece value) { - if (piecesListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - piecesList_ = value; - } else { - piecesListBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .TextPiece pieces_list = 4; - */ - public Builder setPiecesList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder builderForValue) { - if (piecesListBuilder_ == null) { - piecesList_ = builderForValue.build(); - } else { - piecesListBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .TextPiece pieces_list = 4; - */ - public Builder mergePiecesList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece value) { - if (piecesListBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - piecesList_ != null && - piecesList_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance()) { - getPiecesListBuilder().mergeFrom(value); - } else { - piecesList_ = value; - } - } else { - piecesListBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .TextPiece pieces_list = 4; - */ - public Builder clearPiecesList() { - bitField0_ = (bitField0_ & ~0x00000008); - piecesList_ = null; - if (piecesListBuilder_ != null) { - piecesListBuilder_.dispose(); - piecesListBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextPiece pieces_list = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder getPiecesListBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getPiecesListFieldBuilder().getBuilder(); - } - /** - * .TextPiece pieces_list = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder getPiecesListOrBuilder() { - if (piecesListBuilder_ != null) { - return piecesListBuilder_.getMessageOrBuilder(); - } else { - return piecesList_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance() : piecesList_; - } - } - /** - * .TextPiece pieces_list = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder> - getPiecesListFieldBuilder() { - if (piecesListBuilder_ == null) { - piecesListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder>( - getPiecesList(), - getParentForChildren(), - isClean()); - piecesList_ = null; - } - return piecesListBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:Text) - } - - // @@protoc_insertion_point(class_scope:Text) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Text parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextOuterClass.Text getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Text_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Text_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nText.proto\032\020TextFormat.proto\032\017TextPiec" + - "e.proto\"q\n\004Text\022\013\n\003key\030\001 \001(\t\022\026\n\016default_" + - "patter\030\002 \001(\t\022#\n\016default_format\030\003 \001(\0132\013.T" + - "extFormat\022\037\n\013pieces_list\030\004 \001(\0132\n.TextPie" + - "ceB8\n6tech.ordinaryroad.live.chat.client" + - ".douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.getDescriptor(), - }); - internal_static_Text_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Text_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Text_descriptor, - new java.lang.String[] { "Key", "DefaultPatter", "DefaultFormat", "PiecesList", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceGiftOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceGiftOuterClass.java deleted file mode 100644 index 7e8d34f2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceGiftOuterClass.java +++ /dev/null @@ -1,749 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextPieceGift.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextPieceGiftOuterClass { - private TextPieceGiftOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextPieceGiftOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextPieceGift) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 gift_id = 1; - * @return The giftId. - */ - long getGiftId(); - - /** - * .PatternRef name_ref = 2; - * @return Whether the nameRef field is set. - */ - boolean hasNameRef(); - /** - * .PatternRef name_ref = 2; - * @return The nameRef. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef getNameRef(); - /** - * .PatternRef name_ref = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder getNameRefOrBuilder(); - } - /** - * Protobuf type {@code TextPieceGift} - */ - public static final class TextPieceGift extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextPieceGift) - TextPieceGiftOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextPieceGift.newBuilder() to construct. - private TextPieceGift(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextPieceGift() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextPieceGift(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.internal_static_TextPieceGift_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.internal_static_TextPieceGift_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder.class); - } - - public static final int GIFT_ID_FIELD_NUMBER = 1; - private long giftId_ = 0L; - /** - * uint64 gift_id = 1; - * @return The giftId. - */ - @java.lang.Override - public long getGiftId() { - return giftId_; - } - - public static final int NAME_REF_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef nameRef_; - /** - * .PatternRef name_ref = 2; - * @return Whether the nameRef field is set. - */ - @java.lang.Override - public boolean hasNameRef() { - return nameRef_ != null; - } - /** - * .PatternRef name_ref = 2; - * @return The nameRef. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef getNameRef() { - return nameRef_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance() : nameRef_; - } - /** - * .PatternRef name_ref = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder getNameRefOrBuilder() { - return nameRef_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance() : nameRef_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (giftId_ != 0L) { - output.writeUInt64(1, giftId_); - } - if (nameRef_ != null) { - output.writeMessage(2, getNameRef()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (giftId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, giftId_); - } - if (nameRef_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNameRef()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift) obj; - - if (getGiftId() - != other.getGiftId()) return false; - if (hasNameRef() != other.hasNameRef()) return false; - if (hasNameRef()) { - if (!getNameRef() - .equals(other.getNameRef())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GIFT_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getGiftId()); - if (hasNameRef()) { - hash = (37 * hash) + NAME_REF_FIELD_NUMBER; - hash = (53 * hash) + getNameRef().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextPieceGift} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextPieceGift) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.internal_static_TextPieceGift_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.internal_static_TextPieceGift_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - giftId_ = 0L; - nameRef_ = null; - if (nameRefBuilder_ != null) { - nameRefBuilder_.dispose(); - nameRefBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.internal_static_TextPieceGift_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.giftId_ = giftId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nameRef_ = nameRefBuilder_ == null - ? nameRef_ - : nameRefBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance()) return this; - if (other.getGiftId() != 0L) { - setGiftId(other.getGiftId()); - } - if (other.hasNameRef()) { - mergeNameRef(other.getNameRef()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - giftId_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getNameRefFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long giftId_ ; - /** - * uint64 gift_id = 1; - * @return The giftId. - */ - @java.lang.Override - public long getGiftId() { - return giftId_; - } - /** - * uint64 gift_id = 1; - * @param value The giftId to set. - * @return This builder for chaining. - */ - public Builder setGiftId(long value) { - - giftId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 gift_id = 1; - * @return This builder for chaining. - */ - public Builder clearGiftId() { - bitField0_ = (bitField0_ & ~0x00000001); - giftId_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef nameRef_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder> nameRefBuilder_; - /** - * .PatternRef name_ref = 2; - * @return Whether the nameRef field is set. - */ - public boolean hasNameRef() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .PatternRef name_ref = 2; - * @return The nameRef. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef getNameRef() { - if (nameRefBuilder_ == null) { - return nameRef_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance() : nameRef_; - } else { - return nameRefBuilder_.getMessage(); - } - } - /** - * .PatternRef name_ref = 2; - */ - public Builder setNameRef(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef value) { - if (nameRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nameRef_ = value; - } else { - nameRefBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .PatternRef name_ref = 2; - */ - public Builder setNameRef( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder builderForValue) { - if (nameRefBuilder_ == null) { - nameRef_ = builderForValue.build(); - } else { - nameRefBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .PatternRef name_ref = 2; - */ - public Builder mergeNameRef(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef value) { - if (nameRefBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - nameRef_ != null && - nameRef_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance()) { - getNameRefBuilder().mergeFrom(value); - } else { - nameRef_ = value; - } - } else { - nameRefBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .PatternRef name_ref = 2; - */ - public Builder clearNameRef() { - bitField0_ = (bitField0_ & ~0x00000002); - nameRef_ = null; - if (nameRefBuilder_ != null) { - nameRefBuilder_.dispose(); - nameRefBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .PatternRef name_ref = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder getNameRefBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getNameRefFieldBuilder().getBuilder(); - } - /** - * .PatternRef name_ref = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder getNameRefOrBuilder() { - if (nameRefBuilder_ != null) { - return nameRefBuilder_.getMessageOrBuilder(); - } else { - return nameRef_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.getDefaultInstance() : nameRef_; - } - } - /** - * .PatternRef name_ref = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder> - getNameRefFieldBuilder() { - if (nameRefBuilder_ == null) { - nameRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRef.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.PatternRefOrBuilder>( - getNameRef(), - getParentForChildren(), - isClean()); - nameRef_ = null; - } - return nameRefBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextPieceGift) - } - - // @@protoc_insertion_point(class_scope:TextPieceGift) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPieceGift parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextPieceGift_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextPieceGift_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023TextPieceGift.proto\032\020PatternRef.proto\"" + - "?\n\rTextPieceGift\022\017\n\007gift_id\030\001 \001(\004\022\035\n\010nam" + - "e_ref\030\002 \001(\0132\013.PatternRefB8\n6tech.ordinar" + - "yroad.live.chat.client.douyin.protobuf.d" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.getDescriptor(), - }); - internal_static_TextPieceGift_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextPieceGift_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextPieceGift_descriptor, - new java.lang.String[] { "GiftId", "NameRef", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.PatternRefOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceHeartOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceHeartOuterClass.java deleted file mode 100644 index 7e4c99c7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceHeartOuterClass.java +++ /dev/null @@ -1,625 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextPieceHeart.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextPieceHeartOuterClass { - private TextPieceHeartOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextPieceHeartOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextPieceHeart) - com.google.protobuf.MessageOrBuilder { - - /** - * string color = 1; - * @return The color. - */ - java.lang.String getColor(); - /** - * string color = 1; - * @return The bytes for color. - */ - com.google.protobuf.ByteString - getColorBytes(); - } - /** - * Protobuf type {@code TextPieceHeart} - */ - public static final class TextPieceHeart extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextPieceHeart) - TextPieceHeartOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextPieceHeart.newBuilder() to construct. - private TextPieceHeart(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextPieceHeart() { - color_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextPieceHeart(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.internal_static_TextPieceHeart_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.internal_static_TextPieceHeart_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder.class); - } - - public static final int COLOR_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object color_ = ""; - /** - * string color = 1; - * @return The color. - */ - @java.lang.Override - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - color_ = s; - return s; - } - } - /** - * string color = 1; - * @return The bytes for color. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, color_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, color_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart) obj; - - if (!getColor() - .equals(other.getColor())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLOR_FIELD_NUMBER; - hash = (53 * hash) + getColor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextPieceHeart} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextPieceHeart) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.internal_static_TextPieceHeart_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.internal_static_TextPieceHeart_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - color_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.internal_static_TextPieceHeart_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.color_ = color_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance()) return this; - if (!other.getColor().isEmpty()) { - color_ = other.color_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - color_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object color_ = ""; - /** - * string color = 1; - * @return The color. - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - color_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string color = 1; - * @return The bytes for color. - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string color = 1; - * @param value The color to set. - * @return This builder for chaining. - */ - public Builder setColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - color_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string color = 1; - * @return This builder for chaining. - */ - public Builder clearColor() { - color_ = getDefaultInstance().getColor(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string color = 1; - * @param value The bytes for color to set. - * @return This builder for chaining. - */ - public Builder setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - color_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextPieceHeart) - } - - // @@protoc_insertion_point(class_scope:TextPieceHeart) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPieceHeart parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextPieceHeart_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextPieceHeart_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024TextPieceHeart.proto\"\037\n\016TextPieceHeart" + - "\022\r\n\005color\030\001 \001(\tB8\n6tech.ordinaryroad.liv" + - "e.chat.client.douyin.protobuf.dtob\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TextPieceHeart_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextPieceHeart_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextPieceHeart_descriptor, - new java.lang.String[] { "Color", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceImageOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceImageOuterClass.java deleted file mode 100644 index 8d3adcb3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceImageOuterClass.java +++ /dev/null @@ -1,750 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextPieceImage.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextPieceImageOuterClass { - private TextPieceImageOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextPieceImageOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextPieceImage) - com.google.protobuf.MessageOrBuilder { - - /** - * .Image image = 1; - * @return Whether the image field is set. - */ - boolean hasImage(); - /** - * .Image image = 1; - * @return The image. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImage(); - /** - * .Image image = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImageOrBuilder(); - - /** - * float scaling_rate = 2; - * @return The scalingRate. - */ - float getScalingRate(); - } - /** - * Protobuf type {@code TextPieceImage} - */ - public static final class TextPieceImage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextPieceImage) - TextPieceImageOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextPieceImage.newBuilder() to construct. - private TextPieceImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextPieceImage() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextPieceImage(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.internal_static_TextPieceImage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.internal_static_TextPieceImage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder.class); - } - - public static final int IMAGE_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image image_; - /** - * .Image image = 1; - * @return Whether the image field is set. - */ - @java.lang.Override - public boolean hasImage() { - return image_ != null; - } - /** - * .Image image = 1; - * @return The image. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImage() { - return image_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } - /** - * .Image image = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImageOrBuilder() { - return image_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } - - public static final int SCALING_RATE_FIELD_NUMBER = 2; - private float scalingRate_ = 0F; - /** - * float scaling_rate = 2; - * @return The scalingRate. - */ - @java.lang.Override - public float getScalingRate() { - return scalingRate_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (image_ != null) { - output.writeMessage(1, getImage()); - } - if (java.lang.Float.floatToRawIntBits(scalingRate_) != 0) { - output.writeFloat(2, scalingRate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (image_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); - } - if (java.lang.Float.floatToRawIntBits(scalingRate_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, scalingRate_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage) obj; - - if (hasImage() != other.hasImage()) return false; - if (hasImage()) { - if (!getImage() - .equals(other.getImage())) return false; - } - if (java.lang.Float.floatToIntBits(getScalingRate()) - != java.lang.Float.floatToIntBits( - other.getScalingRate())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasImage()) { - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - } - hash = (37 * hash) + SCALING_RATE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getScalingRate()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextPieceImage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextPieceImage) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.internal_static_TextPieceImage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.internal_static_TextPieceImage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - image_ = null; - if (imageBuilder_ != null) { - imageBuilder_.dispose(); - imageBuilder_ = null; - } - scalingRate_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.internal_static_TextPieceImage_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.image_ = imageBuilder_ == null - ? image_ - : imageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.scalingRate_ = scalingRate_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance()) return this; - if (other.hasImage()) { - mergeImage(other.getImage()); - } - if (other.getScalingRate() != 0F) { - setScalingRate(other.getScalingRate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getImageFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - scalingRate_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image image_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> imageBuilder_; - /** - * .Image image = 1; - * @return Whether the image field is set. - */ - public boolean hasImage() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Image image = 1; - * @return The image. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImage() { - if (imageBuilder_ == null) { - return image_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } else { - return imageBuilder_.getMessage(); - } - } - /** - * .Image image = 1; - */ - public Builder setImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - image_ = value; - } else { - imageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public Builder setImage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (imageBuilder_ == null) { - image_ = builderForValue.build(); - } else { - imageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public Builder mergeImage(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imageBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - image_ != null && - image_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getImageBuilder().mergeFrom(value); - } else { - image_ = value; - } - } else { - imageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public Builder clearImage() { - bitField0_ = (bitField0_ & ~0x00000001); - image_ = null; - if (imageBuilder_ != null) { - imageBuilder_.dispose(); - imageBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image image = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getImageBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getImageFieldBuilder().getBuilder(); - } - /** - * .Image image = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImageOrBuilder() { - if (imageBuilder_ != null) { - return imageBuilder_.getMessageOrBuilder(); - } else { - return image_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : image_; - } - } - /** - * .Image image = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getImageFieldBuilder() { - if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); - image_ = null; - } - return imageBuilder_; - } - - private float scalingRate_ ; - /** - * float scaling_rate = 2; - * @return The scalingRate. - */ - @java.lang.Override - public float getScalingRate() { - return scalingRate_; - } - /** - * float scaling_rate = 2; - * @param value The scalingRate to set. - * @return This builder for chaining. - */ - public Builder setScalingRate(float value) { - - scalingRate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * float scaling_rate = 2; - * @return This builder for chaining. - */ - public Builder clearScalingRate() { - bitField0_ = (bitField0_ & ~0x00000002); - scalingRate_ = 0F; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextPieceImage) - } - - // @@protoc_insertion_point(class_scope:TextPieceImage) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPieceImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextPieceImage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextPieceImage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024TextPieceImage.proto\032\013Image.proto\"=\n\016T" + - "extPieceImage\022\025\n\005image\030\001 \001(\0132\006.Image\022\024\n\014" + - "scaling_rate\030\002 \001(\002B8\n6tech.ordinaryroad." + - "live.chat.client.douyin.protobuf.dtob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - }); - internal_static_TextPieceImage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextPieceImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextPieceImage_descriptor, - new java.lang.String[] { "Image", "ScalingRate", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceOuterClass.java deleted file mode 100644 index 3eecce98..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceOuterClass.java +++ /dev/null @@ -1,1895 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextPiece.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextPieceOuterClass { - private TextPieceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextPieceOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextPiece) - com.google.protobuf.MessageOrBuilder { - - /** - * bool type = 1; - * @return The type. - */ - boolean getType(); - - /** - * .TextFormat format = 2; - * @return Whether the format field is set. - */ - boolean hasFormat(); - /** - * .TextFormat format = 2; - * @return The format. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getFormat(); - /** - * .TextFormat format = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder getFormatOrBuilder(); - - /** - * string string_value = 3; - * @return The stringValue. - */ - java.lang.String getStringValue(); - /** - * string string_value = 3; - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * .TextPieceUser user_value = 4; - * @return Whether the userValue field is set. - */ - boolean hasUserValue(); - /** - * .TextPieceUser user_value = 4; - * @return The userValue. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser getUserValue(); - /** - * .TextPieceUser user_value = 4; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder getUserValueOrBuilder(); - - /** - * .TextPieceGift gift_value = 5; - * @return Whether the giftValue field is set. - */ - boolean hasGiftValue(); - /** - * .TextPieceGift gift_value = 5; - * @return The giftValue. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift getGiftValue(); - /** - * .TextPieceGift gift_value = 5; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder getGiftValueOrBuilder(); - - /** - * .TextPieceHeart heart_value = 6; - * @return Whether the heartValue field is set. - */ - boolean hasHeartValue(); - /** - * .TextPieceHeart heart_value = 6; - * @return The heartValue. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart getHeartValue(); - /** - * .TextPieceHeart heart_value = 6; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder getHeartValueOrBuilder(); - - /** - * .TextPiecePatternRef pattern_ref_value = 7; - * @return Whether the patternRefValue field is set. - */ - boolean hasPatternRefValue(); - /** - * .TextPiecePatternRef pattern_ref_value = 7; - * @return The patternRefValue. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef getPatternRefValue(); - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder getPatternRefValueOrBuilder(); - - /** - * .TextPieceImage image_value = 8; - * @return Whether the imageValue field is set. - */ - boolean hasImageValue(); - /** - * .TextPieceImage image_value = 8; - * @return The imageValue. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage getImageValue(); - /** - * .TextPieceImage image_value = 8; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder getImageValueOrBuilder(); - } - /** - * Protobuf type {@code TextPiece} - */ - public static final class TextPiece extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextPiece) - TextPieceOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextPiece.newBuilder() to construct. - private TextPiece(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextPiece() { - stringValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextPiece(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.internal_static_TextPiece_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.internal_static_TextPiece_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private boolean type_ = false; - /** - * bool type = 1; - * @return The type. - */ - @java.lang.Override - public boolean getType() { - return type_; - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat format_; - /** - * .TextFormat format = 2; - * @return Whether the format field is set. - */ - @java.lang.Override - public boolean hasFormat() { - return format_ != null; - } - /** - * .TextFormat format = 2; - * @return The format. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getFormat() { - return format_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : format_; - } - /** - * .TextFormat format = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder getFormatOrBuilder() { - return format_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : format_; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object stringValue_ = ""; - /** - * string string_value = 3; - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stringValue_ = s; - return s; - } - } - /** - * string string_value = 3; - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_VALUE_FIELD_NUMBER = 4; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser userValue_; - /** - * .TextPieceUser user_value = 4; - * @return Whether the userValue field is set. - */ - @java.lang.Override - public boolean hasUserValue() { - return userValue_ != null; - } - /** - * .TextPieceUser user_value = 4; - * @return The userValue. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser getUserValue() { - return userValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance() : userValue_; - } - /** - * .TextPieceUser user_value = 4; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder getUserValueOrBuilder() { - return userValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance() : userValue_; - } - - public static final int GIFT_VALUE_FIELD_NUMBER = 5; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift giftValue_; - /** - * .TextPieceGift gift_value = 5; - * @return Whether the giftValue field is set. - */ - @java.lang.Override - public boolean hasGiftValue() { - return giftValue_ != null; - } - /** - * .TextPieceGift gift_value = 5; - * @return The giftValue. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift getGiftValue() { - return giftValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance() : giftValue_; - } - /** - * .TextPieceGift gift_value = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder getGiftValueOrBuilder() { - return giftValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance() : giftValue_; - } - - public static final int HEART_VALUE_FIELD_NUMBER = 6; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart heartValue_; - /** - * .TextPieceHeart heart_value = 6; - * @return Whether the heartValue field is set. - */ - @java.lang.Override - public boolean hasHeartValue() { - return heartValue_ != null; - } - /** - * .TextPieceHeart heart_value = 6; - * @return The heartValue. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart getHeartValue() { - return heartValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance() : heartValue_; - } - /** - * .TextPieceHeart heart_value = 6; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder getHeartValueOrBuilder() { - return heartValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance() : heartValue_; - } - - public static final int PATTERN_REF_VALUE_FIELD_NUMBER = 7; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef patternRefValue_; - /** - * .TextPiecePatternRef pattern_ref_value = 7; - * @return Whether the patternRefValue field is set. - */ - @java.lang.Override - public boolean hasPatternRefValue() { - return patternRefValue_ != null; - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - * @return The patternRefValue. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef getPatternRefValue() { - return patternRefValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance() : patternRefValue_; - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder getPatternRefValueOrBuilder() { - return patternRefValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance() : patternRefValue_; - } - - public static final int IMAGE_VALUE_FIELD_NUMBER = 8; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage imageValue_; - /** - * .TextPieceImage image_value = 8; - * @return Whether the imageValue field is set. - */ - @java.lang.Override - public boolean hasImageValue() { - return imageValue_ != null; - } - /** - * .TextPieceImage image_value = 8; - * @return The imageValue. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage getImageValue() { - return imageValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance() : imageValue_; - } - /** - * .TextPieceImage image_value = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder getImageValueOrBuilder() { - return imageValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance() : imageValue_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != false) { - output.writeBool(1, type_); - } - if (format_ != null) { - output.writeMessage(2, getFormat()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stringValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, stringValue_); - } - if (userValue_ != null) { - output.writeMessage(4, getUserValue()); - } - if (giftValue_ != null) { - output.writeMessage(5, getGiftValue()); - } - if (heartValue_ != null) { - output.writeMessage(6, getHeartValue()); - } - if (patternRefValue_ != null) { - output.writeMessage(7, getPatternRefValue()); - } - if (imageValue_ != null) { - output.writeMessage(8, getImageValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, type_); - } - if (format_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFormat()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stringValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, stringValue_); - } - if (userValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUserValue()); - } - if (giftValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getGiftValue()); - } - if (heartValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getHeartValue()); - } - if (patternRefValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getPatternRefValue()); - } - if (imageValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getImageValue()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece) obj; - - if (getType() - != other.getType()) return false; - if (hasFormat() != other.hasFormat()) return false; - if (hasFormat()) { - if (!getFormat() - .equals(other.getFormat())) return false; - } - if (!getStringValue() - .equals(other.getStringValue())) return false; - if (hasUserValue() != other.hasUserValue()) return false; - if (hasUserValue()) { - if (!getUserValue() - .equals(other.getUserValue())) return false; - } - if (hasGiftValue() != other.hasGiftValue()) return false; - if (hasGiftValue()) { - if (!getGiftValue() - .equals(other.getGiftValue())) return false; - } - if (hasHeartValue() != other.hasHeartValue()) return false; - if (hasHeartValue()) { - if (!getHeartValue() - .equals(other.getHeartValue())) return false; - } - if (hasPatternRefValue() != other.hasPatternRefValue()) return false; - if (hasPatternRefValue()) { - if (!getPatternRefValue() - .equals(other.getPatternRefValue())) return false; - } - if (hasImageValue() != other.hasImageValue()) return false; - if (hasImageValue()) { - if (!getImageValue() - .equals(other.getImageValue())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getType()); - if (hasFormat()) { - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - } - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - if (hasUserValue()) { - hash = (37 * hash) + USER_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getUserValue().hashCode(); - } - if (hasGiftValue()) { - hash = (37 * hash) + GIFT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getGiftValue().hashCode(); - } - if (hasHeartValue()) { - hash = (37 * hash) + HEART_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getHeartValue().hashCode(); - } - if (hasPatternRefValue()) { - hash = (37 * hash) + PATTERN_REF_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getPatternRefValue().hashCode(); - } - if (hasImageValue()) { - hash = (37 * hash) + IMAGE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getImageValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextPiece} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextPiece) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPieceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.internal_static_TextPiece_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.internal_static_TextPiece_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = false; - format_ = null; - if (formatBuilder_ != null) { - formatBuilder_.dispose(); - formatBuilder_ = null; - } - stringValue_ = ""; - userValue_ = null; - if (userValueBuilder_ != null) { - userValueBuilder_.dispose(); - userValueBuilder_ = null; - } - giftValue_ = null; - if (giftValueBuilder_ != null) { - giftValueBuilder_.dispose(); - giftValueBuilder_ = null; - } - heartValue_ = null; - if (heartValueBuilder_ != null) { - heartValueBuilder_.dispose(); - heartValueBuilder_ = null; - } - patternRefValue_ = null; - if (patternRefValueBuilder_ != null) { - patternRefValueBuilder_.dispose(); - patternRefValueBuilder_ = null; - } - imageValue_ = null; - if (imageValueBuilder_ != null) { - imageValueBuilder_.dispose(); - imageValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.internal_static_TextPiece_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.format_ = formatBuilder_ == null - ? format_ - : formatBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.stringValue_ = stringValue_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.userValue_ = userValueBuilder_ == null - ? userValue_ - : userValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.giftValue_ = giftValueBuilder_ == null - ? giftValue_ - : giftValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.heartValue_ = heartValueBuilder_ == null - ? heartValue_ - : heartValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.patternRefValue_ = patternRefValueBuilder_ == null - ? patternRefValue_ - : patternRefValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.imageValue_ = imageValueBuilder_ == null - ? imageValue_ - : imageValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece.getDefaultInstance()) return this; - if (other.getType() != false) { - setType(other.getType()); - } - if (other.hasFormat()) { - mergeFormat(other.getFormat()); - } - if (!other.getStringValue().isEmpty()) { - stringValue_ = other.stringValue_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasUserValue()) { - mergeUserValue(other.getUserValue()); - } - if (other.hasGiftValue()) { - mergeGiftValue(other.getGiftValue()); - } - if (other.hasHeartValue()) { - mergeHeartValue(other.getHeartValue()); - } - if (other.hasPatternRefValue()) { - mergePatternRefValue(other.getPatternRefValue()); - } - if (other.hasImageValue()) { - mergeImageValue(other.getImageValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - type_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getFormatFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - stringValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getUserValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getGiftValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getHeartValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getPatternRefValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getImageValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean type_ ; - /** - * bool type = 1; - * @return The type. - */ - @java.lang.Override - public boolean getType() { - return type_; - } - /** - * bool type = 1; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(boolean value) { - - type_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool type = 1; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = false; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat format_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder> formatBuilder_; - /** - * .TextFormat format = 2; - * @return Whether the format field is set. - */ - public boolean hasFormat() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .TextFormat format = 2; - * @return The format. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat getFormat() { - if (formatBuilder_ == null) { - return format_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : format_; - } else { - return formatBuilder_.getMessage(); - } - } - /** - * .TextFormat format = 2; - */ - public Builder setFormat(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat value) { - if (formatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - format_ = value; - } else { - formatBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .TextFormat format = 2; - */ - public Builder setFormat( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder builderForValue) { - if (formatBuilder_ == null) { - format_ = builderForValue.build(); - } else { - formatBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .TextFormat format = 2; - */ - public Builder mergeFormat(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat value) { - if (formatBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - format_ != null && - format_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance()) { - getFormatBuilder().mergeFrom(value); - } else { - format_ = value; - } - } else { - formatBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .TextFormat format = 2; - */ - public Builder clearFormat() { - bitField0_ = (bitField0_ & ~0x00000002); - format_ = null; - if (formatBuilder_ != null) { - formatBuilder_.dispose(); - formatBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextFormat format = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder getFormatBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFormatFieldBuilder().getBuilder(); - } - /** - * .TextFormat format = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder getFormatOrBuilder() { - if (formatBuilder_ != null) { - return formatBuilder_.getMessageOrBuilder(); - } else { - return format_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.getDefaultInstance() : format_; - } - } - /** - * .TextFormat format = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder> - getFormatFieldBuilder() { - if (formatBuilder_ == null) { - formatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormat.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.TextFormatOrBuilder>( - getFormat(), - getParentForChildren(), - isClean()); - format_ = null; - } - return formatBuilder_; - } - - private java.lang.Object stringValue_ = ""; - /** - * string string_value = 3; - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - stringValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string string_value = 3; - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string string_value = 3; - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - stringValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string string_value = 3; - * @return This builder for chaining. - */ - public Builder clearStringValue() { - stringValue_ = getDefaultInstance().getStringValue(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string string_value = 3; - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - stringValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser userValue_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder> userValueBuilder_; - /** - * .TextPieceUser user_value = 4; - * @return Whether the userValue field is set. - */ - public boolean hasUserValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * .TextPieceUser user_value = 4; - * @return The userValue. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser getUserValue() { - if (userValueBuilder_ == null) { - return userValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance() : userValue_; - } else { - return userValueBuilder_.getMessage(); - } - } - /** - * .TextPieceUser user_value = 4; - */ - public Builder setUserValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser value) { - if (userValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userValue_ = value; - } else { - userValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .TextPieceUser user_value = 4; - */ - public Builder setUserValue( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder builderForValue) { - if (userValueBuilder_ == null) { - userValue_ = builderForValue.build(); - } else { - userValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .TextPieceUser user_value = 4; - */ - public Builder mergeUserValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser value) { - if (userValueBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - userValue_ != null && - userValue_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance()) { - getUserValueBuilder().mergeFrom(value); - } else { - userValue_ = value; - } - } else { - userValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .TextPieceUser user_value = 4; - */ - public Builder clearUserValue() { - bitField0_ = (bitField0_ & ~0x00000008); - userValue_ = null; - if (userValueBuilder_ != null) { - userValueBuilder_.dispose(); - userValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextPieceUser user_value = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder getUserValueBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getUserValueFieldBuilder().getBuilder(); - } - /** - * .TextPieceUser user_value = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder getUserValueOrBuilder() { - if (userValueBuilder_ != null) { - return userValueBuilder_.getMessageOrBuilder(); - } else { - return userValue_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance() : userValue_; - } - } - /** - * .TextPieceUser user_value = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder> - getUserValueFieldBuilder() { - if (userValueBuilder_ == null) { - userValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder>( - getUserValue(), - getParentForChildren(), - isClean()); - userValue_ = null; - } - return userValueBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift giftValue_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder> giftValueBuilder_; - /** - * .TextPieceGift gift_value = 5; - * @return Whether the giftValue field is set. - */ - public boolean hasGiftValue() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .TextPieceGift gift_value = 5; - * @return The giftValue. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift getGiftValue() { - if (giftValueBuilder_ == null) { - return giftValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance() : giftValue_; - } else { - return giftValueBuilder_.getMessage(); - } - } - /** - * .TextPieceGift gift_value = 5; - */ - public Builder setGiftValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift value) { - if (giftValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - giftValue_ = value; - } else { - giftValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .TextPieceGift gift_value = 5; - */ - public Builder setGiftValue( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder builderForValue) { - if (giftValueBuilder_ == null) { - giftValue_ = builderForValue.build(); - } else { - giftValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .TextPieceGift gift_value = 5; - */ - public Builder mergeGiftValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift value) { - if (giftValueBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - giftValue_ != null && - giftValue_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance()) { - getGiftValueBuilder().mergeFrom(value); - } else { - giftValue_ = value; - } - } else { - giftValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .TextPieceGift gift_value = 5; - */ - public Builder clearGiftValue() { - bitField0_ = (bitField0_ & ~0x00000010); - giftValue_ = null; - if (giftValueBuilder_ != null) { - giftValueBuilder_.dispose(); - giftValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextPieceGift gift_value = 5; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder getGiftValueBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getGiftValueFieldBuilder().getBuilder(); - } - /** - * .TextPieceGift gift_value = 5; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder getGiftValueOrBuilder() { - if (giftValueBuilder_ != null) { - return giftValueBuilder_.getMessageOrBuilder(); - } else { - return giftValue_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.getDefaultInstance() : giftValue_; - } - } - /** - * .TextPieceGift gift_value = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder> - getGiftValueFieldBuilder() { - if (giftValueBuilder_ == null) { - giftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGift.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.TextPieceGiftOrBuilder>( - getGiftValue(), - getParentForChildren(), - isClean()); - giftValue_ = null; - } - return giftValueBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart heartValue_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder> heartValueBuilder_; - /** - * .TextPieceHeart heart_value = 6; - * @return Whether the heartValue field is set. - */ - public boolean hasHeartValue() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * .TextPieceHeart heart_value = 6; - * @return The heartValue. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart getHeartValue() { - if (heartValueBuilder_ == null) { - return heartValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance() : heartValue_; - } else { - return heartValueBuilder_.getMessage(); - } - } - /** - * .TextPieceHeart heart_value = 6; - */ - public Builder setHeartValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart value) { - if (heartValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - heartValue_ = value; - } else { - heartValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .TextPieceHeart heart_value = 6; - */ - public Builder setHeartValue( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder builderForValue) { - if (heartValueBuilder_ == null) { - heartValue_ = builderForValue.build(); - } else { - heartValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .TextPieceHeart heart_value = 6; - */ - public Builder mergeHeartValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart value) { - if (heartValueBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - heartValue_ != null && - heartValue_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance()) { - getHeartValueBuilder().mergeFrom(value); - } else { - heartValue_ = value; - } - } else { - heartValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .TextPieceHeart heart_value = 6; - */ - public Builder clearHeartValue() { - bitField0_ = (bitField0_ & ~0x00000020); - heartValue_ = null; - if (heartValueBuilder_ != null) { - heartValueBuilder_.dispose(); - heartValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextPieceHeart heart_value = 6; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder getHeartValueBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getHeartValueFieldBuilder().getBuilder(); - } - /** - * .TextPieceHeart heart_value = 6; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder getHeartValueOrBuilder() { - if (heartValueBuilder_ != null) { - return heartValueBuilder_.getMessageOrBuilder(); - } else { - return heartValue_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.getDefaultInstance() : heartValue_; - } - } - /** - * .TextPieceHeart heart_value = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder> - getHeartValueFieldBuilder() { - if (heartValueBuilder_ == null) { - heartValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeart.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.TextPieceHeartOrBuilder>( - getHeartValue(), - getParentForChildren(), - isClean()); - heartValue_ = null; - } - return heartValueBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef patternRefValue_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder> patternRefValueBuilder_; - /** - * .TextPiecePatternRef pattern_ref_value = 7; - * @return Whether the patternRefValue field is set. - */ - public boolean hasPatternRefValue() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - * @return The patternRefValue. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef getPatternRefValue() { - if (patternRefValueBuilder_ == null) { - return patternRefValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance() : patternRefValue_; - } else { - return patternRefValueBuilder_.getMessage(); - } - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - public Builder setPatternRefValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef value) { - if (patternRefValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - patternRefValue_ = value; - } else { - patternRefValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - public Builder setPatternRefValue( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder builderForValue) { - if (patternRefValueBuilder_ == null) { - patternRefValue_ = builderForValue.build(); - } else { - patternRefValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - public Builder mergePatternRefValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef value) { - if (patternRefValueBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - patternRefValue_ != null && - patternRefValue_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance()) { - getPatternRefValueBuilder().mergeFrom(value); - } else { - patternRefValue_ = value; - } - } else { - patternRefValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - public Builder clearPatternRefValue() { - bitField0_ = (bitField0_ & ~0x00000040); - patternRefValue_ = null; - if (patternRefValueBuilder_ != null) { - patternRefValueBuilder_.dispose(); - patternRefValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder getPatternRefValueBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getPatternRefValueFieldBuilder().getBuilder(); - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder getPatternRefValueOrBuilder() { - if (patternRefValueBuilder_ != null) { - return patternRefValueBuilder_.getMessageOrBuilder(); - } else { - return patternRefValue_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance() : patternRefValue_; - } - } - /** - * .TextPiecePatternRef pattern_ref_value = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder> - getPatternRefValueFieldBuilder() { - if (patternRefValueBuilder_ == null) { - patternRefValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder>( - getPatternRefValue(), - getParentForChildren(), - isClean()); - patternRefValue_ = null; - } - return patternRefValueBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage imageValue_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder> imageValueBuilder_; - /** - * .TextPieceImage image_value = 8; - * @return Whether the imageValue field is set. - */ - public boolean hasImageValue() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * .TextPieceImage image_value = 8; - * @return The imageValue. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage getImageValue() { - if (imageValueBuilder_ == null) { - return imageValue_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance() : imageValue_; - } else { - return imageValueBuilder_.getMessage(); - } - } - /** - * .TextPieceImage image_value = 8; - */ - public Builder setImageValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage value) { - if (imageValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - imageValue_ = value; - } else { - imageValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .TextPieceImage image_value = 8; - */ - public Builder setImageValue( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder builderForValue) { - if (imageValueBuilder_ == null) { - imageValue_ = builderForValue.build(); - } else { - imageValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .TextPieceImage image_value = 8; - */ - public Builder mergeImageValue(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage value) { - if (imageValueBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - imageValue_ != null && - imageValue_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance()) { - getImageValueBuilder().mergeFrom(value); - } else { - imageValue_ = value; - } - } else { - imageValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .TextPieceImage image_value = 8; - */ - public Builder clearImageValue() { - bitField0_ = (bitField0_ & ~0x00000080); - imageValue_ = null; - if (imageValueBuilder_ != null) { - imageValueBuilder_.dispose(); - imageValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .TextPieceImage image_value = 8; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder getImageValueBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getImageValueFieldBuilder().getBuilder(); - } - /** - * .TextPieceImage image_value = 8; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder getImageValueOrBuilder() { - if (imageValueBuilder_ != null) { - return imageValueBuilder_.getMessageOrBuilder(); - } else { - return imageValue_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.getDefaultInstance() : imageValue_; - } - } - /** - * .TextPieceImage image_value = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder> - getImageValueFieldBuilder() { - if (imageValueBuilder_ == null) { - imageValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImage.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.TextPieceImageOrBuilder>( - getImageValue(), - getParentForChildren(), - isClean()); - imageValue_ = null; - } - return imageValueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextPiece) - } - - // @@protoc_insertion_point(class_scope:TextPiece) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPiece parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceOuterClass.TextPiece getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextPiece_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextPiece_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017TextPiece.proto\032\020TextFormat.proto\032\024Tex" + - "tPieceImage.proto\032\031TextPiecePatternRef.p" + - "roto\032\024TextPieceHeart.proto\032\023TextPieceGif" + - "t.proto\032\023TextPieceUser.proto\"\221\002\n\tTextPie" + - "ce\022\014\n\004type\030\001 \001(\010\022\033\n\006format\030\002 \001(\0132\013.TextF" + - "ormat\022\024\n\014string_value\030\003 \001(\t\022\"\n\nuser_valu" + - "e\030\004 \001(\0132\016.TextPieceUser\022\"\n\ngift_value\030\005 " + - "\001(\0132\016.TextPieceGift\022$\n\013heart_value\030\006 \001(\013" + - "2\017.TextPieceHeart\022/\n\021pattern_ref_value\030\007" + - " \001(\0132\024.TextPiecePatternRef\022$\n\013image_valu" + - "e\030\010 \001(\0132\017.TextPieceImageB8\n6tech.ordinar" + - "yroad.live.chat.client.douyin.protobuf.d" + - "tob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.getDescriptor(), - }); - internal_static_TextPiece_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextPiece_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextPiece_descriptor, - new java.lang.String[] { "Type", "Format", "StringValue", "UserValue", "GiftValue", "HeartValue", "PatternRefValue", "ImageValue", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextFormatOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceImageOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceHeartOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceGiftOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPiecePatternRefOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPiecePatternRefOuterClass.java deleted file mode 100644 index 1a928e54..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPiecePatternRefOuterClass.java +++ /dev/null @@ -1,773 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextPiecePatternRef.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextPiecePatternRefOuterClass { - private TextPiecePatternRefOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextPiecePatternRefOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextPiecePatternRef) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 1; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string default_pattern = 2; - * @return The defaultPattern. - */ - java.lang.String getDefaultPattern(); - /** - * string default_pattern = 2; - * @return The bytes for defaultPattern. - */ - com.google.protobuf.ByteString - getDefaultPatternBytes(); - } - /** - * Protobuf type {@code TextPiecePatternRef} - */ - public static final class TextPiecePatternRef extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextPiecePatternRef) - TextPiecePatternRefOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextPiecePatternRef.newBuilder() to construct. - private TextPiecePatternRef(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextPiecePatternRef() { - key_ = ""; - defaultPattern_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextPiecePatternRef(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.internal_static_TextPiecePatternRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.internal_static_TextPiecePatternRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_PATTERN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultPattern_ = ""; - /** - * string default_pattern = 2; - * @return The defaultPattern. - */ - @java.lang.Override - public java.lang.String getDefaultPattern() { - java.lang.Object ref = defaultPattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultPattern_ = s; - return s; - } - } - /** - * string default_pattern = 2; - * @return The bytes for defaultPattern. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultPatternBytes() { - java.lang.Object ref = defaultPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPattern_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultPattern_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultPattern_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultPattern_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getDefaultPattern() - .equals(other.getDefaultPattern())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DEFAULT_PATTERN_FIELD_NUMBER; - hash = (53 * hash) + getDefaultPattern().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextPiecePatternRef} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextPiecePatternRef) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRefOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.internal_static_TextPiecePatternRef_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.internal_static_TextPiecePatternRef_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - key_ = ""; - defaultPattern_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.internal_static_TextPiecePatternRef_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.key_ = key_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultPattern_ = defaultPattern_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDefaultPattern().isEmpty()) { - defaultPattern_ = other.defaultPattern_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - key_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - defaultPattern_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * string key = 1; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - key_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string key = 1; - * @return This builder for chaining. - */ - public Builder clearKey() { - key_ = getDefaultInstance().getKey(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - key_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object defaultPattern_ = ""; - /** - * string default_pattern = 2; - * @return The defaultPattern. - */ - public java.lang.String getDefaultPattern() { - java.lang.Object ref = defaultPattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultPattern_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string default_pattern = 2; - * @return The bytes for defaultPattern. - */ - public com.google.protobuf.ByteString - getDefaultPatternBytes() { - java.lang.Object ref = defaultPattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string default_pattern = 2; - * @param value The defaultPattern to set. - * @return This builder for chaining. - */ - public Builder setDefaultPattern( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultPattern_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string default_pattern = 2; - * @return This builder for chaining. - */ - public Builder clearDefaultPattern() { - defaultPattern_ = getDefaultInstance().getDefaultPattern(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string default_pattern = 2; - * @param value The bytes for defaultPattern to set. - * @return This builder for chaining. - */ - public Builder setDefaultPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultPattern_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextPiecePatternRef) - } - - // @@protoc_insertion_point(class_scope:TextPiecePatternRef) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPiecePatternRef parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPiecePatternRefOuterClass.TextPiecePatternRef getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextPiecePatternRef_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextPiecePatternRef_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031TextPiecePatternRef.proto\";\n\023TextPiece" + - "PatternRef\022\013\n\003key\030\001 \001(\t\022\027\n\017default_patte" + - "rn\030\002 \001(\tB8\n6tech.ordinaryroad.live.chat." + - "client.douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_TextPiecePatternRef_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextPiecePatternRef_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextPiecePatternRef_descriptor, - new java.lang.String[] { "Key", "DefaultPattern", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceUserOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceUserOuterClass.java deleted file mode 100644 index 2d0fc474..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/TextPieceUserOuterClass.java +++ /dev/null @@ -1,748 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TextPieceUser.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class TextPieceUserOuterClass { - private TextPieceUserOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TextPieceUserOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextPieceUser) - com.google.protobuf.MessageOrBuilder { - - /** - * .User user = 1; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .User user = 1; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser(); - /** - * .User user = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder(); - - /** - * bool with_colon = 2; - * @return The withColon. - */ - boolean getWithColon(); - } - /** - * Protobuf type {@code TextPieceUser} - */ - public static final class TextPieceUser extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TextPieceUser) - TextPieceUserOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextPieceUser.newBuilder() to construct. - private TextPieceUser(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TextPieceUser() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TextPieceUser(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.internal_static_TextPieceUser_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.internal_static_TextPieceUser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder.class); - } - - public static final int USER_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - /** - * .User user = 1; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .User user = 1; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - /** - * .User user = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - - public static final int WITH_COLON_FIELD_NUMBER = 2; - private boolean withColon_ = false; - /** - * bool with_colon = 2; - * @return The withColon. - */ - @java.lang.Override - public boolean getWithColon() { - return withColon_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (user_ != null) { - output.writeMessage(1, getUser()); - } - if (withColon_ != false) { - output.writeBool(2, withColon_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUser()); - } - if (withColon_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, withColon_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser) obj; - - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getWithColon() - != other.getWithColon()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + WITH_COLON_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWithColon()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextPieceUser} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:TextPieceUser) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.internal_static_TextPieceUser_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.internal_static_TextPieceUser_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - withColon_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.internal_static_TextPieceUser_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.withColon_ = withColon_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser.getDefaultInstance()) return this; - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getWithColon() != false) { - setWithColon(other.getWithColon()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - withColon_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> userBuilder_; - /** - * .User user = 1; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .User user = 1; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .User user = 1; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User user = 1; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User user = 1; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User user = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getUserBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .User user = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance() : user_; - } - } - /** - * .User user = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private boolean withColon_ ; - /** - * bool with_colon = 2; - * @return The withColon. - */ - @java.lang.Override - public boolean getWithColon() { - return withColon_; - } - /** - * bool with_colon = 2; - * @param value The withColon to set. - * @return This builder for chaining. - */ - public Builder setWithColon(boolean value) { - - withColon_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool with_colon = 2; - * @return This builder for chaining. - */ - public Builder clearWithColon() { - bitField0_ = (bitField0_ & ~0x00000002); - withColon_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:TextPieceUser) - } - - // @@protoc_insertion_point(class_scope:TextPieceUser) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPieceUser parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.TextPieceUserOuterClass.TextPieceUser getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_TextPieceUser_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_TextPieceUser_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023TextPieceUser.proto\032\nUser.proto\"8\n\rTex" + - "tPieceUser\022\023\n\004user\030\001 \001(\0132\005.User\022\022\n\nwith_" + - "colon\030\002 \001(\010B8\n6tech.ordinaryroad.live.ch" + - "at.client.douyin.protobuf.dtob\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(), - }); - internal_static_TextPieceUser_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_TextPieceUser_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_TextPieceUser_descriptor, - new java.lang.String[] { "User", "WithColon", }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/UserOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/UserOuterClass.java deleted file mode 100644 index e8d3b539..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/java/tech/ordinaryroad/live/chat/client/douyin/protobuf/dto/UserOuterClass.java +++ /dev/null @@ -1,33138 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: User.proto - -package tech.ordinaryroad.live.chat.client.douyin.protobuf.dto; - -public final class UserOuterClass { - private UserOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UserOrBuilder extends - // @@protoc_insertion_point(interface_extends:User) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 id = 1; - * @return The id. - */ - long getId(); - - /** - * uint64 shortId = 2; - * @return The shortId. - */ - long getShortId(); - - /** - * string nickname = 3; - * @return The nickname. - */ - java.lang.String getNickname(); - /** - * string nickname = 3; - * @return The bytes for nickname. - */ - com.google.protobuf.ByteString - getNicknameBytes(); - - /** - * uint32 gender = 4; - * @return The gender. - */ - int getGender(); - - /** - * string signature = 5; - * @return The signature. - */ - java.lang.String getSignature(); - /** - * string signature = 5; - * @return The bytes for signature. - */ - com.google.protobuf.ByteString - getSignatureBytes(); - - /** - * uint32 level = 6; - * @return The level. - */ - int getLevel(); - - /** - * uint64 birthday = 7; - * @return The birthday. - */ - long getBirthday(); - - /** - * string telephone = 8; - * @return The telephone. - */ - java.lang.String getTelephone(); - /** - * string telephone = 8; - * @return The bytes for telephone. - */ - com.google.protobuf.ByteString - getTelephoneBytes(); - - /** - * .Image avatarThumb = 9; - * @return Whether the avatarThumb field is set. - */ - boolean hasAvatarThumb(); - /** - * .Image avatarThumb = 9; - * @return The avatarThumb. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarThumb(); - /** - * .Image avatarThumb = 9; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarThumbOrBuilder(); - - /** - * .Image avatarMedium = 10; - * @return Whether the avatarMedium field is set. - */ - boolean hasAvatarMedium(); - /** - * .Image avatarMedium = 10; - * @return The avatarMedium. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarMedium(); - /** - * .Image avatarMedium = 10; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarMediumOrBuilder(); - - /** - * .Image avatarLarge = 11; - * @return Whether the avatarLarge field is set. - */ - boolean hasAvatarLarge(); - /** - * .Image avatarLarge = 11; - * @return The avatarLarge. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarLarge(); - /** - * .Image avatarLarge = 11; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarLargeOrBuilder(); - - /** - * bool verified = 12; - * @return The verified. - */ - boolean getVerified(); - - /** - * int32 experience = 13; - * @return The experience. - */ - int getExperience(); - - /** - * string city = 14; - * @return The city. - */ - java.lang.String getCity(); - /** - * string city = 14; - * @return The bytes for city. - */ - com.google.protobuf.ByteString - getCityBytes(); - - /** - * int32 status = 15; - * @return The status. - */ - int getStatus(); - - /** - * int64 createTime = 16; - * @return The createTime. - */ - long getCreateTime(); - - /** - * int64 modifyTime = 17; - * @return The modifyTime. - */ - long getModifyTime(); - - /** - * int32 secret = 18; - * @return The secret. - */ - int getSecret(); - - /** - * string shareQrcodeUri = 19; - * @return The shareQrcodeUri. - */ - java.lang.String getShareQrcodeUri(); - /** - * string shareQrcodeUri = 19; - * @return The bytes for shareQrcodeUri. - */ - com.google.protobuf.ByteString - getShareQrcodeUriBytes(); - - /** - * int32 incomeSharePercent = 20; - * @return The incomeSharePercent. - */ - int getIncomeSharePercent(); - - /** - * .Image badgeImageListList = 21; - * @return Whether the badgeImageListList field is set. - */ - boolean hasBadgeImageListList(); - /** - * .Image badgeImageListList = 21; - * @return The badgeImageListList. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBadgeImageListList(); - /** - * .Image badgeImageListList = 21; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBadgeImageListListOrBuilder(); - - /** - * .User.FollowInfo followInfo = 22; - * @return Whether the followInfo field is set. - */ - boolean hasFollowInfo(); - /** - * .User.FollowInfo followInfo = 22; - * @return The followInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo getFollowInfo(); - /** - * .User.FollowInfo followInfo = 22; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder getFollowInfoOrBuilder(); - - /** - * .User.PayGrade payGrade = 23; - * @return Whether the payGrade field is set. - */ - boolean hasPayGrade(); - /** - * .User.PayGrade payGrade = 23; - * @return The payGrade. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade getPayGrade(); - /** - * .User.PayGrade payGrade = 23; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder getPayGradeOrBuilder(); - - /** - * .User.FansClub fansClub = 24; - * @return Whether the fansClub field is set. - */ - boolean hasFansClub(); - /** - * .User.FansClub fansClub = 24; - * @return The fansClub. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub getFansClub(); - /** - * .User.FansClub fansClub = 24; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder getFansClubOrBuilder(); - - /** - * .User.Border border = 25; - * @return Whether the border field is set. - */ - boolean hasBorder(); - /** - * .User.Border border = 25; - * @return The border. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border getBorder(); - /** - * .User.Border border = 25; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder getBorderOrBuilder(); - - /** - * string specialId = 26; - * @return The specialId. - */ - java.lang.String getSpecialId(); - /** - * string specialId = 26; - * @return The bytes for specialId. - */ - com.google.protobuf.ByteString - getSpecialIdBytes(); - - /** - * .Image avatarBorder = 27; - * @return Whether the avatarBorder field is set. - */ - boolean hasAvatarBorder(); - /** - * .Image avatarBorder = 27; - * @return The avatarBorder. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarBorder(); - /** - * .Image avatarBorder = 27; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarBorderOrBuilder(); - - /** - * .Image medal = 28; - * @return Whether the medal field is set. - */ - boolean hasMedal(); - /** - * .Image medal = 28; - * @return The medal. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getMedal(); - /** - * .Image medal = 28; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getMedalOrBuilder(); - - /** - * repeated .Image realTimeIconsList = 29; - */ - java.util.List - getRealTimeIconsListList(); - /** - * repeated .Image realTimeIconsList = 29; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getRealTimeIconsList(int index); - /** - * repeated .Image realTimeIconsList = 29; - */ - int getRealTimeIconsListCount(); - /** - * repeated .Image realTimeIconsList = 29; - */ - java.util.List - getRealTimeIconsListOrBuilderList(); - /** - * repeated .Image realTimeIconsList = 29; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getRealTimeIconsListOrBuilder( - int index); - - /** - * repeated .Image newRealTimeIconsList = 30; - */ - java.util.List - getNewRealTimeIconsListList(); - /** - * repeated .Image newRealTimeIconsList = 30; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewRealTimeIconsList(int index); - /** - * repeated .Image newRealTimeIconsList = 30; - */ - int getNewRealTimeIconsListCount(); - /** - * repeated .Image newRealTimeIconsList = 30; - */ - java.util.List - getNewRealTimeIconsListOrBuilderList(); - /** - * repeated .Image newRealTimeIconsList = 30; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewRealTimeIconsListOrBuilder( - int index); - - /** - * int64 topVipNo = 31; - * @return The topVipNo. - */ - long getTopVipNo(); - - /** - * .User.UserAttr userAttr = 32; - * @return Whether the userAttr field is set. - */ - boolean hasUserAttr(); - /** - * .User.UserAttr userAttr = 32; - * @return The userAttr. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr getUserAttr(); - /** - * .User.UserAttr userAttr = 32; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder getUserAttrOrBuilder(); - - /** - * .User.OwnRoom ownRoom = 33; - * @return Whether the ownRoom field is set. - */ - boolean hasOwnRoom(); - /** - * .User.OwnRoom ownRoom = 33; - * @return The ownRoom. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom getOwnRoom(); - /** - * .User.OwnRoom ownRoom = 33; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder getOwnRoomOrBuilder(); - - /** - * int64 payScore = 34; - * @return The payScore. - */ - long getPayScore(); - - /** - * int64 ticketCount = 35; - * @return The ticketCount. - */ - long getTicketCount(); - - /** - * .User.AnchorInfo anchorInfo = 36; - * @return Whether the anchorInfo field is set. - */ - boolean hasAnchorInfo(); - /** - * .User.AnchorInfo anchorInfo = 36; - * @return The anchorInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo getAnchorInfo(); - /** - * .User.AnchorInfo anchorInfo = 36; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder getAnchorInfoOrBuilder(); - - /** - * int32 linkMicStats = 37; - * @return The linkMicStats. - */ - int getLinkMicStats(); - - /** - * string displayId = 38; - * @return The displayId. - */ - java.lang.String getDisplayId(); - /** - * string displayId = 38; - * @return The bytes for displayId. - */ - com.google.protobuf.ByteString - getDisplayIdBytes(); - - /** - * bool withCommercePermission = 39; - * @return The withCommercePermission. - */ - boolean getWithCommercePermission(); - - /** - * bool withFusionShopEntry = 40; - * @return The withFusionShopEntry. - */ - boolean getWithFusionShopEntry(); - - /** - * int64 totalRechargeDiamondCount = 41; - * @return The totalRechargeDiamondCount. - */ - long getTotalRechargeDiamondCount(); - - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - * @return Whether the webcastAnchorLevel field is set. - */ - boolean hasWebcastAnchorLevel(); - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - * @return The webcastAnchorLevel. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getWebcastAnchorLevel(); - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder getWebcastAnchorLevelOrBuilder(); - - /** - * string verifiedContent = 43; - * @return The verifiedContent. - */ - java.lang.String getVerifiedContent(); - /** - * string verifiedContent = 43; - * @return The bytes for verifiedContent. - */ - com.google.protobuf.ByteString - getVerifiedContentBytes(); - - /** - * .User.AuthorStats authorStats = 44; - * @return Whether the authorStats field is set. - */ - boolean hasAuthorStats(); - /** - * .User.AuthorStats authorStats = 44; - * @return The authorStats. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats getAuthorStats(); - /** - * .User.AuthorStats authorStats = 44; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder getAuthorStatsOrBuilder(); - - /** - * repeated .User topFansList = 45; - */ - java.util.List - getTopFansListList(); - /** - * repeated .User topFansList = 45; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getTopFansList(int index); - /** - * repeated .User topFansList = 45; - */ - int getTopFansListCount(); - /** - * repeated .User topFansList = 45; - */ - java.util.List - getTopFansListOrBuilderList(); - /** - * repeated .User topFansList = 45; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getTopFansListOrBuilder( - int index); - - /** - * string secUid = 46; - * @return The secUid. - */ - java.lang.String getSecUid(); - /** - * string secUid = 46; - * @return The bytes for secUid. - */ - com.google.protobuf.ByteString - getSecUidBytes(); - - /** - * int32 userRole = 47; - * @return The userRole. - */ - int getUserRole(); - - /** - * .User.XiguaParams xiguaInfo = 48; - * @return Whether the xiguaInfo field is set. - */ - boolean hasXiguaInfo(); - /** - * .User.XiguaParams xiguaInfo = 48; - * @return The xiguaInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams getXiguaInfo(); - /** - * .User.XiguaParams xiguaInfo = 48; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder getXiguaInfoOrBuilder(); - - /** - * .User.ActivityInfo activityReward = 49; - * @return Whether the activityReward field is set. - */ - boolean hasActivityReward(); - /** - * .User.ActivityInfo activityReward = 49; - * @return The activityReward. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo getActivityReward(); - /** - * .User.ActivityInfo activityReward = 49; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder getActivityRewardOrBuilder(); - - /** - * .User.NobleLevelInfo nobleInfo = 50; - * @return Whether the nobleInfo field is set. - */ - boolean hasNobleInfo(); - /** - * .User.NobleLevelInfo nobleInfo = 50; - * @return The nobleInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo getNobleInfo(); - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder getNobleInfoOrBuilder(); - - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - * @return Whether the brotherhoodInfo field is set. - */ - boolean hasBrotherhoodInfo(); - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - * @return The brotherhoodInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo getBrotherhoodInfo(); - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder getBrotherhoodInfoOrBuilder(); - - /** - * .Image personalCard = 52; - * @return Whether the personalCard field is set. - */ - boolean hasPersonalCard(); - /** - * .Image personalCard = 52; - * @return The personalCard. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getPersonalCard(); - /** - * .Image personalCard = 52; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getPersonalCardOrBuilder(); - - /** - * .User.AuthenticationInfo authenticationInfo = 53; - * @return Whether the authenticationInfo field is set. - */ - boolean hasAuthenticationInfo(); - /** - * .User.AuthenticationInfo authenticationInfo = 53; - * @return The authenticationInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo getAuthenticationInfo(); - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder(); - - /** - * int32 authorizationInfo = 54; - * @return The authorizationInfo. - */ - int getAuthorizationInfo(); - - /** - * int32 adversaryAuthorizationInfo = 55; - * @return The adversaryAuthorizationInfo. - */ - int getAdversaryAuthorizationInfo(); - - /** - * .User.PoiInfo poiInfo = 56; - * @return Whether the poiInfo field is set. - */ - boolean hasPoiInfo(); - /** - * .User.PoiInfo poiInfo = 56; - * @return The poiInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo getPoiInfo(); - /** - * .User.PoiInfo poiInfo = 56; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder getPoiInfoOrBuilder(); - - /** - * .Image mediaBadgeImageListList = 57; - * @return Whether the mediaBadgeImageListList field is set. - */ - boolean hasMediaBadgeImageListList(); - /** - * .Image mediaBadgeImageListList = 57; - * @return The mediaBadgeImageListList. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getMediaBadgeImageListList(); - /** - * .Image mediaBadgeImageListList = 57; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getMediaBadgeImageListListOrBuilder(); - - /** - * int32 adversaryUserStatus = 58; - * @return The adversaryUserStatus. - */ - int getAdversaryUserStatus(); - - /** - * .User.UserVIPInfo userVipInfo = 59; - * @return Whether the userVipInfo field is set. - */ - boolean hasUserVipInfo(); - /** - * .User.UserVIPInfo userVipInfo = 59; - * @return The userVipInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo getUserVipInfo(); - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder getUserVipInfoOrBuilder(); - - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return A list containing the commerceWebcastConfigIdsList. - */ - java.util.List getCommerceWebcastConfigIdsListList(); - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return The count of commerceWebcastConfigIdsList. - */ - int getCommerceWebcastConfigIdsListCount(); - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @param index The index of the element to return. - * @return The commerceWebcastConfigIdsList at the given index. - */ - long getCommerceWebcastConfigIdsList(int index); - - /** - * .Image badgeImageListV2List = 61; - * @return Whether the badgeImageListV2List field is set. - */ - boolean hasBadgeImageListV2List(); - /** - * .Image badgeImageListV2List = 61; - * @return The badgeImageListV2List. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBadgeImageListV2List(); - /** - * .Image badgeImageListV2List = 61; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBadgeImageListV2ListOrBuilder(); - - /** - *
-     * IndustryCertification  industryCertification = 62;
-     * 
- * - * string locationCity = 63; - * @return The locationCity. - */ - java.lang.String getLocationCity(); - /** - *
-     * IndustryCertification  industryCertification = 62;
-     * 
- * - * string locationCity = 63; - * @return The bytes for locationCity. - */ - com.google.protobuf.ByteString - getLocationCityBytes(); - - /** - * .User.FansGroupInfo fansGroupInfo = 64; - * @return Whether the fansGroupInfo field is set. - */ - boolean hasFansGroupInfo(); - /** - * .User.FansGroupInfo fansGroupInfo = 64; - * @return The fansGroupInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo getFansGroupInfo(); - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder getFansGroupInfoOrBuilder(); - - /** - * string remarkName = 65; - * @return The remarkName. - */ - java.lang.String getRemarkName(); - /** - * string remarkName = 65; - * @return The bytes for remarkName. - */ - com.google.protobuf.ByteString - getRemarkNameBytes(); - - /** - * int32 mysteryMan = 66; - * @return The mysteryMan. - */ - int getMysteryMan(); - - /** - * string webRid = 67; - * @return The webRid. - */ - java.lang.String getWebRid(); - /** - * string webRid = 67; - * @return The bytes for webRid. - */ - com.google.protobuf.ByteString - getWebRidBytes(); - - /** - * string desensitizedNickname = 68; - * @return The desensitizedNickname. - */ - java.lang.String getDesensitizedNickname(); - /** - * string desensitizedNickname = 68; - * @return The bytes for desensitizedNickname. - */ - com.google.protobuf.ByteString - getDesensitizedNicknameBytes(); - - /** - * .User.JAccreditInfo jAccreditInfo = 69; - * @return Whether the jAccreditInfo field is set. - */ - boolean hasJAccreditInfo(); - /** - * .User.JAccreditInfo jAccreditInfo = 69; - * @return The jAccreditInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo getJAccreditInfo(); - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder getJAccreditInfoOrBuilder(); - - /** - * .User.Subscribe subscribe = 70; - * @return Whether the subscribe field is set. - */ - boolean hasSubscribe(); - /** - * .User.Subscribe subscribe = 70; - * @return The subscribe. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe getSubscribe(); - /** - * .User.Subscribe subscribe = 70; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder getSubscribeOrBuilder(); - - /** - * bool isAnonymous = 71; - * @return The isAnonymous. - */ - boolean getIsAnonymous(); - - /** - * int32 consumeDiamondLevel = 72; - * @return The consumeDiamondLevel. - */ - int getConsumeDiamondLevel(); - - /** - * string webcastUid = 73; - * @return The webcastUid. - */ - java.lang.String getWebcastUid(); - /** - * string webcastUid = 73; - * @return The bytes for webcastUid. - */ - com.google.protobuf.ByteString - getWebcastUidBytes(); - - /** - * .User.ProfileStyleParams profileStyleParams = 74; - * @return Whether the profileStyleParams field is set. - */ - boolean hasProfileStyleParams(); - /** - * .User.ProfileStyleParams profileStyleParams = 74; - * @return The profileStyleParams. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams getProfileStyleParams(); - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder getProfileStyleParamsOrBuilder(); - - /** - * .User.UserDressInfo userDressInfo = 75; - * @return Whether the userDressInfo field is set. - */ - boolean hasUserDressInfo(); - /** - * .User.UserDressInfo userDressInfo = 75; - * @return The userDressInfo. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo getUserDressInfo(); - /** - * .User.UserDressInfo userDressInfo = 75; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder getUserDressInfoOrBuilder(); - - /** - * bool allowBeLocated = 1001; - * @return The allowBeLocated. - */ - boolean getAllowBeLocated(); - - /** - * bool allowFindByContacts = 1002; - * @return The allowFindByContacts. - */ - boolean getAllowFindByContacts(); - - /** - * bool allowOthersDownloadVideo = 1003; - * @return The allowOthersDownloadVideo. - */ - boolean getAllowOthersDownloadVideo(); - - /** - * bool allowOthersDownloadWhenSharingVideo = 1004; - * @return The allowOthersDownloadWhenSharingVideo. - */ - boolean getAllowOthersDownloadWhenSharingVideo(); - - /** - * bool allowShareShowProfile = 1005; - * @return The allowShareShowProfile. - */ - boolean getAllowShareShowProfile(); - - /** - * bool allowShowInGossip = 1006; - * @return The allowShowInGossip. - */ - boolean getAllowShowInGossip(); - - /** - * bool allowShowMyAction = 1007; - * @return The allowShowMyAction. - */ - boolean getAllowShowMyAction(); - - /** - * bool allowStrangeComment = 1008; - * @return The allowStrangeComment. - */ - boolean getAllowStrangeComment(); - - /** - * bool allowUnfollowerComment = 1009; - * @return The allowUnfollowerComment. - */ - boolean getAllowUnfollowerComment(); - - /** - * bool allowUseLinkmic = 1010; - * @return The allowUseLinkmic. - */ - boolean getAllowUseLinkmic(); - - /** - * .User.AnchorLevel anchorLevel = 1011; - * @return Whether the anchorLevel field is set. - */ - boolean hasAnchorLevel(); - /** - * .User.AnchorLevel anchorLevel = 1011; - * @return The anchorLevel. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getAnchorLevel(); - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder getAnchorLevelOrBuilder(); - - /** - * .Image avatarJpg = 1012; - * @return Whether the avatarJpg field is set. - */ - boolean hasAvatarJpg(); - /** - * .Image avatarJpg = 1012; - * @return The avatarJpg. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarJpg(); - /** - * .Image avatarJpg = 1012; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarJpgOrBuilder(); - - /** - * string bgImgUrl = 1013; - * @return The bgImgUrl. - */ - java.lang.String getBgImgUrl(); - /** - * string bgImgUrl = 1013; - * @return The bytes for bgImgUrl. - */ - com.google.protobuf.ByteString - getBgImgUrlBytes(); - - /** - * string birthdayDescription = 1014; - * @return The birthdayDescription. - */ - java.lang.String getBirthdayDescription(); - /** - * string birthdayDescription = 1014; - * @return The bytes for birthdayDescription. - */ - com.google.protobuf.ByteString - getBirthdayDescriptionBytes(); - - /** - * bool birthdayValid = 1015; - * @return The birthdayValid. - */ - boolean getBirthdayValid(); - - /** - * int32 blockStatus = 1016; - * @return The blockStatus. - */ - int getBlockStatus(); - - /** - * int32 commentRestrict = 1017; - * @return The commentRestrict. - */ - int getCommentRestrict(); - - /** - * string constellation = 1018; - * @return The constellation. - */ - java.lang.String getConstellation(); - /** - * string constellation = 1018; - * @return The bytes for constellation. - */ - com.google.protobuf.ByteString - getConstellationBytes(); - - /** - * int32 disableIchat = 1019; - * @return The disableIchat. - */ - int getDisableIchat(); - - /** - * int64 enableIchatImg = 1020; - * @return The enableIchatImg. - */ - long getEnableIchatImg(); - - /** - * int32 exp = 1021; - * @return The exp. - */ - int getExp(); - - /** - * int64 fanTicketCount = 1022; - * @return The fanTicketCount. - */ - long getFanTicketCount(); - - /** - * bool foldStrangerChat = 1023; - * @return The foldStrangerChat. - */ - boolean getFoldStrangerChat(); - - /** - * int64 followStatus = 1024; - * @return The followStatus. - */ - long getFollowStatus(); - - /** - * bool hotsoonVerified = 1025; - * @return The hotsoonVerified. - */ - boolean getHotsoonVerified(); - - /** - * string hotsoonVerifiedReason = 1026; - * @return The hotsoonVerifiedReason. - */ - java.lang.String getHotsoonVerifiedReason(); - /** - * string hotsoonVerifiedReason = 1026; - * @return The bytes for hotsoonVerifiedReason. - */ - com.google.protobuf.ByteString - getHotsoonVerifiedReasonBytes(); - - /** - * int32 ichatRestrictType = 1027; - * @return The ichatRestrictType. - */ - int getIchatRestrictType(); - - /** - * string idStr = 1028; - * @return The idStr. - */ - java.lang.String getIdStr(); - /** - * string idStr = 1028; - * @return The bytes for idStr. - */ - com.google.protobuf.ByteString - getIdStrBytes(); - - /** - * bool isFollower = 1029; - * @return The isFollower. - */ - boolean getIsFollower(); - - /** - * bool isFollowing = 1030; - * @return The isFollowing. - */ - boolean getIsFollowing(); - - /** - * bool needProfileGuide = 1031; - * @return The needProfileGuide. - */ - boolean getNeedProfileGuide(); - - /** - * int64 payScores = 1032; - * @return The payScores. - */ - long getPayScores(); - - /** - * bool pushCommentStatus = 1033; - * @return The pushCommentStatus. - */ - boolean getPushCommentStatus(); - - /** - * bool pushDigg = 1034; - * @return The pushDigg. - */ - boolean getPushDigg(); - - /** - * bool pushFollow = 1035; - * @return The pushFollow. - */ - boolean getPushFollow(); - - /** - * bool pushFriendAction = 1036; - * @return The pushFriendAction. - */ - boolean getPushFriendAction(); - - /** - * bool pushIchat = 1037; - * @return The pushIchat. - */ - boolean getPushIchat(); - - /** - * bool pushStatus = 1038; - * @return The pushStatus. - */ - boolean getPushStatus(); - - /** - * bool pushVideoPost = 1039; - * @return The pushVideoPost. - */ - boolean getPushVideoPost(); - - /** - * bool pushVideoRecommend = 1040; - * @return The pushVideoRecommend. - */ - boolean getPushVideoRecommend(); - - /** - * .User.UserStats stats = 1041; - * @return Whether the stats field is set. - */ - boolean hasStats(); - /** - * .User.UserStats stats = 1041; - * @return The stats. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats getStats(); - /** - * .User.UserStats stats = 1041; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder getStatsOrBuilder(); - - /** - * bool verifiedMobile = 1042; - * @return The verifiedMobile. - */ - boolean getVerifiedMobile(); - - /** - * string verifiedReason = 1043; - * @return The verifiedReason. - */ - java.lang.String getVerifiedReason(); - /** - * string verifiedReason = 1043; - * @return The bytes for verifiedReason. - */ - com.google.protobuf.ByteString - getVerifiedReasonBytes(); - - /** - * bool withCarManagementPermission = 1044; - * @return The withCarManagementPermission. - */ - boolean getWithCarManagementPermission(); - - /** - * int32 ageRange = 1045; - * @return The ageRange. - */ - int getAgeRange(); - - /** - * int64 watchDurationMonth = 1046; - * @return The watchDurationMonth. - */ - long getWatchDurationMonth(); - } - /** - * Protobuf type {@code User} - */ - public static final class User extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User) - UserOrBuilder { - private static final long serialVersionUID = 0L; - // Use User.newBuilder() to construct. - private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private User() { - nickname_ = ""; - signature_ = ""; - telephone_ = ""; - city_ = ""; - shareQrcodeUri_ = ""; - specialId_ = ""; - realTimeIconsList_ = java.util.Collections.emptyList(); - newRealTimeIconsList_ = java.util.Collections.emptyList(); - displayId_ = ""; - verifiedContent_ = ""; - topFansList_ = java.util.Collections.emptyList(); - secUid_ = ""; - commerceWebcastConfigIdsList_ = emptyLongList(); - locationCity_ = ""; - remarkName_ = ""; - webRid_ = ""; - desensitizedNickname_ = ""; - webcastUid_ = ""; - bgImgUrl_ = ""; - birthdayDescription_ = ""; - constellation_ = ""; - hotsoonVerifiedReason_ = ""; - idStr_ = ""; - verifiedReason_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new User(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder.class); - } - - public interface ActivityInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.ActivityInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.ActivityInfo} - */ - public static final class ActivityInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.ActivityInfo) - ActivityInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActivityInfo.newBuilder() to construct. - private ActivityInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActivityInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ActivityInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ActivityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ActivityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.ActivityInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.ActivityInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ActivityInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ActivityInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ActivityInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.ActivityInfo) - } - - // @@protoc_insertion_point(class_scope:User.ActivityInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActivityInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnchorInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.AnchorInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.AnchorInfo} - */ - public static final class AnchorInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.AnchorInfo) - AnchorInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AnchorInfo.newBuilder() to construct. - private AnchorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AnchorInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnchorInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.AnchorInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.AnchorInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.AnchorInfo) - } - - // @@protoc_insertion_point(class_scope:User.AnchorInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnchorInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnchorLevelOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.AnchorLevel) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.AnchorLevel} - */ - public static final class AnchorLevel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.AnchorLevel) - AnchorLevelOrBuilder { - private static final long serialVersionUID = 0L; - // Use AnchorLevel.newBuilder() to construct. - private AnchorLevel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AnchorLevel() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnchorLevel(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorLevel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorLevel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.AnchorLevel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.AnchorLevel) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorLevel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorLevel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AnchorLevel_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.AnchorLevel) - } - - // @@protoc_insertion_point(class_scope:User.AnchorLevel) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnchorLevel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthenticationInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.AuthenticationInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.AuthenticationInfo} - */ - public static final class AuthenticationInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.AuthenticationInfo) - AuthenticationInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthenticationInfo.newBuilder() to construct. - private AuthenticationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthenticationInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AuthenticationInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthenticationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthenticationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.AuthenticationInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.AuthenticationInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthenticationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthenticationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthenticationInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.AuthenticationInfo) - } - - // @@protoc_insertion_point(class_scope:User.AuthenticationInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthenticationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthorStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.AuthorStats) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.AuthorStats} - */ - public static final class AuthorStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.AuthorStats) - AuthorStatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthorStats.newBuilder() to construct. - private AuthorStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthorStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AuthorStats(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthorStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthorStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.AuthorStats} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.AuthorStats) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthorStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthorStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_AuthorStats_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.AuthorStats) - } - - // @@protoc_insertion_point(class_scope:User.AuthorStats) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BorderOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.Border) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.Border} - */ - public static final class Border extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.Border) - BorderOrBuilder { - private static final long serialVersionUID = 0L; - // Use Border.newBuilder() to construct. - private Border(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Border() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Border(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Border_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Border_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.Border} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.Border) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Border_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Border_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Border_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.Border) - } - - // @@protoc_insertion_point(class_scope:User.Border) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Border parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BrotherhoodInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.BrotherhoodInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.BrotherhoodInfo} - */ - public static final class BrotherhoodInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.BrotherhoodInfo) - BrotherhoodInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use BrotherhoodInfo.newBuilder() to construct. - private BrotherhoodInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BrotherhoodInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BrotherhoodInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_BrotherhoodInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_BrotherhoodInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.BrotherhoodInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.BrotherhoodInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_BrotherhoodInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_BrotherhoodInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_BrotherhoodInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.BrotherhoodInfo) - } - - // @@protoc_insertion_point(class_scope:User.BrotherhoodInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BrotherhoodInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FansClubOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.FansClub) - com.google.protobuf.MessageOrBuilder { - - /** - * .User.FansClub.FansClubData data = 1; - * @return Whether the data field is set. - */ - boolean hasData(); - /** - * .User.FansClub.FansClubData data = 1; - * @return The data. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getData(); - /** - * .User.FansClub.FansClubData data = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder getDataOrBuilder(); - - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - int getPreferDataCount(); - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - boolean containsPreferData( - int key); - /** - * Use {@link #getPreferDataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getPreferData(); - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - java.util.Map - getPreferDataMap(); - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getPreferDataOrDefault( - int key, - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData defaultValue); - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getPreferDataOrThrow( - int key); - } - /** - * Protobuf type {@code User.FansClub} - */ - public static final class FansClub extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.FansClub) - FansClubOrBuilder { - private static final long serialVersionUID = 0L; - // Use FansClub.newBuilder() to construct. - private FansClub(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FansClub() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FansClub(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPreferData(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder.class); - } - - public interface FansClubDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.FansClub.FansClubData) - com.google.protobuf.MessageOrBuilder { - - /** - * string clubName = 1; - * @return The clubName. - */ - java.lang.String getClubName(); - /** - * string clubName = 1; - * @return The bytes for clubName. - */ - com.google.protobuf.ByteString - getClubNameBytes(); - - /** - * int32 level = 2; - * @return The level. - */ - int getLevel(); - - /** - * int32 userFansClubStatus = 3; - * @return The userFansClubStatus. - */ - int getUserFansClubStatus(); - - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - * @return Whether the badge field is set. - */ - boolean hasBadge(); - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - * @return The badge. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge getBadge(); - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder getBadgeOrBuilder(); - - /** - * repeated int64 availableGiftIds = 5; - * @return A list containing the availableGiftIds. - */ - java.util.List getAvailableGiftIdsList(); - /** - * repeated int64 availableGiftIds = 5; - * @return The count of availableGiftIds. - */ - int getAvailableGiftIdsCount(); - /** - * repeated int64 availableGiftIds = 5; - * @param index The index of the element to return. - * @return The availableGiftIds at the given index. - */ - long getAvailableGiftIds(int index); - - /** - * int64 anchorId = 6; - * @return The anchorId. - */ - long getAnchorId(); - } - /** - * Protobuf type {@code User.FansClub.FansClubData} - */ - public static final class FansClubData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.FansClub.FansClubData) - FansClubDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use FansClubData.newBuilder() to construct. - private FansClubData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FansClubData() { - clubName_ = ""; - availableGiftIds_ = emptyLongList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FansClubData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder.class); - } - - public interface UserBadgeOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.FansClub.FansClubData.UserBadge) - com.google.protobuf.MessageOrBuilder { - - /** - * map<int32, .Image> icons = 1; - */ - int getIconsCount(); - /** - * map<int32, .Image> icons = 1; - */ - boolean containsIcons( - int key); - /** - * Use {@link #getIconsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getIcons(); - /** - * map<int32, .Image> icons = 1; - */ - java.util.Map - getIconsMap(); - /** - * map<int32, .Image> icons = 1; - */ - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIconsOrDefault( - int key, - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image defaultValue); - /** - * map<int32, .Image> icons = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIconsOrThrow( - int key); - - /** - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); - } - /** - * Protobuf type {@code User.FansClub.FansClubData.UserBadge} - */ - public static final class UserBadge extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.FansClub.FansClubData.UserBadge) - UserBadgeOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserBadge.newBuilder() to construct. - private UserBadge(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserBadge() { - title_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserBadge(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_UserBadge_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetIcons(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_UserBadge_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder.class); - } - - public static final int ICONS_FIELD_NUMBER = 1; - private static final class IconsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_UserBadge_IconsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image> icons_; - private com.google.protobuf.MapField - internalGetIcons() { - if (icons_ == null) { - return com.google.protobuf.MapField.emptyMapField( - IconsDefaultEntryHolder.defaultEntry); - } - return icons_; - } - public int getIconsCount() { - return internalGetIcons().getMap().size(); - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public boolean containsIcons( - int key) { - - return internalGetIcons().getMap().containsKey(key); - } - /** - * Use {@link #getIconsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getIcons() { - return getIconsMap(); - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public java.util.Map getIconsMap() { - return internalGetIcons().getMap(); - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIconsOrDefault( - int key, - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image defaultValue) { - - java.util.Map map = - internalGetIcons().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIconsOrThrow( - int key) { - - java.util.Map map = - internalGetIcons().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TITLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetIcons(), - IconsDefaultEntryHolder.defaultEntry, - 1); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetIcons().getMap().entrySet()) { - com.google.protobuf.MapEntry - icons__ = IconsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, icons__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge) obj; - - if (!internalGetIcons().equals( - other.internalGetIcons())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetIcons().getMap().isEmpty()) { - hash = (37 * hash) + ICONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetIcons().hashCode(); - } - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.FansClub.FansClubData.UserBadge} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.FansClub.FansClubData.UserBadge) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_UserBadge_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetIcons(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableIcons(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_UserBadge_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableIcons().clear(); - title_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_UserBadge_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.icons_ = internalGetIcons(); - result.icons_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.title_ = title_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance()) return this; - internalGetMutableIcons().mergeFrom( - other.internalGetIcons()); - bitField0_ |= 0x00000001; - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.MapEntry - icons__ = input.readMessage( - IconsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableIcons().getMutableMap().put( - icons__.getKey(), icons__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.Integer, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image> icons_; - private com.google.protobuf.MapField - internalGetIcons() { - if (icons_ == null) { - return com.google.protobuf.MapField.emptyMapField( - IconsDefaultEntryHolder.defaultEntry); - } - return icons_; - } - private com.google.protobuf.MapField - internalGetMutableIcons() { - if (icons_ == null) { - icons_ = com.google.protobuf.MapField.newMapField( - IconsDefaultEntryHolder.defaultEntry); - } - if (!icons_.isMutable()) { - icons_ = icons_.copy(); - } - bitField0_ |= 0x00000001; - onChanged(); - return icons_; - } - public int getIconsCount() { - return internalGetIcons().getMap().size(); - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public boolean containsIcons( - int key) { - - return internalGetIcons().getMap().containsKey(key); - } - /** - * Use {@link #getIconsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getIcons() { - return getIconsMap(); - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public java.util.Map getIconsMap() { - return internalGetIcons().getMap(); - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIconsOrDefault( - int key, - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image defaultValue) { - - java.util.Map map = - internalGetIcons().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .Image> icons = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIconsOrThrow( - int key) { - - java.util.Map map = - internalGetIcons().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearIcons() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableIcons().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, .Image> icons = 1; - */ - public Builder removeIcons( - int key) { - - internalGetMutableIcons().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableIcons() { - bitField0_ |= 0x00000001; - return internalGetMutableIcons().getMutableMap(); - } - /** - * map<int32, .Image> icons = 1; - */ - public Builder putIcons( - int key, - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableIcons().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000001; - return this; - } - /** - * map<int32, .Image> icons = 1; - */ - public Builder putAllIcons( - java.util.Map values) { - internalGetMutableIcons().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - private java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.FansClub.FansClubData.UserBadge) - } - - // @@protoc_insertion_point(class_scope:User.FansClub.FansClubData.UserBadge) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserBadge parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int CLUBNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object clubName_ = ""; - /** - * string clubName = 1; - * @return The clubName. - */ - @java.lang.Override - public java.lang.String getClubName() { - java.lang.Object ref = clubName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clubName_ = s; - return s; - } - } - /** - * string clubName = 1; - * @return The bytes for clubName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClubNameBytes() { - java.lang.Object ref = clubName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clubName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEVEL_FIELD_NUMBER = 2; - private int level_ = 0; - /** - * int32 level = 2; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int USERFANSCLUBSTATUS_FIELD_NUMBER = 3; - private int userFansClubStatus_ = 0; - /** - * int32 userFansClubStatus = 3; - * @return The userFansClubStatus. - */ - @java.lang.Override - public int getUserFansClubStatus() { - return userFansClubStatus_; - } - - public static final int BADGE_FIELD_NUMBER = 4; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge badge_; - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - * @return Whether the badge field is set. - */ - @java.lang.Override - public boolean hasBadge() { - return badge_ != null; - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - * @return The badge. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge getBadge() { - return badge_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance() : badge_; - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder getBadgeOrBuilder() { - return badge_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance() : badge_; - } - - public static final int AVAILABLEGIFTIDS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList availableGiftIds_; - /** - * repeated int64 availableGiftIds = 5; - * @return A list containing the availableGiftIds. - */ - @java.lang.Override - public java.util.List - getAvailableGiftIdsList() { - return availableGiftIds_; - } - /** - * repeated int64 availableGiftIds = 5; - * @return The count of availableGiftIds. - */ - public int getAvailableGiftIdsCount() { - return availableGiftIds_.size(); - } - /** - * repeated int64 availableGiftIds = 5; - * @param index The index of the element to return. - * @return The availableGiftIds at the given index. - */ - public long getAvailableGiftIds(int index) { - return availableGiftIds_.getLong(index); - } - private int availableGiftIdsMemoizedSerializedSize = -1; - - public static final int ANCHORID_FIELD_NUMBER = 6; - private long anchorId_ = 0L; - /** - * int64 anchorId = 6; - * @return The anchorId. - */ - @java.lang.Override - public long getAnchorId() { - return anchorId_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clubName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clubName_); - } - if (level_ != 0) { - output.writeInt32(2, level_); - } - if (userFansClubStatus_ != 0) { - output.writeInt32(3, userFansClubStatus_); - } - if (badge_ != null) { - output.writeMessage(4, getBadge()); - } - if (getAvailableGiftIdsList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(availableGiftIdsMemoizedSerializedSize); - } - for (int i = 0; i < availableGiftIds_.size(); i++) { - output.writeInt64NoTag(availableGiftIds_.getLong(i)); - } - if (anchorId_ != 0L) { - output.writeInt64(6, anchorId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clubName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clubName_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, level_); - } - if (userFansClubStatus_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, userFansClubStatus_); - } - if (badge_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getBadge()); - } - { - int dataSize = 0; - for (int i = 0; i < availableGiftIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(availableGiftIds_.getLong(i)); - } - size += dataSize; - if (!getAvailableGiftIdsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - availableGiftIdsMemoizedSerializedSize = dataSize; - } - if (anchorId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, anchorId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData) obj; - - if (!getClubName() - .equals(other.getClubName())) return false; - if (getLevel() - != other.getLevel()) return false; - if (getUserFansClubStatus() - != other.getUserFansClubStatus()) return false; - if (hasBadge() != other.hasBadge()) return false; - if (hasBadge()) { - if (!getBadge() - .equals(other.getBadge())) return false; - } - if (!getAvailableGiftIdsList() - .equals(other.getAvailableGiftIdsList())) return false; - if (getAnchorId() - != other.getAnchorId()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUBNAME_FIELD_NUMBER; - hash = (53 * hash) + getClubName().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + USERFANSCLUBSTATUS_FIELD_NUMBER; - hash = (53 * hash) + getUserFansClubStatus(); - if (hasBadge()) { - hash = (37 * hash) + BADGE_FIELD_NUMBER; - hash = (53 * hash) + getBadge().hashCode(); - } - if (getAvailableGiftIdsCount() > 0) { - hash = (37 * hash) + AVAILABLEGIFTIDS_FIELD_NUMBER; - hash = (53 * hash) + getAvailableGiftIdsList().hashCode(); - } - hash = (37 * hash) + ANCHORID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAnchorId()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.FansClub.FansClubData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.FansClub.FansClubData) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clubName_ = ""; - level_ = 0; - userFansClubStatus_ = 0; - badge_ = null; - if (badgeBuilder_ != null) { - badgeBuilder_.dispose(); - badgeBuilder_ = null; - } - availableGiftIds_ = emptyLongList(); - anchorId_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_FansClubData_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData result) { - if (((bitField0_ & 0x00000010) != 0)) { - availableGiftIds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.availableGiftIds_ = availableGiftIds_; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.clubName_ = clubName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.userFansClubStatus_ = userFansClubStatus_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.badge_ = badgeBuilder_ == null - ? badge_ - : badgeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.anchorId_ = anchorId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance()) return this; - if (!other.getClubName().isEmpty()) { - clubName_ = other.clubName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getUserFansClubStatus() != 0) { - setUserFansClubStatus(other.getUserFansClubStatus()); - } - if (other.hasBadge()) { - mergeBadge(other.getBadge()); - } - if (!other.availableGiftIds_.isEmpty()) { - if (availableGiftIds_.isEmpty()) { - availableGiftIds_ = other.availableGiftIds_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAvailableGiftIdsIsMutable(); - availableGiftIds_.addAll(other.availableGiftIds_); - } - onChanged(); - } - if (other.getAnchorId() != 0L) { - setAnchorId(other.getAnchorId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - clubName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - level_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - userFansClubStatus_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getBadgeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - long v = input.readInt64(); - ensureAvailableGiftIdsIsMutable(); - availableGiftIds_.addLong(v); - break; - } // case 40 - case 42: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureAvailableGiftIdsIsMutable(); - while (input.getBytesUntilLimit() > 0) { - availableGiftIds_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 42 - case 48: { - anchorId_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object clubName_ = ""; - /** - * string clubName = 1; - * @return The clubName. - */ - public java.lang.String getClubName() { - java.lang.Object ref = clubName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clubName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string clubName = 1; - * @return The bytes for clubName. - */ - public com.google.protobuf.ByteString - getClubNameBytes() { - java.lang.Object ref = clubName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clubName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string clubName = 1; - * @param value The clubName to set. - * @return This builder for chaining. - */ - public Builder setClubName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - clubName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string clubName = 1; - * @return This builder for chaining. - */ - public Builder clearClubName() { - clubName_ = getDefaultInstance().getClubName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string clubName = 1; - * @param value The bytes for clubName to set. - * @return This builder for chaining. - */ - public Builder setClubNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - clubName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int level_ ; - /** - * int32 level = 2; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * int32 level = 2; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 level = 2; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000002); - level_ = 0; - onChanged(); - return this; - } - - private int userFansClubStatus_ ; - /** - * int32 userFansClubStatus = 3; - * @return The userFansClubStatus. - */ - @java.lang.Override - public int getUserFansClubStatus() { - return userFansClubStatus_; - } - /** - * int32 userFansClubStatus = 3; - * @param value The userFansClubStatus to set. - * @return This builder for chaining. - */ - public Builder setUserFansClubStatus(int value) { - - userFansClubStatus_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int32 userFansClubStatus = 3; - * @return This builder for chaining. - */ - public Builder clearUserFansClubStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - userFansClubStatus_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge badge_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder> badgeBuilder_; - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - * @return Whether the badge field is set. - */ - public boolean hasBadge() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - * @return The badge. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge getBadge() { - if (badgeBuilder_ == null) { - return badge_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance() : badge_; - } else { - return badgeBuilder_.getMessage(); - } - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - public Builder setBadge(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge value) { - if (badgeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - badge_ = value; - } else { - badgeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - public Builder setBadge( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder builderForValue) { - if (badgeBuilder_ == null) { - badge_ = builderForValue.build(); - } else { - badgeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - public Builder mergeBadge(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge value) { - if (badgeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - badge_ != null && - badge_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance()) { - getBadgeBuilder().mergeFrom(value); - } else { - badge_ = value; - } - } else { - badgeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - public Builder clearBadge() { - bitField0_ = (bitField0_ & ~0x00000008); - badge_ = null; - if (badgeBuilder_ != null) { - badgeBuilder_.dispose(); - badgeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder getBadgeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getBadgeFieldBuilder().getBuilder(); - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder getBadgeOrBuilder() { - if (badgeBuilder_ != null) { - return badgeBuilder_.getMessageOrBuilder(); - } else { - return badge_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.getDefaultInstance() : badge_; - } - } - /** - * .User.FansClub.FansClubData.UserBadge badge = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder> - getBadgeFieldBuilder() { - if (badgeBuilder_ == null) { - badgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadge.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.UserBadgeOrBuilder>( - getBadge(), - getParentForChildren(), - isClean()); - badge_ = null; - } - return badgeBuilder_; - } - - private com.google.protobuf.Internal.LongList availableGiftIds_ = emptyLongList(); - private void ensureAvailableGiftIdsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - availableGiftIds_ = mutableCopy(availableGiftIds_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated int64 availableGiftIds = 5; - * @return A list containing the availableGiftIds. - */ - public java.util.List - getAvailableGiftIdsList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(availableGiftIds_) : availableGiftIds_; - } - /** - * repeated int64 availableGiftIds = 5; - * @return The count of availableGiftIds. - */ - public int getAvailableGiftIdsCount() { - return availableGiftIds_.size(); - } - /** - * repeated int64 availableGiftIds = 5; - * @param index The index of the element to return. - * @return The availableGiftIds at the given index. - */ - public long getAvailableGiftIds(int index) { - return availableGiftIds_.getLong(index); - } - /** - * repeated int64 availableGiftIds = 5; - * @param index The index to set the value at. - * @param value The availableGiftIds to set. - * @return This builder for chaining. - */ - public Builder setAvailableGiftIds( - int index, long value) { - - ensureAvailableGiftIdsIsMutable(); - availableGiftIds_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 availableGiftIds = 5; - * @param value The availableGiftIds to add. - * @return This builder for chaining. - */ - public Builder addAvailableGiftIds(long value) { - - ensureAvailableGiftIdsIsMutable(); - availableGiftIds_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 availableGiftIds = 5; - * @param values The availableGiftIds to add. - * @return This builder for chaining. - */ - public Builder addAllAvailableGiftIds( - java.lang.Iterable values) { - ensureAvailableGiftIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, availableGiftIds_); - onChanged(); - return this; - } - /** - * repeated int64 availableGiftIds = 5; - * @return This builder for chaining. - */ - public Builder clearAvailableGiftIds() { - availableGiftIds_ = emptyLongList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private long anchorId_ ; - /** - * int64 anchorId = 6; - * @return The anchorId. - */ - @java.lang.Override - public long getAnchorId() { - return anchorId_; - } - /** - * int64 anchorId = 6; - * @param value The anchorId to set. - * @return This builder for chaining. - */ - public Builder setAnchorId(long value) { - - anchorId_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int64 anchorId = 6; - * @return This builder for chaining. - */ - public Builder clearAnchorId() { - bitField0_ = (bitField0_ & ~0x00000020); - anchorId_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.FansClub.FansClubData) - } - - // @@protoc_insertion_point(class_scope:User.FansClub.FansClubData) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FansClubData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DATA_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData data_; - /** - * .User.FansClub.FansClubData data = 1; - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return data_ != null; - } - /** - * .User.FansClub.FansClubData data = 1; - * @return The data. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getData() { - return data_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance() : data_; - } - /** - * .User.FansClub.FansClubData data = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder getDataOrBuilder() { - return data_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance() : data_; - } - - public static final int PREFERDATA_FIELD_NUMBER = 2; - private static final class PreferDataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_PreferDataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance()); - } - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData> preferData_; - private com.google.protobuf.MapField - internalGetPreferData() { - if (preferData_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PreferDataDefaultEntryHolder.defaultEntry); - } - return preferData_; - } - public int getPreferDataCount() { - return internalGetPreferData().getMap().size(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public boolean containsPreferData( - int key) { - - return internalGetPreferData().getMap().containsKey(key); - } - /** - * Use {@link #getPreferDataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getPreferData() { - return getPreferDataMap(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public java.util.Map getPreferDataMap() { - return internalGetPreferData().getMap(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getPreferDataOrDefault( - int key, - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData defaultValue) { - - java.util.Map map = - internalGetPreferData().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getPreferDataOrThrow( - int key) { - - java.util.Map map = - internalGetPreferData().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (data_ != null) { - output.writeMessage(1, getData()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetPreferData(), - PreferDataDefaultEntryHolder.defaultEntry, - 2); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (data_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getData()); - } - for (java.util.Map.Entry entry - : internalGetPreferData().getMap().entrySet()) { - com.google.protobuf.MapEntry - preferData__ = PreferDataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, preferData__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub) obj; - - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData() - .equals(other.getData())) return false; - } - if (!internalGetPreferData().equals( - other.internalGetPreferData())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - if (!internalGetPreferData().getMap().isEmpty()) { - hash = (37 * hash) + PREFERDATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetPreferData().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.FansClub} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.FansClub) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetPreferData(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutablePreferData(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - data_ = null; - if (dataBuilder_ != null) { - dataBuilder_.dispose(); - dataBuilder_ = null; - } - internalGetMutablePreferData().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansClub_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.data_ = dataBuilder_ == null - ? data_ - : dataBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.preferData_ = internalGetPreferData(); - result.preferData_.makeImmutable(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); - } - internalGetMutablePreferData().mergeFrom( - other.internalGetPreferData()); - bitField0_ |= 0x00000002; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - preferData__ = input.readMessage( - PreferDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutablePreferData().getMutableMap().put( - preferData__.getKey(), preferData__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData data_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder> dataBuilder_; - /** - * .User.FansClub.FansClubData data = 1; - * @return Whether the data field is set. - */ - public boolean hasData() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .User.FansClub.FansClubData data = 1; - * @return The data. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getData() { - if (dataBuilder_ == null) { - return data_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance() : data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * .User.FansClub.FansClubData data = 1; - */ - public Builder setData(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - } else { - dataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData data = 1; - */ - public Builder setData( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData data = 1; - */ - public Builder mergeData(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData value) { - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - data_ != null && - data_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance()) { - getDataBuilder().mergeFrom(value); - } else { - data_ = value; - } - } else { - dataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData data = 1; - */ - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000001); - data_ = null; - if (dataBuilder_ != null) { - dataBuilder_.dispose(); - dataBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.FansClub.FansClubData data = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder getDataBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * .User.FansClub.FansClubData data = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.getDefaultInstance() : data_; - } - } - /** - * .User.FansClub.FansClubData data = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubDataOrBuilder>( - getData(), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.Integer, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData> preferData_; - private com.google.protobuf.MapField - internalGetPreferData() { - if (preferData_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PreferDataDefaultEntryHolder.defaultEntry); - } - return preferData_; - } - private com.google.protobuf.MapField - internalGetMutablePreferData() { - if (preferData_ == null) { - preferData_ = com.google.protobuf.MapField.newMapField( - PreferDataDefaultEntryHolder.defaultEntry); - } - if (!preferData_.isMutable()) { - preferData_ = preferData_.copy(); - } - bitField0_ |= 0x00000002; - onChanged(); - return preferData_; - } - public int getPreferDataCount() { - return internalGetPreferData().getMap().size(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public boolean containsPreferData( - int key) { - - return internalGetPreferData().getMap().containsKey(key); - } - /** - * Use {@link #getPreferDataMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getPreferData() { - return getPreferDataMap(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public java.util.Map getPreferDataMap() { - return internalGetPreferData().getMap(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getPreferDataOrDefault( - int key, - /* nullable */ -tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData defaultValue) { - - java.util.Map map = - internalGetPreferData().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData getPreferDataOrThrow( - int key) { - - java.util.Map map = - internalGetPreferData().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - public Builder clearPreferData() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutablePreferData().getMutableMap() - .clear(); - return this; - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - public Builder removePreferData( - int key) { - - internalGetMutablePreferData().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutablePreferData() { - bitField0_ |= 0x00000002; - return internalGetMutablePreferData().getMutableMap(); - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - public Builder putPreferData( - int key, - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.FansClubData value) { - - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutablePreferData().getMutableMap() - .put(key, value); - bitField0_ |= 0x00000002; - return this; - } - /** - * map<int32, .User.FansClub.FansClubData> preferData = 2; - */ - public Builder putAllPreferData( - java.util.Map values) { - internalGetMutablePreferData().getMutableMap() - .putAll(values); - bitField0_ |= 0x00000002; - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.FansClub) - } - - // @@protoc_insertion_point(class_scope:User.FansClub) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FansClub parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FansGroupInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.FansGroupInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.FansGroupInfo} - */ - public static final class FansGroupInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.FansGroupInfo) - FansGroupInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use FansGroupInfo.newBuilder() to construct. - private FansGroupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FansGroupInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FansGroupInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansGroupInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansGroupInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.FansGroupInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.FansGroupInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansGroupInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansGroupInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FansGroupInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.FansGroupInfo) - } - - // @@protoc_insertion_point(class_scope:User.FansGroupInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FansGroupInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FollowInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.FollowInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 followingCount = 1; - * @return The followingCount. - */ - long getFollowingCount(); - - /** - * int64 followerCount = 2; - * @return The followerCount. - */ - long getFollowerCount(); - - /** - * int64 followStatus = 3; - * @return The followStatus. - */ - long getFollowStatus(); - - /** - * int64 pushStatus = 4; - * @return The pushStatus. - */ - long getPushStatus(); - - /** - * string remarkName = 5; - * @return The remarkName. - */ - java.lang.String getRemarkName(); - /** - * string remarkName = 5; - * @return The bytes for remarkName. - */ - com.google.protobuf.ByteString - getRemarkNameBytes(); - } - /** - * Protobuf type {@code User.FollowInfo} - */ - public static final class FollowInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.FollowInfo) - FollowInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use FollowInfo.newBuilder() to construct. - private FollowInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FollowInfo() { - remarkName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FollowInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FollowInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FollowInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder.class); - } - - public static final int FOLLOWINGCOUNT_FIELD_NUMBER = 1; - private long followingCount_ = 0L; - /** - * int64 followingCount = 1; - * @return The followingCount. - */ - @java.lang.Override - public long getFollowingCount() { - return followingCount_; - } - - public static final int FOLLOWERCOUNT_FIELD_NUMBER = 2; - private long followerCount_ = 0L; - /** - * int64 followerCount = 2; - * @return The followerCount. - */ - @java.lang.Override - public long getFollowerCount() { - return followerCount_; - } - - public static final int FOLLOWSTATUS_FIELD_NUMBER = 3; - private long followStatus_ = 0L; - /** - * int64 followStatus = 3; - * @return The followStatus. - */ - @java.lang.Override - public long getFollowStatus() { - return followStatus_; - } - - public static final int PUSHSTATUS_FIELD_NUMBER = 4; - private long pushStatus_ = 0L; - /** - * int64 pushStatus = 4; - * @return The pushStatus. - */ - @java.lang.Override - public long getPushStatus() { - return pushStatus_; - } - - public static final int REMARKNAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object remarkName_ = ""; - /** - * string remarkName = 5; - * @return The remarkName. - */ - @java.lang.Override - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } - } - /** - * string remarkName = 5; - * @return The bytes for remarkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (followingCount_ != 0L) { - output.writeInt64(1, followingCount_); - } - if (followerCount_ != 0L) { - output.writeInt64(2, followerCount_); - } - if (followStatus_ != 0L) { - output.writeInt64(3, followStatus_); - } - if (pushStatus_ != 0L) { - output.writeInt64(4, pushStatus_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, remarkName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (followingCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, followingCount_); - } - if (followerCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, followerCount_); - } - if (followStatus_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, followStatus_); - } - if (pushStatus_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, pushStatus_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, remarkName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo) obj; - - if (getFollowingCount() - != other.getFollowingCount()) return false; - if (getFollowerCount() - != other.getFollowerCount()) return false; - if (getFollowStatus() - != other.getFollowStatus()) return false; - if (getPushStatus() - != other.getPushStatus()) return false; - if (!getRemarkName() - .equals(other.getRemarkName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FOLLOWINGCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFollowingCount()); - hash = (37 * hash) + FOLLOWERCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFollowerCount()); - hash = (37 * hash) + FOLLOWSTATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFollowStatus()); - hash = (37 * hash) + PUSHSTATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPushStatus()); - hash = (37 * hash) + REMARKNAME_FIELD_NUMBER; - hash = (53 * hash) + getRemarkName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.FollowInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.FollowInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FollowInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FollowInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - followingCount_ = 0L; - followerCount_ = 0L; - followStatus_ = 0L; - pushStatus_ = 0L; - remarkName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_FollowInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.followingCount_ = followingCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.followerCount_ = followerCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.followStatus_ = followStatus_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pushStatus_ = pushStatus_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.remarkName_ = remarkName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance()) return this; - if (other.getFollowingCount() != 0L) { - setFollowingCount(other.getFollowingCount()); - } - if (other.getFollowerCount() != 0L) { - setFollowerCount(other.getFollowerCount()); - } - if (other.getFollowStatus() != 0L) { - setFollowStatus(other.getFollowStatus()); - } - if (other.getPushStatus() != 0L) { - setPushStatus(other.getPushStatus()); - } - if (!other.getRemarkName().isEmpty()) { - remarkName_ = other.remarkName_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - followingCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - followerCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - followStatus_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - pushStatus_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - remarkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long followingCount_ ; - /** - * int64 followingCount = 1; - * @return The followingCount. - */ - @java.lang.Override - public long getFollowingCount() { - return followingCount_; - } - /** - * int64 followingCount = 1; - * @param value The followingCount to set. - * @return This builder for chaining. - */ - public Builder setFollowingCount(long value) { - - followingCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 followingCount = 1; - * @return This builder for chaining. - */ - public Builder clearFollowingCount() { - bitField0_ = (bitField0_ & ~0x00000001); - followingCount_ = 0L; - onChanged(); - return this; - } - - private long followerCount_ ; - /** - * int64 followerCount = 2; - * @return The followerCount. - */ - @java.lang.Override - public long getFollowerCount() { - return followerCount_; - } - /** - * int64 followerCount = 2; - * @param value The followerCount to set. - * @return This builder for chaining. - */ - public Builder setFollowerCount(long value) { - - followerCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 followerCount = 2; - * @return This builder for chaining. - */ - public Builder clearFollowerCount() { - bitField0_ = (bitField0_ & ~0x00000002); - followerCount_ = 0L; - onChanged(); - return this; - } - - private long followStatus_ ; - /** - * int64 followStatus = 3; - * @return The followStatus. - */ - @java.lang.Override - public long getFollowStatus() { - return followStatus_; - } - /** - * int64 followStatus = 3; - * @param value The followStatus to set. - * @return This builder for chaining. - */ - public Builder setFollowStatus(long value) { - - followStatus_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 followStatus = 3; - * @return This builder for chaining. - */ - public Builder clearFollowStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - followStatus_ = 0L; - onChanged(); - return this; - } - - private long pushStatus_ ; - /** - * int64 pushStatus = 4; - * @return The pushStatus. - */ - @java.lang.Override - public long getPushStatus() { - return pushStatus_; - } - /** - * int64 pushStatus = 4; - * @param value The pushStatus to set. - * @return This builder for chaining. - */ - public Builder setPushStatus(long value) { - - pushStatus_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * int64 pushStatus = 4; - * @return This builder for chaining. - */ - public Builder clearPushStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - pushStatus_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object remarkName_ = ""; - /** - * string remarkName = 5; - * @return The remarkName. - */ - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string remarkName = 5; - * @return The bytes for remarkName. - */ - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string remarkName = 5; - * @param value The remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - remarkName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string remarkName = 5; - * @return This builder for chaining. - */ - public Builder clearRemarkName() { - remarkName_ = getDefaultInstance().getRemarkName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string remarkName = 5; - * @param value The bytes for remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - remarkName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.FollowInfo) - } - - // @@protoc_insertion_point(class_scope:User.FollowInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FollowInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface JAccreditInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.JAccreditInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.JAccreditInfo} - */ - public static final class JAccreditInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.JAccreditInfo) - JAccreditInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use JAccreditInfo.newBuilder() to construct. - private JAccreditInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private JAccreditInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new JAccreditInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_JAccreditInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_JAccreditInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.JAccreditInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.JAccreditInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_JAccreditInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_JAccreditInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_JAccreditInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.JAccreditInfo) - } - - // @@protoc_insertion_point(class_scope:User.JAccreditInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JAccreditInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NobleLevelInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.NobleLevelInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.NobleLevelInfo} - */ - public static final class NobleLevelInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.NobleLevelInfo) - NobleLevelInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use NobleLevelInfo.newBuilder() to construct. - private NobleLevelInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NobleLevelInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NobleLevelInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_NobleLevelInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_NobleLevelInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.NobleLevelInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.NobleLevelInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_NobleLevelInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_NobleLevelInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_NobleLevelInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.NobleLevelInfo) - } - - // @@protoc_insertion_point(class_scope:User.NobleLevelInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NobleLevelInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OwnRoomOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.OwnRoom) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.OwnRoom} - */ - public static final class OwnRoom extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.OwnRoom) - OwnRoomOrBuilder { - private static final long serialVersionUID = 0L; - // Use OwnRoom.newBuilder() to construct. - private OwnRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OwnRoom() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OwnRoom(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_OwnRoom_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_OwnRoom_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.OwnRoom} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.OwnRoom) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_OwnRoom_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_OwnRoom_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_OwnRoom_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.OwnRoom) - } - - // @@protoc_insertion_point(class_scope:User.OwnRoom) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OwnRoom parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PayGradeOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.PayGrade) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 totalDiamondCount = 1; - * @return The totalDiamondCount. - */ - long getTotalDiamondCount(); - - /** - * .Image diamondIcon = 2; - * @return Whether the diamondIcon field is set. - */ - boolean hasDiamondIcon(); - /** - * .Image diamondIcon = 2; - * @return The diamondIcon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDiamondIcon(); - /** - * .Image diamondIcon = 2; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getDiamondIconOrBuilder(); - - /** - * string name = 3; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 3; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .Image icon = 4; - * @return Whether the icon field is set. - */ - boolean hasIcon(); - /** - * .Image icon = 4; - * @return The icon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon(); - /** - * .Image icon = 4; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder(); - - /** - * string nextName = 5; - * @return The nextName. - */ - java.lang.String getNextName(); - /** - * string nextName = 5; - * @return The bytes for nextName. - */ - com.google.protobuf.ByteString - getNextNameBytes(); - - /** - * int64 level = 6; - * @return The level. - */ - long getLevel(); - - /** - * .Image nextIcon = 7; - * @return Whether the nextIcon field is set. - */ - boolean hasNextIcon(); - /** - * .Image nextIcon = 7; - * @return The nextIcon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNextIcon(); - /** - * .Image nextIcon = 7; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNextIconOrBuilder(); - - /** - * int64 nextDiamond = 8; - * @return The nextDiamond. - */ - long getNextDiamond(); - - /** - * int64 nowDiamond = 9; - * @return The nowDiamond. - */ - long getNowDiamond(); - - /** - * int64 thisGradeMinDiamond = 10; - * @return The thisGradeMinDiamond. - */ - long getThisGradeMinDiamond(); - - /** - * int64 thisGradeMaxDiamond = 11; - * @return The thisGradeMaxDiamond. - */ - long getThisGradeMaxDiamond(); - - /** - * int64 payDiamondBak = 12; - * @return The payDiamondBak. - */ - long getPayDiamondBak(); - - /** - * string gradeDescribe = 13; - * @return The gradeDescribe. - */ - java.lang.String getGradeDescribe(); - /** - * string gradeDescribe = 13; - * @return The bytes for gradeDescribe. - */ - com.google.protobuf.ByteString - getGradeDescribeBytes(); - - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - java.util.List - getGradeIconListList(); - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon getGradeIconList(int index); - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - int getGradeIconListCount(); - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - java.util.List - getGradeIconListOrBuilderList(); - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder getGradeIconListOrBuilder( - int index); - - /** - * int64 screenChatType = 15; - * @return The screenChatType. - */ - long getScreenChatType(); - - /** - * .Image imIcon = 16; - * @return Whether the imIcon field is set. - */ - boolean hasImIcon(); - /** - * .Image imIcon = 16; - * @return The imIcon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImIcon(); - /** - * .Image imIcon = 16; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImIconOrBuilder(); - - /** - * .Image imIconWithLevel = 17; - * @return Whether the imIconWithLevel field is set. - */ - boolean hasImIconWithLevel(); - /** - * .Image imIconWithLevel = 17; - * @return The imIconWithLevel. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImIconWithLevel(); - /** - * .Image imIconWithLevel = 17; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImIconWithLevelOrBuilder(); - - /** - * .Image liveIcon = 18; - * @return Whether the liveIcon field is set. - */ - boolean hasLiveIcon(); - /** - * .Image liveIcon = 18; - * @return The liveIcon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getLiveIcon(); - /** - * .Image liveIcon = 18; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getLiveIconOrBuilder(); - - /** - * .Image newImIconWithLevel = 19; - * @return Whether the newImIconWithLevel field is set. - */ - boolean hasNewImIconWithLevel(); - /** - * .Image newImIconWithLevel = 19; - * @return The newImIconWithLevel. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewImIconWithLevel(); - /** - * .Image newImIconWithLevel = 19; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewImIconWithLevelOrBuilder(); - - /** - * .Image newLiveIcon = 20; - * @return Whether the newLiveIcon field is set. - */ - boolean hasNewLiveIcon(); - /** - * .Image newLiveIcon = 20; - * @return The newLiveIcon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewLiveIcon(); - /** - * .Image newLiveIcon = 20; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewLiveIconOrBuilder(); - - /** - * int64 upgradeNeedConsume = 21; - * @return The upgradeNeedConsume. - */ - long getUpgradeNeedConsume(); - - /** - * string nextPrivileges = 22; - * @return The nextPrivileges. - */ - java.lang.String getNextPrivileges(); - /** - * string nextPrivileges = 22; - * @return The bytes for nextPrivileges. - */ - com.google.protobuf.ByteString - getNextPrivilegesBytes(); - - /** - * .Image background = 23; - * @return Whether the background field is set. - */ - boolean hasBackground(); - /** - * .Image background = 23; - * @return The background. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackground(); - /** - * .Image background = 23; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundOrBuilder(); - - /** - * .Image backgroundBack = 24; - * @return Whether the backgroundBack field is set. - */ - boolean hasBackgroundBack(); - /** - * .Image backgroundBack = 24; - * @return The backgroundBack. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundBack(); - /** - * .Image backgroundBack = 24; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundBackOrBuilder(); - - /** - * int64 score = 25; - * @return The score. - */ - long getScore(); - - /** - *
-       * GradeBuffInfo buffInfo = 26;
-       * 
- * - * string gradeBanner = 1001; - * @return The gradeBanner. - */ - java.lang.String getGradeBanner(); - /** - *
-       * GradeBuffInfo buffInfo = 26;
-       * 
- * - * string gradeBanner = 1001; - * @return The bytes for gradeBanner. - */ - com.google.protobuf.ByteString - getGradeBannerBytes(); - - /** - * .Image profileDialogBg = 1002; - * @return Whether the profileDialogBg field is set. - */ - boolean hasProfileDialogBg(); - /** - * .Image profileDialogBg = 1002; - * @return The profileDialogBg. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getProfileDialogBg(); - /** - * .Image profileDialogBg = 1002; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getProfileDialogBgOrBuilder(); - - /** - * .Image profileDialogBgBack = 1003; - * @return Whether the profileDialogBgBack field is set. - */ - boolean hasProfileDialogBgBack(); - /** - * .Image profileDialogBgBack = 1003; - * @return The profileDialogBgBack. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getProfileDialogBgBack(); - /** - * .Image profileDialogBgBack = 1003; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getProfileDialogBgBackOrBuilder(); - } - /** - * Protobuf type {@code User.PayGrade} - */ - public static final class PayGrade extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.PayGrade) - PayGradeOrBuilder { - private static final long serialVersionUID = 0L; - // Use PayGrade.newBuilder() to construct. - private PayGrade(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PayGrade() { - name_ = ""; - nextName_ = ""; - gradeDescribe_ = ""; - gradeIconList_ = java.util.Collections.emptyList(); - nextPrivileges_ = ""; - gradeBanner_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PayGrade(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder.class); - } - - public interface GradeIconOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.PayGrade.GradeIcon) - com.google.protobuf.MessageOrBuilder { - - /** - * .Image icon = 1; - * @return Whether the icon field is set. - */ - boolean hasIcon(); - /** - * .Image icon = 1; - * @return The icon. - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon(); - /** - * .Image icon = 1; - */ - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder(); - - /** - * int64 iconDiamond = 2; - * @return The iconDiamond. - */ - long getIconDiamond(); - - /** - * int64 level = 3; - * @return The level. - */ - long getLevel(); - - /** - * string levelStr = 4; - * @return The levelStr. - */ - java.lang.String getLevelStr(); - /** - * string levelStr = 4; - * @return The bytes for levelStr. - */ - com.google.protobuf.ByteString - getLevelStrBytes(); - } - /** - * Protobuf type {@code User.PayGrade.GradeIcon} - */ - public static final class GradeIcon extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.PayGrade.GradeIcon) - GradeIconOrBuilder { - private static final long serialVersionUID = 0L; - // Use GradeIcon.newBuilder() to construct. - private GradeIcon(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GradeIcon() { - levelStr_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GradeIcon(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_GradeIcon_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_GradeIcon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder.class); - } - - public static final int ICON_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image icon_; - /** - * .Image icon = 1; - * @return Whether the icon field is set. - */ - @java.lang.Override - public boolean hasIcon() { - return icon_ != null; - } - /** - * .Image icon = 1; - * @return The icon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon() { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - /** - * .Image icon = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder() { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - - public static final int ICONDIAMOND_FIELD_NUMBER = 2; - private long iconDiamond_ = 0L; - /** - * int64 iconDiamond = 2; - * @return The iconDiamond. - */ - @java.lang.Override - public long getIconDiamond() { - return iconDiamond_; - } - - public static final int LEVEL_FIELD_NUMBER = 3; - private long level_ = 0L; - /** - * int64 level = 3; - * @return The level. - */ - @java.lang.Override - public long getLevel() { - return level_; - } - - public static final int LEVELSTR_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object levelStr_ = ""; - /** - * string levelStr = 4; - * @return The levelStr. - */ - @java.lang.Override - public java.lang.String getLevelStr() { - java.lang.Object ref = levelStr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - levelStr_ = s; - return s; - } - } - /** - * string levelStr = 4; - * @return The bytes for levelStr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLevelStrBytes() { - java.lang.Object ref = levelStr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - levelStr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (icon_ != null) { - output.writeMessage(1, getIcon()); - } - if (iconDiamond_ != 0L) { - output.writeInt64(2, iconDiamond_); - } - if (level_ != 0L) { - output.writeInt64(3, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(levelStr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, levelStr_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (icon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIcon()); - } - if (iconDiamond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, iconDiamond_); - } - if (level_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(levelStr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, levelStr_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon) obj; - - if (hasIcon() != other.hasIcon()) return false; - if (hasIcon()) { - if (!getIcon() - .equals(other.getIcon())) return false; - } - if (getIconDiamond() - != other.getIconDiamond()) return false; - if (getLevel() - != other.getLevel()) return false; - if (!getLevelStr() - .equals(other.getLevelStr())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIcon()) { - hash = (37 * hash) + ICON_FIELD_NUMBER; - hash = (53 * hash) + getIcon().hashCode(); - } - hash = (37 * hash) + ICONDIAMOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIconDiamond()); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLevel()); - hash = (37 * hash) + LEVELSTR_FIELD_NUMBER; - hash = (53 * hash) + getLevelStr().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.PayGrade.GradeIcon} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.PayGrade.GradeIcon) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_GradeIcon_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_GradeIcon_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - icon_ = null; - if (iconBuilder_ != null) { - iconBuilder_.dispose(); - iconBuilder_ = null; - } - iconDiamond_ = 0L; - level_ = 0L; - levelStr_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_GradeIcon_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.icon_ = iconBuilder_ == null - ? icon_ - : iconBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.iconDiamond_ = iconDiamond_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.levelStr_ = levelStr_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.getDefaultInstance()) return this; - if (other.hasIcon()) { - mergeIcon(other.getIcon()); - } - if (other.getIconDiamond() != 0L) { - setIconDiamond(other.getIconDiamond()); - } - if (other.getLevel() != 0L) { - setLevel(other.getLevel()); - } - if (!other.getLevelStr().isEmpty()) { - levelStr_ = other.levelStr_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - iconDiamond_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - level_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - levelStr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image icon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> iconBuilder_; - /** - * .Image icon = 1; - * @return Whether the icon field is set. - */ - public boolean hasIcon() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .Image icon = 1; - * @return The icon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon() { - if (iconBuilder_ == null) { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } else { - return iconBuilder_.getMessage(); - } - } - /** - * .Image icon = 1; - */ - public Builder setIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (iconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - icon_ = value; - } else { - iconBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image icon = 1; - */ - public Builder setIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (iconBuilder_ == null) { - icon_ = builderForValue.build(); - } else { - iconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image icon = 1; - */ - public Builder mergeIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (iconBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - icon_ != null && - icon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getIconBuilder().mergeFrom(value); - } else { - icon_ = value; - } - } else { - iconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .Image icon = 1; - */ - public Builder clearIcon() { - bitField0_ = (bitField0_ & ~0x00000001); - icon_ = null; - if (iconBuilder_ != null) { - iconBuilder_.dispose(); - iconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image icon = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getIconBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getIconFieldBuilder().getBuilder(); - } - /** - * .Image icon = 1; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder() { - if (iconBuilder_ != null) { - return iconBuilder_.getMessageOrBuilder(); - } else { - return icon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - } - /** - * .Image icon = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getIconFieldBuilder() { - if (iconBuilder_ == null) { - iconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getIcon(), - getParentForChildren(), - isClean()); - icon_ = null; - } - return iconBuilder_; - } - - private long iconDiamond_ ; - /** - * int64 iconDiamond = 2; - * @return The iconDiamond. - */ - @java.lang.Override - public long getIconDiamond() { - return iconDiamond_; - } - /** - * int64 iconDiamond = 2; - * @param value The iconDiamond to set. - * @return This builder for chaining. - */ - public Builder setIconDiamond(long value) { - - iconDiamond_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 iconDiamond = 2; - * @return This builder for chaining. - */ - public Builder clearIconDiamond() { - bitField0_ = (bitField0_ & ~0x00000002); - iconDiamond_ = 0L; - onChanged(); - return this; - } - - private long level_ ; - /** - * int64 level = 3; - * @return The level. - */ - @java.lang.Override - public long getLevel() { - return level_; - } - /** - * int64 level = 3; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(long value) { - - level_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 level = 3; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000004); - level_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object levelStr_ = ""; - /** - * string levelStr = 4; - * @return The levelStr. - */ - public java.lang.String getLevelStr() { - java.lang.Object ref = levelStr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - levelStr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string levelStr = 4; - * @return The bytes for levelStr. - */ - public com.google.protobuf.ByteString - getLevelStrBytes() { - java.lang.Object ref = levelStr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - levelStr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string levelStr = 4; - * @param value The levelStr to set. - * @return This builder for chaining. - */ - public Builder setLevelStr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - levelStr_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string levelStr = 4; - * @return This builder for chaining. - */ - public Builder clearLevelStr() { - levelStr_ = getDefaultInstance().getLevelStr(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string levelStr = 4; - * @param value The bytes for levelStr to set. - * @return This builder for chaining. - */ - public Builder setLevelStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - levelStr_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.PayGrade.GradeIcon) - } - - // @@protoc_insertion_point(class_scope:User.PayGrade.GradeIcon) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GradeIcon parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int TOTALDIAMONDCOUNT_FIELD_NUMBER = 1; - private long totalDiamondCount_ = 0L; - /** - * int64 totalDiamondCount = 1; - * @return The totalDiamondCount. - */ - @java.lang.Override - public long getTotalDiamondCount() { - return totalDiamondCount_; - } - - public static final int DIAMONDICON_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image diamondIcon_; - /** - * .Image diamondIcon = 2; - * @return Whether the diamondIcon field is set. - */ - @java.lang.Override - public boolean hasDiamondIcon() { - return diamondIcon_ != null; - } - /** - * .Image diamondIcon = 2; - * @return The diamondIcon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDiamondIcon() { - return diamondIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : diamondIcon_; - } - /** - * .Image diamondIcon = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getDiamondIconOrBuilder() { - return diamondIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : diamondIcon_; - } - - public static final int NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * string name = 3; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 3; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ICON_FIELD_NUMBER = 4; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image icon_; - /** - * .Image icon = 4; - * @return Whether the icon field is set. - */ - @java.lang.Override - public boolean hasIcon() { - return icon_ != null; - } - /** - * .Image icon = 4; - * @return The icon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon() { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - /** - * .Image icon = 4; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder() { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - - public static final int NEXTNAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object nextName_ = ""; - /** - * string nextName = 5; - * @return The nextName. - */ - @java.lang.Override - public java.lang.String getNextName() { - java.lang.Object ref = nextName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextName_ = s; - return s; - } - } - /** - * string nextName = 5; - * @return The bytes for nextName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextNameBytes() { - java.lang.Object ref = nextName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEVEL_FIELD_NUMBER = 6; - private long level_ = 0L; - /** - * int64 level = 6; - * @return The level. - */ - @java.lang.Override - public long getLevel() { - return level_; - } - - public static final int NEXTICON_FIELD_NUMBER = 7; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image nextIcon_; - /** - * .Image nextIcon = 7; - * @return Whether the nextIcon field is set. - */ - @java.lang.Override - public boolean hasNextIcon() { - return nextIcon_ != null; - } - /** - * .Image nextIcon = 7; - * @return The nextIcon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNextIcon() { - return nextIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : nextIcon_; - } - /** - * .Image nextIcon = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNextIconOrBuilder() { - return nextIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : nextIcon_; - } - - public static final int NEXTDIAMOND_FIELD_NUMBER = 8; - private long nextDiamond_ = 0L; - /** - * int64 nextDiamond = 8; - * @return The nextDiamond. - */ - @java.lang.Override - public long getNextDiamond() { - return nextDiamond_; - } - - public static final int NOWDIAMOND_FIELD_NUMBER = 9; - private long nowDiamond_ = 0L; - /** - * int64 nowDiamond = 9; - * @return The nowDiamond. - */ - @java.lang.Override - public long getNowDiamond() { - return nowDiamond_; - } - - public static final int THISGRADEMINDIAMOND_FIELD_NUMBER = 10; - private long thisGradeMinDiamond_ = 0L; - /** - * int64 thisGradeMinDiamond = 10; - * @return The thisGradeMinDiamond. - */ - @java.lang.Override - public long getThisGradeMinDiamond() { - return thisGradeMinDiamond_; - } - - public static final int THISGRADEMAXDIAMOND_FIELD_NUMBER = 11; - private long thisGradeMaxDiamond_ = 0L; - /** - * int64 thisGradeMaxDiamond = 11; - * @return The thisGradeMaxDiamond. - */ - @java.lang.Override - public long getThisGradeMaxDiamond() { - return thisGradeMaxDiamond_; - } - - public static final int PAYDIAMONDBAK_FIELD_NUMBER = 12; - private long payDiamondBak_ = 0L; - /** - * int64 payDiamondBak = 12; - * @return The payDiamondBak. - */ - @java.lang.Override - public long getPayDiamondBak() { - return payDiamondBak_; - } - - public static final int GRADEDESCRIBE_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object gradeDescribe_ = ""; - /** - * string gradeDescribe = 13; - * @return The gradeDescribe. - */ - @java.lang.Override - public java.lang.String getGradeDescribe() { - java.lang.Object ref = gradeDescribe_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gradeDescribe_ = s; - return s; - } - } - /** - * string gradeDescribe = 13; - * @return The bytes for gradeDescribe. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGradeDescribeBytes() { - java.lang.Object ref = gradeDescribe_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gradeDescribe_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRADEICONLIST_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private java.util.List gradeIconList_; - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - @java.lang.Override - public java.util.List getGradeIconListList() { - return gradeIconList_; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - @java.lang.Override - public java.util.List - getGradeIconListOrBuilderList() { - return gradeIconList_; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - @java.lang.Override - public int getGradeIconListCount() { - return gradeIconList_.size(); - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon getGradeIconList(int index) { - return gradeIconList_.get(index); - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder getGradeIconListOrBuilder( - int index) { - return gradeIconList_.get(index); - } - - public static final int SCREENCHATTYPE_FIELD_NUMBER = 15; - private long screenChatType_ = 0L; - /** - * int64 screenChatType = 15; - * @return The screenChatType. - */ - @java.lang.Override - public long getScreenChatType() { - return screenChatType_; - } - - public static final int IMICON_FIELD_NUMBER = 16; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image imIcon_; - /** - * .Image imIcon = 16; - * @return Whether the imIcon field is set. - */ - @java.lang.Override - public boolean hasImIcon() { - return imIcon_ != null; - } - /** - * .Image imIcon = 16; - * @return The imIcon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImIcon() { - return imIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIcon_; - } - /** - * .Image imIcon = 16; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImIconOrBuilder() { - return imIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIcon_; - } - - public static final int IMICONWITHLEVEL_FIELD_NUMBER = 17; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image imIconWithLevel_; - /** - * .Image imIconWithLevel = 17; - * @return Whether the imIconWithLevel field is set. - */ - @java.lang.Override - public boolean hasImIconWithLevel() { - return imIconWithLevel_ != null; - } - /** - * .Image imIconWithLevel = 17; - * @return The imIconWithLevel. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImIconWithLevel() { - return imIconWithLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIconWithLevel_; - } - /** - * .Image imIconWithLevel = 17; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImIconWithLevelOrBuilder() { - return imIconWithLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIconWithLevel_; - } - - public static final int LIVEICON_FIELD_NUMBER = 18; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image liveIcon_; - /** - * .Image liveIcon = 18; - * @return Whether the liveIcon field is set. - */ - @java.lang.Override - public boolean hasLiveIcon() { - return liveIcon_ != null; - } - /** - * .Image liveIcon = 18; - * @return The liveIcon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getLiveIcon() { - return liveIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : liveIcon_; - } - /** - * .Image liveIcon = 18; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getLiveIconOrBuilder() { - return liveIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : liveIcon_; - } - - public static final int NEWIMICONWITHLEVEL_FIELD_NUMBER = 19; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image newImIconWithLevel_; - /** - * .Image newImIconWithLevel = 19; - * @return Whether the newImIconWithLevel field is set. - */ - @java.lang.Override - public boolean hasNewImIconWithLevel() { - return newImIconWithLevel_ != null; - } - /** - * .Image newImIconWithLevel = 19; - * @return The newImIconWithLevel. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewImIconWithLevel() { - return newImIconWithLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newImIconWithLevel_; - } - /** - * .Image newImIconWithLevel = 19; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewImIconWithLevelOrBuilder() { - return newImIconWithLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newImIconWithLevel_; - } - - public static final int NEWLIVEICON_FIELD_NUMBER = 20; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image newLiveIcon_; - /** - * .Image newLiveIcon = 20; - * @return Whether the newLiveIcon field is set. - */ - @java.lang.Override - public boolean hasNewLiveIcon() { - return newLiveIcon_ != null; - } - /** - * .Image newLiveIcon = 20; - * @return The newLiveIcon. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewLiveIcon() { - return newLiveIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newLiveIcon_; - } - /** - * .Image newLiveIcon = 20; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewLiveIconOrBuilder() { - return newLiveIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newLiveIcon_; - } - - public static final int UPGRADENEEDCONSUME_FIELD_NUMBER = 21; - private long upgradeNeedConsume_ = 0L; - /** - * int64 upgradeNeedConsume = 21; - * @return The upgradeNeedConsume. - */ - @java.lang.Override - public long getUpgradeNeedConsume() { - return upgradeNeedConsume_; - } - - public static final int NEXTPRIVILEGES_FIELD_NUMBER = 22; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPrivileges_ = ""; - /** - * string nextPrivileges = 22; - * @return The nextPrivileges. - */ - @java.lang.Override - public java.lang.String getNextPrivileges() { - java.lang.Object ref = nextPrivileges_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPrivileges_ = s; - return s; - } - } - /** - * string nextPrivileges = 22; - * @return The bytes for nextPrivileges. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPrivilegesBytes() { - java.lang.Object ref = nextPrivileges_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPrivileges_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BACKGROUND_FIELD_NUMBER = 23; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image background_; - /** - * .Image background = 23; - * @return Whether the background field is set. - */ - @java.lang.Override - public boolean hasBackground() { - return background_ != null; - } - /** - * .Image background = 23; - * @return The background. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackground() { - return background_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } - /** - * .Image background = 23; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundOrBuilder() { - return background_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } - - public static final int BACKGROUNDBACK_FIELD_NUMBER = 24; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundBack_; - /** - * .Image backgroundBack = 24; - * @return Whether the backgroundBack field is set. - */ - @java.lang.Override - public boolean hasBackgroundBack() { - return backgroundBack_ != null; - } - /** - * .Image backgroundBack = 24; - * @return The backgroundBack. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundBack() { - return backgroundBack_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundBack_; - } - /** - * .Image backgroundBack = 24; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundBackOrBuilder() { - return backgroundBack_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundBack_; - } - - public static final int SCORE_FIELD_NUMBER = 25; - private long score_ = 0L; - /** - * int64 score = 25; - * @return The score. - */ - @java.lang.Override - public long getScore() { - return score_; - } - - public static final int GRADEBANNER_FIELD_NUMBER = 1001; - @SuppressWarnings("serial") - private volatile java.lang.Object gradeBanner_ = ""; - /** - *
-       * GradeBuffInfo buffInfo = 26;
-       * 
- * - * string gradeBanner = 1001; - * @return The gradeBanner. - */ - @java.lang.Override - public java.lang.String getGradeBanner() { - java.lang.Object ref = gradeBanner_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gradeBanner_ = s; - return s; - } - } - /** - *
-       * GradeBuffInfo buffInfo = 26;
-       * 
- * - * string gradeBanner = 1001; - * @return The bytes for gradeBanner. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGradeBannerBytes() { - java.lang.Object ref = gradeBanner_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gradeBanner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROFILEDIALOGBG_FIELD_NUMBER = 1002; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image profileDialogBg_; - /** - * .Image profileDialogBg = 1002; - * @return Whether the profileDialogBg field is set. - */ - @java.lang.Override - public boolean hasProfileDialogBg() { - return profileDialogBg_ != null; - } - /** - * .Image profileDialogBg = 1002; - * @return The profileDialogBg. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getProfileDialogBg() { - return profileDialogBg_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBg_; - } - /** - * .Image profileDialogBg = 1002; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getProfileDialogBgOrBuilder() { - return profileDialogBg_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBg_; - } - - public static final int PROFILEDIALOGBGBACK_FIELD_NUMBER = 1003; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image profileDialogBgBack_; - /** - * .Image profileDialogBgBack = 1003; - * @return Whether the profileDialogBgBack field is set. - */ - @java.lang.Override - public boolean hasProfileDialogBgBack() { - return profileDialogBgBack_ != null; - } - /** - * .Image profileDialogBgBack = 1003; - * @return The profileDialogBgBack. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getProfileDialogBgBack() { - return profileDialogBgBack_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBgBack_; - } - /** - * .Image profileDialogBgBack = 1003; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getProfileDialogBgBackOrBuilder() { - return profileDialogBgBack_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBgBack_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (totalDiamondCount_ != 0L) { - output.writeInt64(1, totalDiamondCount_); - } - if (diamondIcon_ != null) { - output.writeMessage(2, getDiamondIcon()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (icon_ != null) { - output.writeMessage(4, getIcon()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nextName_); - } - if (level_ != 0L) { - output.writeInt64(6, level_); - } - if (nextIcon_ != null) { - output.writeMessage(7, getNextIcon()); - } - if (nextDiamond_ != 0L) { - output.writeInt64(8, nextDiamond_); - } - if (nowDiamond_ != 0L) { - output.writeInt64(9, nowDiamond_); - } - if (thisGradeMinDiamond_ != 0L) { - output.writeInt64(10, thisGradeMinDiamond_); - } - if (thisGradeMaxDiamond_ != 0L) { - output.writeInt64(11, thisGradeMaxDiamond_); - } - if (payDiamondBak_ != 0L) { - output.writeInt64(12, payDiamondBak_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gradeDescribe_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, gradeDescribe_); - } - for (int i = 0; i < gradeIconList_.size(); i++) { - output.writeMessage(14, gradeIconList_.get(i)); - } - if (screenChatType_ != 0L) { - output.writeInt64(15, screenChatType_); - } - if (imIcon_ != null) { - output.writeMessage(16, getImIcon()); - } - if (imIconWithLevel_ != null) { - output.writeMessage(17, getImIconWithLevel()); - } - if (liveIcon_ != null) { - output.writeMessage(18, getLiveIcon()); - } - if (newImIconWithLevel_ != null) { - output.writeMessage(19, getNewImIconWithLevel()); - } - if (newLiveIcon_ != null) { - output.writeMessage(20, getNewLiveIcon()); - } - if (upgradeNeedConsume_ != 0L) { - output.writeInt64(21, upgradeNeedConsume_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPrivileges_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 22, nextPrivileges_); - } - if (background_ != null) { - output.writeMessage(23, getBackground()); - } - if (backgroundBack_ != null) { - output.writeMessage(24, getBackgroundBack()); - } - if (score_ != 0L) { - output.writeInt64(25, score_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gradeBanner_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1001, gradeBanner_); - } - if (profileDialogBg_ != null) { - output.writeMessage(1002, getProfileDialogBg()); - } - if (profileDialogBgBack_ != null) { - output.writeMessage(1003, getProfileDialogBgBack()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (totalDiamondCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, totalDiamondCount_); - } - if (diamondIcon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDiamondIcon()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (icon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIcon()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nextName_); - } - if (level_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, level_); - } - if (nextIcon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getNextIcon()); - } - if (nextDiamond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, nextDiamond_); - } - if (nowDiamond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, nowDiamond_); - } - if (thisGradeMinDiamond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, thisGradeMinDiamond_); - } - if (thisGradeMaxDiamond_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(11, thisGradeMaxDiamond_); - } - if (payDiamondBak_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, payDiamondBak_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gradeDescribe_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, gradeDescribe_); - } - for (int i = 0; i < gradeIconList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, gradeIconList_.get(i)); - } - if (screenChatType_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(15, screenChatType_); - } - if (imIcon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getImIcon()); - } - if (imIconWithLevel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getImIconWithLevel()); - } - if (liveIcon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLiveIcon()); - } - if (newImIconWithLevel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getNewImIconWithLevel()); - } - if (newLiveIcon_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getNewLiveIcon()); - } - if (upgradeNeedConsume_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(21, upgradeNeedConsume_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPrivileges_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, nextPrivileges_); - } - if (background_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getBackground()); - } - if (backgroundBack_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getBackgroundBack()); - } - if (score_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(25, score_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gradeBanner_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1001, gradeBanner_); - } - if (profileDialogBg_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1002, getProfileDialogBg()); - } - if (profileDialogBgBack_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1003, getProfileDialogBgBack()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade) obj; - - if (getTotalDiamondCount() - != other.getTotalDiamondCount()) return false; - if (hasDiamondIcon() != other.hasDiamondIcon()) return false; - if (hasDiamondIcon()) { - if (!getDiamondIcon() - .equals(other.getDiamondIcon())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (hasIcon() != other.hasIcon()) return false; - if (hasIcon()) { - if (!getIcon() - .equals(other.getIcon())) return false; - } - if (!getNextName() - .equals(other.getNextName())) return false; - if (getLevel() - != other.getLevel()) return false; - if (hasNextIcon() != other.hasNextIcon()) return false; - if (hasNextIcon()) { - if (!getNextIcon() - .equals(other.getNextIcon())) return false; - } - if (getNextDiamond() - != other.getNextDiamond()) return false; - if (getNowDiamond() - != other.getNowDiamond()) return false; - if (getThisGradeMinDiamond() - != other.getThisGradeMinDiamond()) return false; - if (getThisGradeMaxDiamond() - != other.getThisGradeMaxDiamond()) return false; - if (getPayDiamondBak() - != other.getPayDiamondBak()) return false; - if (!getGradeDescribe() - .equals(other.getGradeDescribe())) return false; - if (!getGradeIconListList() - .equals(other.getGradeIconListList())) return false; - if (getScreenChatType() - != other.getScreenChatType()) return false; - if (hasImIcon() != other.hasImIcon()) return false; - if (hasImIcon()) { - if (!getImIcon() - .equals(other.getImIcon())) return false; - } - if (hasImIconWithLevel() != other.hasImIconWithLevel()) return false; - if (hasImIconWithLevel()) { - if (!getImIconWithLevel() - .equals(other.getImIconWithLevel())) return false; - } - if (hasLiveIcon() != other.hasLiveIcon()) return false; - if (hasLiveIcon()) { - if (!getLiveIcon() - .equals(other.getLiveIcon())) return false; - } - if (hasNewImIconWithLevel() != other.hasNewImIconWithLevel()) return false; - if (hasNewImIconWithLevel()) { - if (!getNewImIconWithLevel() - .equals(other.getNewImIconWithLevel())) return false; - } - if (hasNewLiveIcon() != other.hasNewLiveIcon()) return false; - if (hasNewLiveIcon()) { - if (!getNewLiveIcon() - .equals(other.getNewLiveIcon())) return false; - } - if (getUpgradeNeedConsume() - != other.getUpgradeNeedConsume()) return false; - if (!getNextPrivileges() - .equals(other.getNextPrivileges())) return false; - if (hasBackground() != other.hasBackground()) return false; - if (hasBackground()) { - if (!getBackground() - .equals(other.getBackground())) return false; - } - if (hasBackgroundBack() != other.hasBackgroundBack()) return false; - if (hasBackgroundBack()) { - if (!getBackgroundBack() - .equals(other.getBackgroundBack())) return false; - } - if (getScore() - != other.getScore()) return false; - if (!getGradeBanner() - .equals(other.getGradeBanner())) return false; - if (hasProfileDialogBg() != other.hasProfileDialogBg()) return false; - if (hasProfileDialogBg()) { - if (!getProfileDialogBg() - .equals(other.getProfileDialogBg())) return false; - } - if (hasProfileDialogBgBack() != other.hasProfileDialogBgBack()) return false; - if (hasProfileDialogBgBack()) { - if (!getProfileDialogBgBack() - .equals(other.getProfileDialogBgBack())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTALDIAMONDCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalDiamondCount()); - if (hasDiamondIcon()) { - hash = (37 * hash) + DIAMONDICON_FIELD_NUMBER; - hash = (53 * hash) + getDiamondIcon().hashCode(); - } - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasIcon()) { - hash = (37 * hash) + ICON_FIELD_NUMBER; - hash = (53 * hash) + getIcon().hashCode(); - } - hash = (37 * hash) + NEXTNAME_FIELD_NUMBER; - hash = (53 * hash) + getNextName().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLevel()); - if (hasNextIcon()) { - hash = (37 * hash) + NEXTICON_FIELD_NUMBER; - hash = (53 * hash) + getNextIcon().hashCode(); - } - hash = (37 * hash) + NEXTDIAMOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNextDiamond()); - hash = (37 * hash) + NOWDIAMOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNowDiamond()); - hash = (37 * hash) + THISGRADEMINDIAMOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getThisGradeMinDiamond()); - hash = (37 * hash) + THISGRADEMAXDIAMOND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getThisGradeMaxDiamond()); - hash = (37 * hash) + PAYDIAMONDBAK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPayDiamondBak()); - hash = (37 * hash) + GRADEDESCRIBE_FIELD_NUMBER; - hash = (53 * hash) + getGradeDescribe().hashCode(); - if (getGradeIconListCount() > 0) { - hash = (37 * hash) + GRADEICONLIST_FIELD_NUMBER; - hash = (53 * hash) + getGradeIconListList().hashCode(); - } - hash = (37 * hash) + SCREENCHATTYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getScreenChatType()); - if (hasImIcon()) { - hash = (37 * hash) + IMICON_FIELD_NUMBER; - hash = (53 * hash) + getImIcon().hashCode(); - } - if (hasImIconWithLevel()) { - hash = (37 * hash) + IMICONWITHLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getImIconWithLevel().hashCode(); - } - if (hasLiveIcon()) { - hash = (37 * hash) + LIVEICON_FIELD_NUMBER; - hash = (53 * hash) + getLiveIcon().hashCode(); - } - if (hasNewImIconWithLevel()) { - hash = (37 * hash) + NEWIMICONWITHLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getNewImIconWithLevel().hashCode(); - } - if (hasNewLiveIcon()) { - hash = (37 * hash) + NEWLIVEICON_FIELD_NUMBER; - hash = (53 * hash) + getNewLiveIcon().hashCode(); - } - hash = (37 * hash) + UPGRADENEEDCONSUME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUpgradeNeedConsume()); - hash = (37 * hash) + NEXTPRIVILEGES_FIELD_NUMBER; - hash = (53 * hash) + getNextPrivileges().hashCode(); - if (hasBackground()) { - hash = (37 * hash) + BACKGROUND_FIELD_NUMBER; - hash = (53 * hash) + getBackground().hashCode(); - } - if (hasBackgroundBack()) { - hash = (37 * hash) + BACKGROUNDBACK_FIELD_NUMBER; - hash = (53 * hash) + getBackgroundBack().hashCode(); - } - hash = (37 * hash) + SCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getScore()); - hash = (37 * hash) + GRADEBANNER_FIELD_NUMBER; - hash = (53 * hash) + getGradeBanner().hashCode(); - if (hasProfileDialogBg()) { - hash = (37 * hash) + PROFILEDIALOGBG_FIELD_NUMBER; - hash = (53 * hash) + getProfileDialogBg().hashCode(); - } - if (hasProfileDialogBgBack()) { - hash = (37 * hash) + PROFILEDIALOGBGBACK_FIELD_NUMBER; - hash = (53 * hash) + getProfileDialogBgBack().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.PayGrade} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.PayGrade) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalDiamondCount_ = 0L; - diamondIcon_ = null; - if (diamondIconBuilder_ != null) { - diamondIconBuilder_.dispose(); - diamondIconBuilder_ = null; - } - name_ = ""; - icon_ = null; - if (iconBuilder_ != null) { - iconBuilder_.dispose(); - iconBuilder_ = null; - } - nextName_ = ""; - level_ = 0L; - nextIcon_ = null; - if (nextIconBuilder_ != null) { - nextIconBuilder_.dispose(); - nextIconBuilder_ = null; - } - nextDiamond_ = 0L; - nowDiamond_ = 0L; - thisGradeMinDiamond_ = 0L; - thisGradeMaxDiamond_ = 0L; - payDiamondBak_ = 0L; - gradeDescribe_ = ""; - if (gradeIconListBuilder_ == null) { - gradeIconList_ = java.util.Collections.emptyList(); - } else { - gradeIconList_ = null; - gradeIconListBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - screenChatType_ = 0L; - imIcon_ = null; - if (imIconBuilder_ != null) { - imIconBuilder_.dispose(); - imIconBuilder_ = null; - } - imIconWithLevel_ = null; - if (imIconWithLevelBuilder_ != null) { - imIconWithLevelBuilder_.dispose(); - imIconWithLevelBuilder_ = null; - } - liveIcon_ = null; - if (liveIconBuilder_ != null) { - liveIconBuilder_.dispose(); - liveIconBuilder_ = null; - } - newImIconWithLevel_ = null; - if (newImIconWithLevelBuilder_ != null) { - newImIconWithLevelBuilder_.dispose(); - newImIconWithLevelBuilder_ = null; - } - newLiveIcon_ = null; - if (newLiveIconBuilder_ != null) { - newLiveIconBuilder_.dispose(); - newLiveIconBuilder_ = null; - } - upgradeNeedConsume_ = 0L; - nextPrivileges_ = ""; - background_ = null; - if (backgroundBuilder_ != null) { - backgroundBuilder_.dispose(); - backgroundBuilder_ = null; - } - backgroundBack_ = null; - if (backgroundBackBuilder_ != null) { - backgroundBackBuilder_.dispose(); - backgroundBackBuilder_ = null; - } - score_ = 0L; - gradeBanner_ = ""; - profileDialogBg_ = null; - if (profileDialogBgBuilder_ != null) { - profileDialogBgBuilder_.dispose(); - profileDialogBgBuilder_ = null; - } - profileDialogBgBack_ = null; - if (profileDialogBgBackBuilder_ != null) { - profileDialogBgBackBuilder_.dispose(); - profileDialogBgBackBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PayGrade_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade result) { - if (gradeIconListBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { - gradeIconList_ = java.util.Collections.unmodifiableList(gradeIconList_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.gradeIconList_ = gradeIconList_; - } else { - result.gradeIconList_ = gradeIconListBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalDiamondCount_ = totalDiamondCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.diamondIcon_ = diamondIconBuilder_ == null - ? diamondIcon_ - : diamondIconBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.icon_ = iconBuilder_ == null - ? icon_ - : iconBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nextName_ = nextName_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.nextIcon_ = nextIconBuilder_ == null - ? nextIcon_ - : nextIconBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.nextDiamond_ = nextDiamond_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.nowDiamond_ = nowDiamond_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.thisGradeMinDiamond_ = thisGradeMinDiamond_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.thisGradeMaxDiamond_ = thisGradeMaxDiamond_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.payDiamondBak_ = payDiamondBak_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.gradeDescribe_ = gradeDescribe_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.screenChatType_ = screenChatType_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.imIcon_ = imIconBuilder_ == null - ? imIcon_ - : imIconBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.imIconWithLevel_ = imIconWithLevelBuilder_ == null - ? imIconWithLevel_ - : imIconWithLevelBuilder_.build(); - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.liveIcon_ = liveIconBuilder_ == null - ? liveIcon_ - : liveIconBuilder_.build(); - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.newImIconWithLevel_ = newImIconWithLevelBuilder_ == null - ? newImIconWithLevel_ - : newImIconWithLevelBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.newLiveIcon_ = newLiveIconBuilder_ == null - ? newLiveIcon_ - : newLiveIconBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.upgradeNeedConsume_ = upgradeNeedConsume_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.nextPrivileges_ = nextPrivileges_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.background_ = backgroundBuilder_ == null - ? background_ - : backgroundBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.backgroundBack_ = backgroundBackBuilder_ == null - ? backgroundBack_ - : backgroundBackBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.score_ = score_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.gradeBanner_ = gradeBanner_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.profileDialogBg_ = profileDialogBgBuilder_ == null - ? profileDialogBg_ - : profileDialogBgBuilder_.build(); - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.profileDialogBgBack_ = profileDialogBgBackBuilder_ == null - ? profileDialogBgBack_ - : profileDialogBgBackBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance()) return this; - if (other.getTotalDiamondCount() != 0L) { - setTotalDiamondCount(other.getTotalDiamondCount()); - } - if (other.hasDiamondIcon()) { - mergeDiamondIcon(other.getDiamondIcon()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasIcon()) { - mergeIcon(other.getIcon()); - } - if (!other.getNextName().isEmpty()) { - nextName_ = other.nextName_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getLevel() != 0L) { - setLevel(other.getLevel()); - } - if (other.hasNextIcon()) { - mergeNextIcon(other.getNextIcon()); - } - if (other.getNextDiamond() != 0L) { - setNextDiamond(other.getNextDiamond()); - } - if (other.getNowDiamond() != 0L) { - setNowDiamond(other.getNowDiamond()); - } - if (other.getThisGradeMinDiamond() != 0L) { - setThisGradeMinDiamond(other.getThisGradeMinDiamond()); - } - if (other.getThisGradeMaxDiamond() != 0L) { - setThisGradeMaxDiamond(other.getThisGradeMaxDiamond()); - } - if (other.getPayDiamondBak() != 0L) { - setPayDiamondBak(other.getPayDiamondBak()); - } - if (!other.getGradeDescribe().isEmpty()) { - gradeDescribe_ = other.gradeDescribe_; - bitField0_ |= 0x00001000; - onChanged(); - } - if (gradeIconListBuilder_ == null) { - if (!other.gradeIconList_.isEmpty()) { - if (gradeIconList_.isEmpty()) { - gradeIconList_ = other.gradeIconList_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureGradeIconListIsMutable(); - gradeIconList_.addAll(other.gradeIconList_); - } - onChanged(); - } - } else { - if (!other.gradeIconList_.isEmpty()) { - if (gradeIconListBuilder_.isEmpty()) { - gradeIconListBuilder_.dispose(); - gradeIconListBuilder_ = null; - gradeIconList_ = other.gradeIconList_; - bitField0_ = (bitField0_ & ~0x00002000); - gradeIconListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGradeIconListFieldBuilder() : null; - } else { - gradeIconListBuilder_.addAllMessages(other.gradeIconList_); - } - } - } - if (other.getScreenChatType() != 0L) { - setScreenChatType(other.getScreenChatType()); - } - if (other.hasImIcon()) { - mergeImIcon(other.getImIcon()); - } - if (other.hasImIconWithLevel()) { - mergeImIconWithLevel(other.getImIconWithLevel()); - } - if (other.hasLiveIcon()) { - mergeLiveIcon(other.getLiveIcon()); - } - if (other.hasNewImIconWithLevel()) { - mergeNewImIconWithLevel(other.getNewImIconWithLevel()); - } - if (other.hasNewLiveIcon()) { - mergeNewLiveIcon(other.getNewLiveIcon()); - } - if (other.getUpgradeNeedConsume() != 0L) { - setUpgradeNeedConsume(other.getUpgradeNeedConsume()); - } - if (!other.getNextPrivileges().isEmpty()) { - nextPrivileges_ = other.nextPrivileges_; - bitField0_ |= 0x00200000; - onChanged(); - } - if (other.hasBackground()) { - mergeBackground(other.getBackground()); - } - if (other.hasBackgroundBack()) { - mergeBackgroundBack(other.getBackgroundBack()); - } - if (other.getScore() != 0L) { - setScore(other.getScore()); - } - if (!other.getGradeBanner().isEmpty()) { - gradeBanner_ = other.gradeBanner_; - bitField0_ |= 0x02000000; - onChanged(); - } - if (other.hasProfileDialogBg()) { - mergeProfileDialogBg(other.getProfileDialogBg()); - } - if (other.hasProfileDialogBgBack()) { - mergeProfileDialogBgBack(other.getProfileDialogBgBack()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - totalDiamondCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getDiamondIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - nextName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - level_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - input.readMessage( - getNextIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - nextDiamond_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - nowDiamond_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - thisGradeMinDiamond_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - thisGradeMaxDiamond_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - payDiamondBak_ = input.readInt64(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 106: { - gradeDescribe_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 114: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.parser(), - extensionRegistry); - if (gradeIconListBuilder_ == null) { - ensureGradeIconListIsMutable(); - gradeIconList_.add(m); - } else { - gradeIconListBuilder_.addMessage(m); - } - break; - } // case 114 - case 120: { - screenChatType_ = input.readInt64(); - bitField0_ |= 0x00004000; - break; - } // case 120 - case 130: { - input.readMessage( - getImIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 138: { - input.readMessage( - getImIconWithLevelFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 138 - case 146: { - input.readMessage( - getLiveIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 146 - case 154: { - input.readMessage( - getNewImIconWithLevelFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 154 - case 162: { - input.readMessage( - getNewLiveIconFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 162 - case 168: { - upgradeNeedConsume_ = input.readInt64(); - bitField0_ |= 0x00100000; - break; - } // case 168 - case 178: { - nextPrivileges_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; - break; - } // case 178 - case 186: { - input.readMessage( - getBackgroundFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 186 - case 194: { - input.readMessage( - getBackgroundBackFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 194 - case 200: { - score_ = input.readInt64(); - bitField0_ |= 0x01000000; - break; - } // case 200 - case 8010: { - gradeBanner_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; - break; - } // case 8010 - case 8018: { - input.readMessage( - getProfileDialogBgFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 8018 - case 8026: { - input.readMessage( - getProfileDialogBgBackFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 8026 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long totalDiamondCount_ ; - /** - * int64 totalDiamondCount = 1; - * @return The totalDiamondCount. - */ - @java.lang.Override - public long getTotalDiamondCount() { - return totalDiamondCount_; - } - /** - * int64 totalDiamondCount = 1; - * @param value The totalDiamondCount to set. - * @return This builder for chaining. - */ - public Builder setTotalDiamondCount(long value) { - - totalDiamondCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 totalDiamondCount = 1; - * @return This builder for chaining. - */ - public Builder clearTotalDiamondCount() { - bitField0_ = (bitField0_ & ~0x00000001); - totalDiamondCount_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image diamondIcon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> diamondIconBuilder_; - /** - * .Image diamondIcon = 2; - * @return Whether the diamondIcon field is set. - */ - public boolean hasDiamondIcon() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .Image diamondIcon = 2; - * @return The diamondIcon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getDiamondIcon() { - if (diamondIconBuilder_ == null) { - return diamondIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : diamondIcon_; - } else { - return diamondIconBuilder_.getMessage(); - } - } - /** - * .Image diamondIcon = 2; - */ - public Builder setDiamondIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (diamondIconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - diamondIcon_ = value; - } else { - diamondIconBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .Image diamondIcon = 2; - */ - public Builder setDiamondIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (diamondIconBuilder_ == null) { - diamondIcon_ = builderForValue.build(); - } else { - diamondIconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .Image diamondIcon = 2; - */ - public Builder mergeDiamondIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (diamondIconBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - diamondIcon_ != null && - diamondIcon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getDiamondIconBuilder().mergeFrom(value); - } else { - diamondIcon_ = value; - } - } else { - diamondIconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .Image diamondIcon = 2; - */ - public Builder clearDiamondIcon() { - bitField0_ = (bitField0_ & ~0x00000002); - diamondIcon_ = null; - if (diamondIconBuilder_ != null) { - diamondIconBuilder_.dispose(); - diamondIconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image diamondIcon = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getDiamondIconBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDiamondIconFieldBuilder().getBuilder(); - } - /** - * .Image diamondIcon = 2; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getDiamondIconOrBuilder() { - if (diamondIconBuilder_ != null) { - return diamondIconBuilder_.getMessageOrBuilder(); - } else { - return diamondIcon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : diamondIcon_; - } - } - /** - * .Image diamondIcon = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getDiamondIconFieldBuilder() { - if (diamondIconBuilder_ == null) { - diamondIconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getDiamondIcon(), - getParentForChildren(), - isClean()); - diamondIcon_ = null; - } - return diamondIconBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * string name = 3; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 3; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 3; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string name = 3; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string name = 3; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image icon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> iconBuilder_; - /** - * .Image icon = 4; - * @return Whether the icon field is set. - */ - public boolean hasIcon() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * .Image icon = 4; - * @return The icon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getIcon() { - if (iconBuilder_ == null) { - return icon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } else { - return iconBuilder_.getMessage(); - } - } - /** - * .Image icon = 4; - */ - public Builder setIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (iconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - icon_ = value; - } else { - iconBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .Image icon = 4; - */ - public Builder setIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (iconBuilder_ == null) { - icon_ = builderForValue.build(); - } else { - iconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .Image icon = 4; - */ - public Builder mergeIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (iconBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - icon_ != null && - icon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getIconBuilder().mergeFrom(value); - } else { - icon_ = value; - } - } else { - iconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .Image icon = 4; - */ - public Builder clearIcon() { - bitField0_ = (bitField0_ & ~0x00000008); - icon_ = null; - if (iconBuilder_ != null) { - iconBuilder_.dispose(); - iconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image icon = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getIconBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getIconFieldBuilder().getBuilder(); - } - /** - * .Image icon = 4; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getIconOrBuilder() { - if (iconBuilder_ != null) { - return iconBuilder_.getMessageOrBuilder(); - } else { - return icon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : icon_; - } - } - /** - * .Image icon = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getIconFieldBuilder() { - if (iconBuilder_ == null) { - iconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getIcon(), - getParentForChildren(), - isClean()); - icon_ = null; - } - return iconBuilder_; - } - - private java.lang.Object nextName_ = ""; - /** - * string nextName = 5; - * @return The nextName. - */ - public java.lang.String getNextName() { - java.lang.Object ref = nextName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string nextName = 5; - * @return The bytes for nextName. - */ - public com.google.protobuf.ByteString - getNextNameBytes() { - java.lang.Object ref = nextName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string nextName = 5; - * @param value The nextName to set. - * @return This builder for chaining. - */ - public Builder setNextName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string nextName = 5; - * @return This builder for chaining. - */ - public Builder clearNextName() { - nextName_ = getDefaultInstance().getNextName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string nextName = 5; - * @param value The bytes for nextName to set. - * @return This builder for chaining. - */ - public Builder setNextNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private long level_ ; - /** - * int64 level = 6; - * @return The level. - */ - @java.lang.Override - public long getLevel() { - return level_; - } - /** - * int64 level = 6; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(long value) { - - level_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * int64 level = 6; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000020); - level_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image nextIcon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> nextIconBuilder_; - /** - * .Image nextIcon = 7; - * @return Whether the nextIcon field is set. - */ - public boolean hasNextIcon() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * .Image nextIcon = 7; - * @return The nextIcon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNextIcon() { - if (nextIconBuilder_ == null) { - return nextIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : nextIcon_; - } else { - return nextIconBuilder_.getMessage(); - } - } - /** - * .Image nextIcon = 7; - */ - public Builder setNextIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (nextIconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nextIcon_ = value; - } else { - nextIconBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .Image nextIcon = 7; - */ - public Builder setNextIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (nextIconBuilder_ == null) { - nextIcon_ = builderForValue.build(); - } else { - nextIconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .Image nextIcon = 7; - */ - public Builder mergeNextIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (nextIconBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - nextIcon_ != null && - nextIcon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getNextIconBuilder().mergeFrom(value); - } else { - nextIcon_ = value; - } - } else { - nextIconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .Image nextIcon = 7; - */ - public Builder clearNextIcon() { - bitField0_ = (bitField0_ & ~0x00000040); - nextIcon_ = null; - if (nextIconBuilder_ != null) { - nextIconBuilder_.dispose(); - nextIconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image nextIcon = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getNextIconBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getNextIconFieldBuilder().getBuilder(); - } - /** - * .Image nextIcon = 7; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNextIconOrBuilder() { - if (nextIconBuilder_ != null) { - return nextIconBuilder_.getMessageOrBuilder(); - } else { - return nextIcon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : nextIcon_; - } - } - /** - * .Image nextIcon = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getNextIconFieldBuilder() { - if (nextIconBuilder_ == null) { - nextIconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getNextIcon(), - getParentForChildren(), - isClean()); - nextIcon_ = null; - } - return nextIconBuilder_; - } - - private long nextDiamond_ ; - /** - * int64 nextDiamond = 8; - * @return The nextDiamond. - */ - @java.lang.Override - public long getNextDiamond() { - return nextDiamond_; - } - /** - * int64 nextDiamond = 8; - * @param value The nextDiamond to set. - * @return This builder for chaining. - */ - public Builder setNextDiamond(long value) { - - nextDiamond_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * int64 nextDiamond = 8; - * @return This builder for chaining. - */ - public Builder clearNextDiamond() { - bitField0_ = (bitField0_ & ~0x00000080); - nextDiamond_ = 0L; - onChanged(); - return this; - } - - private long nowDiamond_ ; - /** - * int64 nowDiamond = 9; - * @return The nowDiamond. - */ - @java.lang.Override - public long getNowDiamond() { - return nowDiamond_; - } - /** - * int64 nowDiamond = 9; - * @param value The nowDiamond to set. - * @return This builder for chaining. - */ - public Builder setNowDiamond(long value) { - - nowDiamond_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * int64 nowDiamond = 9; - * @return This builder for chaining. - */ - public Builder clearNowDiamond() { - bitField0_ = (bitField0_ & ~0x00000100); - nowDiamond_ = 0L; - onChanged(); - return this; - } - - private long thisGradeMinDiamond_ ; - /** - * int64 thisGradeMinDiamond = 10; - * @return The thisGradeMinDiamond. - */ - @java.lang.Override - public long getThisGradeMinDiamond() { - return thisGradeMinDiamond_; - } - /** - * int64 thisGradeMinDiamond = 10; - * @param value The thisGradeMinDiamond to set. - * @return This builder for chaining. - */ - public Builder setThisGradeMinDiamond(long value) { - - thisGradeMinDiamond_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * int64 thisGradeMinDiamond = 10; - * @return This builder for chaining. - */ - public Builder clearThisGradeMinDiamond() { - bitField0_ = (bitField0_ & ~0x00000200); - thisGradeMinDiamond_ = 0L; - onChanged(); - return this; - } - - private long thisGradeMaxDiamond_ ; - /** - * int64 thisGradeMaxDiamond = 11; - * @return The thisGradeMaxDiamond. - */ - @java.lang.Override - public long getThisGradeMaxDiamond() { - return thisGradeMaxDiamond_; - } - /** - * int64 thisGradeMaxDiamond = 11; - * @param value The thisGradeMaxDiamond to set. - * @return This builder for chaining. - */ - public Builder setThisGradeMaxDiamond(long value) { - - thisGradeMaxDiamond_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * int64 thisGradeMaxDiamond = 11; - * @return This builder for chaining. - */ - public Builder clearThisGradeMaxDiamond() { - bitField0_ = (bitField0_ & ~0x00000400); - thisGradeMaxDiamond_ = 0L; - onChanged(); - return this; - } - - private long payDiamondBak_ ; - /** - * int64 payDiamondBak = 12; - * @return The payDiamondBak. - */ - @java.lang.Override - public long getPayDiamondBak() { - return payDiamondBak_; - } - /** - * int64 payDiamondBak = 12; - * @param value The payDiamondBak to set. - * @return This builder for chaining. - */ - public Builder setPayDiamondBak(long value) { - - payDiamondBak_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * int64 payDiamondBak = 12; - * @return This builder for chaining. - */ - public Builder clearPayDiamondBak() { - bitField0_ = (bitField0_ & ~0x00000800); - payDiamondBak_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object gradeDescribe_ = ""; - /** - * string gradeDescribe = 13; - * @return The gradeDescribe. - */ - public java.lang.String getGradeDescribe() { - java.lang.Object ref = gradeDescribe_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gradeDescribe_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string gradeDescribe = 13; - * @return The bytes for gradeDescribe. - */ - public com.google.protobuf.ByteString - getGradeDescribeBytes() { - java.lang.Object ref = gradeDescribe_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gradeDescribe_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string gradeDescribe = 13; - * @param value The gradeDescribe to set. - * @return This builder for chaining. - */ - public Builder setGradeDescribe( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - gradeDescribe_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * string gradeDescribe = 13; - * @return This builder for chaining. - */ - public Builder clearGradeDescribe() { - gradeDescribe_ = getDefaultInstance().getGradeDescribe(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - * string gradeDescribe = 13; - * @param value The bytes for gradeDescribe to set. - * @return This builder for chaining. - */ - public Builder setGradeDescribeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - gradeDescribe_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private java.util.List gradeIconList_ = - java.util.Collections.emptyList(); - private void ensureGradeIconListIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - gradeIconList_ = new java.util.ArrayList(gradeIconList_); - bitField0_ |= 0x00002000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder> gradeIconListBuilder_; - - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public java.util.List getGradeIconListList() { - if (gradeIconListBuilder_ == null) { - return java.util.Collections.unmodifiableList(gradeIconList_); - } else { - return gradeIconListBuilder_.getMessageList(); - } - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public int getGradeIconListCount() { - if (gradeIconListBuilder_ == null) { - return gradeIconList_.size(); - } else { - return gradeIconListBuilder_.getCount(); - } - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon getGradeIconList(int index) { - if (gradeIconListBuilder_ == null) { - return gradeIconList_.get(index); - } else { - return gradeIconListBuilder_.getMessage(index); - } - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder setGradeIconList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon value) { - if (gradeIconListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGradeIconListIsMutable(); - gradeIconList_.set(index, value); - onChanged(); - } else { - gradeIconListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder setGradeIconList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder builderForValue) { - if (gradeIconListBuilder_ == null) { - ensureGradeIconListIsMutable(); - gradeIconList_.set(index, builderForValue.build()); - onChanged(); - } else { - gradeIconListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder addGradeIconList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon value) { - if (gradeIconListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGradeIconListIsMutable(); - gradeIconList_.add(value); - onChanged(); - } else { - gradeIconListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder addGradeIconList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon value) { - if (gradeIconListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGradeIconListIsMutable(); - gradeIconList_.add(index, value); - onChanged(); - } else { - gradeIconListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder addGradeIconList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder builderForValue) { - if (gradeIconListBuilder_ == null) { - ensureGradeIconListIsMutable(); - gradeIconList_.add(builderForValue.build()); - onChanged(); - } else { - gradeIconListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder addGradeIconList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder builderForValue) { - if (gradeIconListBuilder_ == null) { - ensureGradeIconListIsMutable(); - gradeIconList_.add(index, builderForValue.build()); - onChanged(); - } else { - gradeIconListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder addAllGradeIconList( - java.lang.Iterable values) { - if (gradeIconListBuilder_ == null) { - ensureGradeIconListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, gradeIconList_); - onChanged(); - } else { - gradeIconListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder clearGradeIconList() { - if (gradeIconListBuilder_ == null) { - gradeIconList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - } else { - gradeIconListBuilder_.clear(); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public Builder removeGradeIconList(int index) { - if (gradeIconListBuilder_ == null) { - ensureGradeIconListIsMutable(); - gradeIconList_.remove(index); - onChanged(); - } else { - gradeIconListBuilder_.remove(index); - } - return this; - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder getGradeIconListBuilder( - int index) { - return getGradeIconListFieldBuilder().getBuilder(index); - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder getGradeIconListOrBuilder( - int index) { - if (gradeIconListBuilder_ == null) { - return gradeIconList_.get(index); } else { - return gradeIconListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public java.util.List - getGradeIconListOrBuilderList() { - if (gradeIconListBuilder_ != null) { - return gradeIconListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(gradeIconList_); - } - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder addGradeIconListBuilder() { - return getGradeIconListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.getDefaultInstance()); - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder addGradeIconListBuilder( - int index) { - return getGradeIconListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.getDefaultInstance()); - } - /** - * repeated .User.PayGrade.GradeIcon gradeIconList = 14; - */ - public java.util.List - getGradeIconListBuilderList() { - return getGradeIconListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder> - getGradeIconListFieldBuilder() { - if (gradeIconListBuilder_ == null) { - gradeIconListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIcon.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.GradeIconOrBuilder>( - gradeIconList_, - ((bitField0_ & 0x00002000) != 0), - getParentForChildren(), - isClean()); - gradeIconList_ = null; - } - return gradeIconListBuilder_; - } - - private long screenChatType_ ; - /** - * int64 screenChatType = 15; - * @return The screenChatType. - */ - @java.lang.Override - public long getScreenChatType() { - return screenChatType_; - } - /** - * int64 screenChatType = 15; - * @param value The screenChatType to set. - * @return This builder for chaining. - */ - public Builder setScreenChatType(long value) { - - screenChatType_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * int64 screenChatType = 15; - * @return This builder for chaining. - */ - public Builder clearScreenChatType() { - bitField0_ = (bitField0_ & ~0x00004000); - screenChatType_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image imIcon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> imIconBuilder_; - /** - * .Image imIcon = 16; - * @return Whether the imIcon field is set. - */ - public boolean hasImIcon() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * .Image imIcon = 16; - * @return The imIcon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImIcon() { - if (imIconBuilder_ == null) { - return imIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIcon_; - } else { - return imIconBuilder_.getMessage(); - } - } - /** - * .Image imIcon = 16; - */ - public Builder setImIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imIconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - imIcon_ = value; - } else { - imIconBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .Image imIcon = 16; - */ - public Builder setImIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (imIconBuilder_ == null) { - imIcon_ = builderForValue.build(); - } else { - imIconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .Image imIcon = 16; - */ - public Builder mergeImIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imIconBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - imIcon_ != null && - imIcon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getImIconBuilder().mergeFrom(value); - } else { - imIcon_ = value; - } - } else { - imIconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .Image imIcon = 16; - */ - public Builder clearImIcon() { - bitField0_ = (bitField0_ & ~0x00008000); - imIcon_ = null; - if (imIconBuilder_ != null) { - imIconBuilder_.dispose(); - imIconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image imIcon = 16; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getImIconBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getImIconFieldBuilder().getBuilder(); - } - /** - * .Image imIcon = 16; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImIconOrBuilder() { - if (imIconBuilder_ != null) { - return imIconBuilder_.getMessageOrBuilder(); - } else { - return imIcon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIcon_; - } - } - /** - * .Image imIcon = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getImIconFieldBuilder() { - if (imIconBuilder_ == null) { - imIconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getImIcon(), - getParentForChildren(), - isClean()); - imIcon_ = null; - } - return imIconBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image imIconWithLevel_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> imIconWithLevelBuilder_; - /** - * .Image imIconWithLevel = 17; - * @return Whether the imIconWithLevel field is set. - */ - public boolean hasImIconWithLevel() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * .Image imIconWithLevel = 17; - * @return The imIconWithLevel. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getImIconWithLevel() { - if (imIconWithLevelBuilder_ == null) { - return imIconWithLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIconWithLevel_; - } else { - return imIconWithLevelBuilder_.getMessage(); - } - } - /** - * .Image imIconWithLevel = 17; - */ - public Builder setImIconWithLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imIconWithLevelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - imIconWithLevel_ = value; - } else { - imIconWithLevelBuilder_.setMessage(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * .Image imIconWithLevel = 17; - */ - public Builder setImIconWithLevel( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (imIconWithLevelBuilder_ == null) { - imIconWithLevel_ = builderForValue.build(); - } else { - imIconWithLevelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * .Image imIconWithLevel = 17; - */ - public Builder mergeImIconWithLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (imIconWithLevelBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - imIconWithLevel_ != null && - imIconWithLevel_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getImIconWithLevelBuilder().mergeFrom(value); - } else { - imIconWithLevel_ = value; - } - } else { - imIconWithLevelBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * .Image imIconWithLevel = 17; - */ - public Builder clearImIconWithLevel() { - bitField0_ = (bitField0_ & ~0x00010000); - imIconWithLevel_ = null; - if (imIconWithLevelBuilder_ != null) { - imIconWithLevelBuilder_.dispose(); - imIconWithLevelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image imIconWithLevel = 17; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getImIconWithLevelBuilder() { - bitField0_ |= 0x00010000; - onChanged(); - return getImIconWithLevelFieldBuilder().getBuilder(); - } - /** - * .Image imIconWithLevel = 17; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getImIconWithLevelOrBuilder() { - if (imIconWithLevelBuilder_ != null) { - return imIconWithLevelBuilder_.getMessageOrBuilder(); - } else { - return imIconWithLevel_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : imIconWithLevel_; - } - } - /** - * .Image imIconWithLevel = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getImIconWithLevelFieldBuilder() { - if (imIconWithLevelBuilder_ == null) { - imIconWithLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getImIconWithLevel(), - getParentForChildren(), - isClean()); - imIconWithLevel_ = null; - } - return imIconWithLevelBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image liveIcon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> liveIconBuilder_; - /** - * .Image liveIcon = 18; - * @return Whether the liveIcon field is set. - */ - public boolean hasLiveIcon() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * .Image liveIcon = 18; - * @return The liveIcon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getLiveIcon() { - if (liveIconBuilder_ == null) { - return liveIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : liveIcon_; - } else { - return liveIconBuilder_.getMessage(); - } - } - /** - * .Image liveIcon = 18; - */ - public Builder setLiveIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (liveIconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - liveIcon_ = value; - } else { - liveIconBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .Image liveIcon = 18; - */ - public Builder setLiveIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (liveIconBuilder_ == null) { - liveIcon_ = builderForValue.build(); - } else { - liveIconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .Image liveIcon = 18; - */ - public Builder mergeLiveIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (liveIconBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) && - liveIcon_ != null && - liveIcon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getLiveIconBuilder().mergeFrom(value); - } else { - liveIcon_ = value; - } - } else { - liveIconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .Image liveIcon = 18; - */ - public Builder clearLiveIcon() { - bitField0_ = (bitField0_ & ~0x00020000); - liveIcon_ = null; - if (liveIconBuilder_ != null) { - liveIconBuilder_.dispose(); - liveIconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image liveIcon = 18; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getLiveIconBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getLiveIconFieldBuilder().getBuilder(); - } - /** - * .Image liveIcon = 18; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getLiveIconOrBuilder() { - if (liveIconBuilder_ != null) { - return liveIconBuilder_.getMessageOrBuilder(); - } else { - return liveIcon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : liveIcon_; - } - } - /** - * .Image liveIcon = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getLiveIconFieldBuilder() { - if (liveIconBuilder_ == null) { - liveIconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getLiveIcon(), - getParentForChildren(), - isClean()); - liveIcon_ = null; - } - return liveIconBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image newImIconWithLevel_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> newImIconWithLevelBuilder_; - /** - * .Image newImIconWithLevel = 19; - * @return Whether the newImIconWithLevel field is set. - */ - public boolean hasNewImIconWithLevel() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * .Image newImIconWithLevel = 19; - * @return The newImIconWithLevel. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewImIconWithLevel() { - if (newImIconWithLevelBuilder_ == null) { - return newImIconWithLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newImIconWithLevel_; - } else { - return newImIconWithLevelBuilder_.getMessage(); - } - } - /** - * .Image newImIconWithLevel = 19; - */ - public Builder setNewImIconWithLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newImIconWithLevelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - newImIconWithLevel_ = value; - } else { - newImIconWithLevelBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .Image newImIconWithLevel = 19; - */ - public Builder setNewImIconWithLevel( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (newImIconWithLevelBuilder_ == null) { - newImIconWithLevel_ = builderForValue.build(); - } else { - newImIconWithLevelBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .Image newImIconWithLevel = 19; - */ - public Builder mergeNewImIconWithLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newImIconWithLevelBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) && - newImIconWithLevel_ != null && - newImIconWithLevel_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getNewImIconWithLevelBuilder().mergeFrom(value); - } else { - newImIconWithLevel_ = value; - } - } else { - newImIconWithLevelBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .Image newImIconWithLevel = 19; - */ - public Builder clearNewImIconWithLevel() { - bitField0_ = (bitField0_ & ~0x00040000); - newImIconWithLevel_ = null; - if (newImIconWithLevelBuilder_ != null) { - newImIconWithLevelBuilder_.dispose(); - newImIconWithLevelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image newImIconWithLevel = 19; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getNewImIconWithLevelBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getNewImIconWithLevelFieldBuilder().getBuilder(); - } - /** - * .Image newImIconWithLevel = 19; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewImIconWithLevelOrBuilder() { - if (newImIconWithLevelBuilder_ != null) { - return newImIconWithLevelBuilder_.getMessageOrBuilder(); - } else { - return newImIconWithLevel_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newImIconWithLevel_; - } - } - /** - * .Image newImIconWithLevel = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getNewImIconWithLevelFieldBuilder() { - if (newImIconWithLevelBuilder_ == null) { - newImIconWithLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getNewImIconWithLevel(), - getParentForChildren(), - isClean()); - newImIconWithLevel_ = null; - } - return newImIconWithLevelBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image newLiveIcon_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> newLiveIconBuilder_; - /** - * .Image newLiveIcon = 20; - * @return Whether the newLiveIcon field is set. - */ - public boolean hasNewLiveIcon() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - * .Image newLiveIcon = 20; - * @return The newLiveIcon. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewLiveIcon() { - if (newLiveIconBuilder_ == null) { - return newLiveIcon_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newLiveIcon_; - } else { - return newLiveIconBuilder_.getMessage(); - } - } - /** - * .Image newLiveIcon = 20; - */ - public Builder setNewLiveIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newLiveIconBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - newLiveIcon_ = value; - } else { - newLiveIconBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image newLiveIcon = 20; - */ - public Builder setNewLiveIcon( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (newLiveIconBuilder_ == null) { - newLiveIcon_ = builderForValue.build(); - } else { - newLiveIconBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image newLiveIcon = 20; - */ - public Builder mergeNewLiveIcon(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newLiveIconBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) && - newLiveIcon_ != null && - newLiveIcon_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getNewLiveIconBuilder().mergeFrom(value); - } else { - newLiveIcon_ = value; - } - } else { - newLiveIconBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image newLiveIcon = 20; - */ - public Builder clearNewLiveIcon() { - bitField0_ = (bitField0_ & ~0x00080000); - newLiveIcon_ = null; - if (newLiveIconBuilder_ != null) { - newLiveIconBuilder_.dispose(); - newLiveIconBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image newLiveIcon = 20; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getNewLiveIconBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getNewLiveIconFieldBuilder().getBuilder(); - } - /** - * .Image newLiveIcon = 20; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewLiveIconOrBuilder() { - if (newLiveIconBuilder_ != null) { - return newLiveIconBuilder_.getMessageOrBuilder(); - } else { - return newLiveIcon_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : newLiveIcon_; - } - } - /** - * .Image newLiveIcon = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getNewLiveIconFieldBuilder() { - if (newLiveIconBuilder_ == null) { - newLiveIconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getNewLiveIcon(), - getParentForChildren(), - isClean()); - newLiveIcon_ = null; - } - return newLiveIconBuilder_; - } - - private long upgradeNeedConsume_ ; - /** - * int64 upgradeNeedConsume = 21; - * @return The upgradeNeedConsume. - */ - @java.lang.Override - public long getUpgradeNeedConsume() { - return upgradeNeedConsume_; - } - /** - * int64 upgradeNeedConsume = 21; - * @param value The upgradeNeedConsume to set. - * @return This builder for chaining. - */ - public Builder setUpgradeNeedConsume(long value) { - - upgradeNeedConsume_ = value; - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * int64 upgradeNeedConsume = 21; - * @return This builder for chaining. - */ - public Builder clearUpgradeNeedConsume() { - bitField0_ = (bitField0_ & ~0x00100000); - upgradeNeedConsume_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object nextPrivileges_ = ""; - /** - * string nextPrivileges = 22; - * @return The nextPrivileges. - */ - public java.lang.String getNextPrivileges() { - java.lang.Object ref = nextPrivileges_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPrivileges_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string nextPrivileges = 22; - * @return The bytes for nextPrivileges. - */ - public com.google.protobuf.ByteString - getNextPrivilegesBytes() { - java.lang.Object ref = nextPrivileges_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPrivileges_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string nextPrivileges = 22; - * @param value The nextPrivileges to set. - * @return This builder for chaining. - */ - public Builder setNextPrivileges( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPrivileges_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * string nextPrivileges = 22; - * @return This builder for chaining. - */ - public Builder clearNextPrivileges() { - nextPrivileges_ = getDefaultInstance().getNextPrivileges(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - return this; - } - /** - * string nextPrivileges = 22; - * @param value The bytes for nextPrivileges to set. - * @return This builder for chaining. - */ - public Builder setNextPrivilegesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPrivileges_ = value; - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image background_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundBuilder_; - /** - * .Image background = 23; - * @return Whether the background field is set. - */ - public boolean hasBackground() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * .Image background = 23; - * @return The background. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackground() { - if (backgroundBuilder_ == null) { - return background_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } else { - return backgroundBuilder_.getMessage(); - } - } - /** - * .Image background = 23; - */ - public Builder setBackground(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - background_ = value; - } else { - backgroundBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * .Image background = 23; - */ - public Builder setBackground( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundBuilder_ == null) { - background_ = builderForValue.build(); - } else { - backgroundBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * .Image background = 23; - */ - public Builder mergeBackground(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) && - background_ != null && - background_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundBuilder().mergeFrom(value); - } else { - background_ = value; - } - } else { - backgroundBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * .Image background = 23; - */ - public Builder clearBackground() { - bitField0_ = (bitField0_ & ~0x00400000); - background_ = null; - if (backgroundBuilder_ != null) { - backgroundBuilder_.dispose(); - backgroundBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image background = 23; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getBackgroundFieldBuilder().getBuilder(); - } - /** - * .Image background = 23; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundOrBuilder() { - if (backgroundBuilder_ != null) { - return backgroundBuilder_.getMessageOrBuilder(); - } else { - return background_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : background_; - } - } - /** - * .Image background = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundFieldBuilder() { - if (backgroundBuilder_ == null) { - backgroundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackground(), - getParentForChildren(), - isClean()); - background_ = null; - } - return backgroundBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image backgroundBack_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> backgroundBackBuilder_; - /** - * .Image backgroundBack = 24; - * @return Whether the backgroundBack field is set. - */ - public boolean hasBackgroundBack() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * .Image backgroundBack = 24; - * @return The backgroundBack. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBackgroundBack() { - if (backgroundBackBuilder_ == null) { - return backgroundBack_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundBack_; - } else { - return backgroundBackBuilder_.getMessage(); - } - } - /** - * .Image backgroundBack = 24; - */ - public Builder setBackgroundBack(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundBackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - backgroundBack_ = value; - } else { - backgroundBackBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .Image backgroundBack = 24; - */ - public Builder setBackgroundBack( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (backgroundBackBuilder_ == null) { - backgroundBack_ = builderForValue.build(); - } else { - backgroundBackBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .Image backgroundBack = 24; - */ - public Builder mergeBackgroundBack(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (backgroundBackBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) && - backgroundBack_ != null && - backgroundBack_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBackgroundBackBuilder().mergeFrom(value); - } else { - backgroundBack_ = value; - } - } else { - backgroundBackBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .Image backgroundBack = 24; - */ - public Builder clearBackgroundBack() { - bitField0_ = (bitField0_ & ~0x00800000); - backgroundBack_ = null; - if (backgroundBackBuilder_ != null) { - backgroundBackBuilder_.dispose(); - backgroundBackBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image backgroundBack = 24; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBackgroundBackBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getBackgroundBackFieldBuilder().getBuilder(); - } - /** - * .Image backgroundBack = 24; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBackgroundBackOrBuilder() { - if (backgroundBackBuilder_ != null) { - return backgroundBackBuilder_.getMessageOrBuilder(); - } else { - return backgroundBack_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : backgroundBack_; - } - } - /** - * .Image backgroundBack = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBackgroundBackFieldBuilder() { - if (backgroundBackBuilder_ == null) { - backgroundBackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBackgroundBack(), - getParentForChildren(), - isClean()); - backgroundBack_ = null; - } - return backgroundBackBuilder_; - } - - private long score_ ; - /** - * int64 score = 25; - * @return The score. - */ - @java.lang.Override - public long getScore() { - return score_; - } - /** - * int64 score = 25; - * @param value The score to set. - * @return This builder for chaining. - */ - public Builder setScore(long value) { - - score_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * int64 score = 25; - * @return This builder for chaining. - */ - public Builder clearScore() { - bitField0_ = (bitField0_ & ~0x01000000); - score_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object gradeBanner_ = ""; - /** - *
-         * GradeBuffInfo buffInfo = 26;
-         * 
- * - * string gradeBanner = 1001; - * @return The gradeBanner. - */ - public java.lang.String getGradeBanner() { - java.lang.Object ref = gradeBanner_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gradeBanner_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * GradeBuffInfo buffInfo = 26;
-         * 
- * - * string gradeBanner = 1001; - * @return The bytes for gradeBanner. - */ - public com.google.protobuf.ByteString - getGradeBannerBytes() { - java.lang.Object ref = gradeBanner_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gradeBanner_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * GradeBuffInfo buffInfo = 26;
-         * 
- * - * string gradeBanner = 1001; - * @param value The gradeBanner to set. - * @return This builder for chaining. - */ - public Builder setGradeBanner( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - gradeBanner_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - *
-         * GradeBuffInfo buffInfo = 26;
-         * 
- * - * string gradeBanner = 1001; - * @return This builder for chaining. - */ - public Builder clearGradeBanner() { - gradeBanner_ = getDefaultInstance().getGradeBanner(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); - return this; - } - /** - *
-         * GradeBuffInfo buffInfo = 26;
-         * 
- * - * string gradeBanner = 1001; - * @param value The bytes for gradeBanner to set. - * @return This builder for chaining. - */ - public Builder setGradeBannerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - gradeBanner_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image profileDialogBg_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> profileDialogBgBuilder_; - /** - * .Image profileDialogBg = 1002; - * @return Whether the profileDialogBg field is set. - */ - public boolean hasProfileDialogBg() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * .Image profileDialogBg = 1002; - * @return The profileDialogBg. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getProfileDialogBg() { - if (profileDialogBgBuilder_ == null) { - return profileDialogBg_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBg_; - } else { - return profileDialogBgBuilder_.getMessage(); - } - } - /** - * .Image profileDialogBg = 1002; - */ - public Builder setProfileDialogBg(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (profileDialogBgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profileDialogBg_ = value; - } else { - profileDialogBgBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .Image profileDialogBg = 1002; - */ - public Builder setProfileDialogBg( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (profileDialogBgBuilder_ == null) { - profileDialogBg_ = builderForValue.build(); - } else { - profileDialogBgBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .Image profileDialogBg = 1002; - */ - public Builder mergeProfileDialogBg(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (profileDialogBgBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) && - profileDialogBg_ != null && - profileDialogBg_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getProfileDialogBgBuilder().mergeFrom(value); - } else { - profileDialogBg_ = value; - } - } else { - profileDialogBgBuilder_.mergeFrom(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .Image profileDialogBg = 1002; - */ - public Builder clearProfileDialogBg() { - bitField0_ = (bitField0_ & ~0x04000000); - profileDialogBg_ = null; - if (profileDialogBgBuilder_ != null) { - profileDialogBgBuilder_.dispose(); - profileDialogBgBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image profileDialogBg = 1002; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getProfileDialogBgBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return getProfileDialogBgFieldBuilder().getBuilder(); - } - /** - * .Image profileDialogBg = 1002; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getProfileDialogBgOrBuilder() { - if (profileDialogBgBuilder_ != null) { - return profileDialogBgBuilder_.getMessageOrBuilder(); - } else { - return profileDialogBg_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBg_; - } - } - /** - * .Image profileDialogBg = 1002; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getProfileDialogBgFieldBuilder() { - if (profileDialogBgBuilder_ == null) { - profileDialogBgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getProfileDialogBg(), - getParentForChildren(), - isClean()); - profileDialogBg_ = null; - } - return profileDialogBgBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image profileDialogBgBack_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> profileDialogBgBackBuilder_; - /** - * .Image profileDialogBgBack = 1003; - * @return Whether the profileDialogBgBack field is set. - */ - public boolean hasProfileDialogBgBack() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * .Image profileDialogBgBack = 1003; - * @return The profileDialogBgBack. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getProfileDialogBgBack() { - if (profileDialogBgBackBuilder_ == null) { - return profileDialogBgBack_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBgBack_; - } else { - return profileDialogBgBackBuilder_.getMessage(); - } - } - /** - * .Image profileDialogBgBack = 1003; - */ - public Builder setProfileDialogBgBack(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (profileDialogBgBackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profileDialogBgBack_ = value; - } else { - profileDialogBgBackBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * .Image profileDialogBgBack = 1003; - */ - public Builder setProfileDialogBgBack( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (profileDialogBgBackBuilder_ == null) { - profileDialogBgBack_ = builderForValue.build(); - } else { - profileDialogBgBackBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * .Image profileDialogBgBack = 1003; - */ - public Builder mergeProfileDialogBgBack(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (profileDialogBgBackBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) && - profileDialogBgBack_ != null && - profileDialogBgBack_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getProfileDialogBgBackBuilder().mergeFrom(value); - } else { - profileDialogBgBack_ = value; - } - } else { - profileDialogBgBackBuilder_.mergeFrom(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * .Image profileDialogBgBack = 1003; - */ - public Builder clearProfileDialogBgBack() { - bitField0_ = (bitField0_ & ~0x08000000); - profileDialogBgBack_ = null; - if (profileDialogBgBackBuilder_ != null) { - profileDialogBgBackBuilder_.dispose(); - profileDialogBgBackBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image profileDialogBgBack = 1003; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getProfileDialogBgBackBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getProfileDialogBgBackFieldBuilder().getBuilder(); - } - /** - * .Image profileDialogBgBack = 1003; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getProfileDialogBgBackOrBuilder() { - if (profileDialogBgBackBuilder_ != null) { - return profileDialogBgBackBuilder_.getMessageOrBuilder(); - } else { - return profileDialogBgBack_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : profileDialogBgBack_; - } - } - /** - * .Image profileDialogBgBack = 1003; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getProfileDialogBgBackFieldBuilder() { - if (profileDialogBgBackBuilder_ == null) { - profileDialogBgBackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getProfileDialogBgBack(), - getParentForChildren(), - isClean()); - profileDialogBgBack_ = null; - } - return profileDialogBgBackBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.PayGrade) - } - - // @@protoc_insertion_point(class_scope:User.PayGrade) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PayGrade parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PoiInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.PoiInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.PoiInfo} - */ - public static final class PoiInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.PoiInfo) - PoiInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PoiInfo.newBuilder() to construct. - private PoiInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PoiInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PoiInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PoiInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PoiInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.PoiInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.PoiInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PoiInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PoiInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_PoiInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.PoiInfo) - } - - // @@protoc_insertion_point(class_scope:User.PoiInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PoiInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProfileStyleParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.ProfileStyleParams) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.ProfileStyleParams} - */ - public static final class ProfileStyleParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.ProfileStyleParams) - ProfileStyleParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProfileStyleParams.newBuilder() to construct. - private ProfileStyleParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProfileStyleParams() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProfileStyleParams(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ProfileStyleParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ProfileStyleParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.ProfileStyleParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.ProfileStyleParams) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ProfileStyleParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ProfileStyleParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_ProfileStyleParams_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.ProfileStyleParams) - } - - // @@protoc_insertion_point(class_scope:User.ProfileStyleParams) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProfileStyleParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SubscribeOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.Subscribe) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.Subscribe} - */ - public static final class Subscribe extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.Subscribe) - SubscribeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Subscribe.newBuilder() to construct. - private Subscribe(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Subscribe() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Subscribe(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Subscribe_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Subscribe_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.Subscribe} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.Subscribe) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Subscribe_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Subscribe_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_Subscribe_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.Subscribe) - } - - // @@protoc_insertion_point(class_scope:User.Subscribe) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subscribe parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserAttrOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.UserAttr) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.UserAttr} - */ - public static final class UserAttr extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.UserAttr) - UserAttrOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserAttr.newBuilder() to construct. - private UserAttr(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserAttr() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserAttr(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserAttr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserAttr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.UserAttr} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.UserAttr) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserAttr_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserAttr_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserAttr_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.UserAttr) - } - - // @@protoc_insertion_point(class_scope:User.UserAttr) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserAttr parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserDressInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.UserDressInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.UserDressInfo} - */ - public static final class UserDressInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.UserDressInfo) - UserDressInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserDressInfo.newBuilder() to construct. - private UserDressInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserDressInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserDressInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserDressInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserDressInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.UserDressInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.UserDressInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserDressInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserDressInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserDressInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.UserDressInfo) - } - - // @@protoc_insertion_point(class_scope:User.UserDressInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserDressInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserVIPInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.UserVIPInfo) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.UserVIPInfo} - */ - public static final class UserVIPInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.UserVIPInfo) - UserVIPInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserVIPInfo.newBuilder() to construct. - private UserVIPInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserVIPInfo() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserVIPInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserVIPInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserVIPInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.UserVIPInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.UserVIPInfo) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserVIPInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserVIPInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserVIPInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.UserVIPInfo) - } - - // @@protoc_insertion_point(class_scope:User.UserVIPInfo) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserVIPInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.UserStats) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.UserStats} - */ - public static final class UserStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.UserStats) - UserStatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserStats.newBuilder() to construct. - private UserStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserStats(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.UserStats} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.UserStats) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_UserStats_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.UserStats) - } - - // @@protoc_insertion_point(class_scope:User.UserStats) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface XiguaParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:User.XiguaParams) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code User.XiguaParams} - */ - public static final class XiguaParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:User.XiguaParams) - XiguaParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use XiguaParams.newBuilder() to construct. - private XiguaParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private XiguaParams() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new XiguaParams(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_XiguaParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_XiguaParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User.XiguaParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User.XiguaParams) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_XiguaParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_XiguaParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_XiguaParams_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User.XiguaParams) - } - - // @@protoc_insertion_point(class_scope:User.XiguaParams) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public XiguaParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int ID_FIELD_NUMBER = 1; - private long id_ = 0L; - /** - * uint64 id = 1; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - - public static final int SHORTID_FIELD_NUMBER = 2; - private long shortId_ = 0L; - /** - * uint64 shortId = 2; - * @return The shortId. - */ - @java.lang.Override - public long getShortId() { - return shortId_; - } - - public static final int NICKNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object nickname_ = ""; - /** - * string nickname = 3; - * @return The nickname. - */ - @java.lang.Override - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } - } - /** - * string nickname = 3; - * @return The bytes for nickname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GENDER_FIELD_NUMBER = 4; - private int gender_ = 0; - /** - * uint32 gender = 4; - * @return The gender. - */ - @java.lang.Override - public int getGender() { - return gender_; - } - - public static final int SIGNATURE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object signature_ = ""; - /** - * string signature = 5; - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - /** - * string signature = 5; - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEVEL_FIELD_NUMBER = 6; - private int level_ = 0; - /** - * uint32 level = 6; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - - public static final int BIRTHDAY_FIELD_NUMBER = 7; - private long birthday_ = 0L; - /** - * uint64 birthday = 7; - * @return The birthday. - */ - @java.lang.Override - public long getBirthday() { - return birthday_; - } - - public static final int TELEPHONE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object telephone_ = ""; - /** - * string telephone = 8; - * @return The telephone. - */ - @java.lang.Override - public java.lang.String getTelephone() { - java.lang.Object ref = telephone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - telephone_ = s; - return s; - } - } - /** - * string telephone = 8; - * @return The bytes for telephone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTelephoneBytes() { - java.lang.Object ref = telephone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - telephone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVATARTHUMB_FIELD_NUMBER = 9; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarThumb_; - /** - * .Image avatarThumb = 9; - * @return Whether the avatarThumb field is set. - */ - @java.lang.Override - public boolean hasAvatarThumb() { - return avatarThumb_ != null; - } - /** - * .Image avatarThumb = 9; - * @return The avatarThumb. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarThumb() { - return avatarThumb_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarThumb_; - } - /** - * .Image avatarThumb = 9; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarThumbOrBuilder() { - return avatarThumb_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarThumb_; - } - - public static final int AVATARMEDIUM_FIELD_NUMBER = 10; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarMedium_; - /** - * .Image avatarMedium = 10; - * @return Whether the avatarMedium field is set. - */ - @java.lang.Override - public boolean hasAvatarMedium() { - return avatarMedium_ != null; - } - /** - * .Image avatarMedium = 10; - * @return The avatarMedium. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarMedium() { - return avatarMedium_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarMedium_; - } - /** - * .Image avatarMedium = 10; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarMediumOrBuilder() { - return avatarMedium_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarMedium_; - } - - public static final int AVATARLARGE_FIELD_NUMBER = 11; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarLarge_; - /** - * .Image avatarLarge = 11; - * @return Whether the avatarLarge field is set. - */ - @java.lang.Override - public boolean hasAvatarLarge() { - return avatarLarge_ != null; - } - /** - * .Image avatarLarge = 11; - * @return The avatarLarge. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarLarge() { - return avatarLarge_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarLarge_; - } - /** - * .Image avatarLarge = 11; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarLargeOrBuilder() { - return avatarLarge_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarLarge_; - } - - public static final int VERIFIED_FIELD_NUMBER = 12; - private boolean verified_ = false; - /** - * bool verified = 12; - * @return The verified. - */ - @java.lang.Override - public boolean getVerified() { - return verified_; - } - - public static final int EXPERIENCE_FIELD_NUMBER = 13; - private int experience_ = 0; - /** - * int32 experience = 13; - * @return The experience. - */ - @java.lang.Override - public int getExperience() { - return experience_; - } - - public static final int CITY_FIELD_NUMBER = 14; - @SuppressWarnings("serial") - private volatile java.lang.Object city_ = ""; - /** - * string city = 14; - * @return The city. - */ - @java.lang.Override - public java.lang.String getCity() { - java.lang.Object ref = city_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - city_ = s; - return s; - } - } - /** - * string city = 14; - * @return The bytes for city. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCityBytes() { - java.lang.Object ref = city_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - city_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 15; - private int status_ = 0; - /** - * int32 status = 15; - * @return The status. - */ - @java.lang.Override - public int getStatus() { - return status_; - } - - public static final int CREATETIME_FIELD_NUMBER = 16; - private long createTime_ = 0L; - /** - * int64 createTime = 16; - * @return The createTime. - */ - @java.lang.Override - public long getCreateTime() { - return createTime_; - } - - public static final int MODIFYTIME_FIELD_NUMBER = 17; - private long modifyTime_ = 0L; - /** - * int64 modifyTime = 17; - * @return The modifyTime. - */ - @java.lang.Override - public long getModifyTime() { - return modifyTime_; - } - - public static final int SECRET_FIELD_NUMBER = 18; - private int secret_ = 0; - /** - * int32 secret = 18; - * @return The secret. - */ - @java.lang.Override - public int getSecret() { - return secret_; - } - - public static final int SHAREQRCODEURI_FIELD_NUMBER = 19; - @SuppressWarnings("serial") - private volatile java.lang.Object shareQrcodeUri_ = ""; - /** - * string shareQrcodeUri = 19; - * @return The shareQrcodeUri. - */ - @java.lang.Override - public java.lang.String getShareQrcodeUri() { - java.lang.Object ref = shareQrcodeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shareQrcodeUri_ = s; - return s; - } - } - /** - * string shareQrcodeUri = 19; - * @return The bytes for shareQrcodeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getShareQrcodeUriBytes() { - java.lang.Object ref = shareQrcodeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shareQrcodeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INCOMESHAREPERCENT_FIELD_NUMBER = 20; - private int incomeSharePercent_ = 0; - /** - * int32 incomeSharePercent = 20; - * @return The incomeSharePercent. - */ - @java.lang.Override - public int getIncomeSharePercent() { - return incomeSharePercent_; - } - - public static final int BADGEIMAGELISTLIST_FIELD_NUMBER = 21; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image badgeImageListList_; - /** - * .Image badgeImageListList = 21; - * @return Whether the badgeImageListList field is set. - */ - @java.lang.Override - public boolean hasBadgeImageListList() { - return badgeImageListList_ != null; - } - /** - * .Image badgeImageListList = 21; - * @return The badgeImageListList. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBadgeImageListList() { - return badgeImageListList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListList_; - } - /** - * .Image badgeImageListList = 21; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBadgeImageListListOrBuilder() { - return badgeImageListList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListList_; - } - - public static final int FOLLOWINFO_FIELD_NUMBER = 22; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo followInfo_; - /** - * .User.FollowInfo followInfo = 22; - * @return Whether the followInfo field is set. - */ - @java.lang.Override - public boolean hasFollowInfo() { - return followInfo_ != null; - } - /** - * .User.FollowInfo followInfo = 22; - * @return The followInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo getFollowInfo() { - return followInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance() : followInfo_; - } - /** - * .User.FollowInfo followInfo = 22; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder getFollowInfoOrBuilder() { - return followInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance() : followInfo_; - } - - public static final int PAYGRADE_FIELD_NUMBER = 23; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade payGrade_; - /** - * .User.PayGrade payGrade = 23; - * @return Whether the payGrade field is set. - */ - @java.lang.Override - public boolean hasPayGrade() { - return payGrade_ != null; - } - /** - * .User.PayGrade payGrade = 23; - * @return The payGrade. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade getPayGrade() { - return payGrade_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance() : payGrade_; - } - /** - * .User.PayGrade payGrade = 23; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder getPayGradeOrBuilder() { - return payGrade_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance() : payGrade_; - } - - public static final int FANSCLUB_FIELD_NUMBER = 24; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub fansClub_; - /** - * .User.FansClub fansClub = 24; - * @return Whether the fansClub field is set. - */ - @java.lang.Override - public boolean hasFansClub() { - return fansClub_ != null; - } - /** - * .User.FansClub fansClub = 24; - * @return The fansClub. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub getFansClub() { - return fansClub_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance() : fansClub_; - } - /** - * .User.FansClub fansClub = 24; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder getFansClubOrBuilder() { - return fansClub_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance() : fansClub_; - } - - public static final int BORDER_FIELD_NUMBER = 25; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border border_; - /** - * .User.Border border = 25; - * @return Whether the border field is set. - */ - @java.lang.Override - public boolean hasBorder() { - return border_ != null; - } - /** - * .User.Border border = 25; - * @return The border. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border getBorder() { - return border_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance() : border_; - } - /** - * .User.Border border = 25; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder getBorderOrBuilder() { - return border_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance() : border_; - } - - public static final int SPECIALID_FIELD_NUMBER = 26; - @SuppressWarnings("serial") - private volatile java.lang.Object specialId_ = ""; - /** - * string specialId = 26; - * @return The specialId. - */ - @java.lang.Override - public java.lang.String getSpecialId() { - java.lang.Object ref = specialId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - specialId_ = s; - return s; - } - } - /** - * string specialId = 26; - * @return The bytes for specialId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSpecialIdBytes() { - java.lang.Object ref = specialId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - specialId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVATARBORDER_FIELD_NUMBER = 27; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarBorder_; - /** - * .Image avatarBorder = 27; - * @return Whether the avatarBorder field is set. - */ - @java.lang.Override - public boolean hasAvatarBorder() { - return avatarBorder_ != null; - } - /** - * .Image avatarBorder = 27; - * @return The avatarBorder. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarBorder() { - return avatarBorder_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarBorder_; - } - /** - * .Image avatarBorder = 27; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarBorderOrBuilder() { - return avatarBorder_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarBorder_; - } - - public static final int MEDAL_FIELD_NUMBER = 28; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image medal_; - /** - * .Image medal = 28; - * @return Whether the medal field is set. - */ - @java.lang.Override - public boolean hasMedal() { - return medal_ != null; - } - /** - * .Image medal = 28; - * @return The medal. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getMedal() { - return medal_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : medal_; - } - /** - * .Image medal = 28; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getMedalOrBuilder() { - return medal_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : medal_; - } - - public static final int REALTIMEICONSLIST_FIELD_NUMBER = 29; - @SuppressWarnings("serial") - private java.util.List realTimeIconsList_; - /** - * repeated .Image realTimeIconsList = 29; - */ - @java.lang.Override - public java.util.List getRealTimeIconsListList() { - return realTimeIconsList_; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - @java.lang.Override - public java.util.List - getRealTimeIconsListOrBuilderList() { - return realTimeIconsList_; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - @java.lang.Override - public int getRealTimeIconsListCount() { - return realTimeIconsList_.size(); - } - /** - * repeated .Image realTimeIconsList = 29; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getRealTimeIconsList(int index) { - return realTimeIconsList_.get(index); - } - /** - * repeated .Image realTimeIconsList = 29; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getRealTimeIconsListOrBuilder( - int index) { - return realTimeIconsList_.get(index); - } - - public static final int NEWREALTIMEICONSLIST_FIELD_NUMBER = 30; - @SuppressWarnings("serial") - private java.util.List newRealTimeIconsList_; - /** - * repeated .Image newRealTimeIconsList = 30; - */ - @java.lang.Override - public java.util.List getNewRealTimeIconsListList() { - return newRealTimeIconsList_; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - @java.lang.Override - public java.util.List - getNewRealTimeIconsListOrBuilderList() { - return newRealTimeIconsList_; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - @java.lang.Override - public int getNewRealTimeIconsListCount() { - return newRealTimeIconsList_.size(); - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewRealTimeIconsList(int index) { - return newRealTimeIconsList_.get(index); - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewRealTimeIconsListOrBuilder( - int index) { - return newRealTimeIconsList_.get(index); - } - - public static final int TOPVIPNO_FIELD_NUMBER = 31; - private long topVipNo_ = 0L; - /** - * int64 topVipNo = 31; - * @return The topVipNo. - */ - @java.lang.Override - public long getTopVipNo() { - return topVipNo_; - } - - public static final int USERATTR_FIELD_NUMBER = 32; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr userAttr_; - /** - * .User.UserAttr userAttr = 32; - * @return Whether the userAttr field is set. - */ - @java.lang.Override - public boolean hasUserAttr() { - return userAttr_ != null; - } - /** - * .User.UserAttr userAttr = 32; - * @return The userAttr. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr getUserAttr() { - return userAttr_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance() : userAttr_; - } - /** - * .User.UserAttr userAttr = 32; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder getUserAttrOrBuilder() { - return userAttr_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance() : userAttr_; - } - - public static final int OWNROOM_FIELD_NUMBER = 33; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom ownRoom_; - /** - * .User.OwnRoom ownRoom = 33; - * @return Whether the ownRoom field is set. - */ - @java.lang.Override - public boolean hasOwnRoom() { - return ownRoom_ != null; - } - /** - * .User.OwnRoom ownRoom = 33; - * @return The ownRoom. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom getOwnRoom() { - return ownRoom_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance() : ownRoom_; - } - /** - * .User.OwnRoom ownRoom = 33; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder getOwnRoomOrBuilder() { - return ownRoom_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance() : ownRoom_; - } - - public static final int PAYSCORE_FIELD_NUMBER = 34; - private long payScore_ = 0L; - /** - * int64 payScore = 34; - * @return The payScore. - */ - @java.lang.Override - public long getPayScore() { - return payScore_; - } - - public static final int TICKETCOUNT_FIELD_NUMBER = 35; - private long ticketCount_ = 0L; - /** - * int64 ticketCount = 35; - * @return The ticketCount. - */ - @java.lang.Override - public long getTicketCount() { - return ticketCount_; - } - - public static final int ANCHORINFO_FIELD_NUMBER = 36; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo anchorInfo_; - /** - * .User.AnchorInfo anchorInfo = 36; - * @return Whether the anchorInfo field is set. - */ - @java.lang.Override - public boolean hasAnchorInfo() { - return anchorInfo_ != null; - } - /** - * .User.AnchorInfo anchorInfo = 36; - * @return The anchorInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo getAnchorInfo() { - return anchorInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance() : anchorInfo_; - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder getAnchorInfoOrBuilder() { - return anchorInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance() : anchorInfo_; - } - - public static final int LINKMICSTATS_FIELD_NUMBER = 37; - private int linkMicStats_ = 0; - /** - * int32 linkMicStats = 37; - * @return The linkMicStats. - */ - @java.lang.Override - public int getLinkMicStats() { - return linkMicStats_; - } - - public static final int DISPLAYID_FIELD_NUMBER = 38; - @SuppressWarnings("serial") - private volatile java.lang.Object displayId_ = ""; - /** - * string displayId = 38; - * @return The displayId. - */ - @java.lang.Override - public java.lang.String getDisplayId() { - java.lang.Object ref = displayId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayId_ = s; - return s; - } - } - /** - * string displayId = 38; - * @return The bytes for displayId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayIdBytes() { - java.lang.Object ref = displayId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WITHCOMMERCEPERMISSION_FIELD_NUMBER = 39; - private boolean withCommercePermission_ = false; - /** - * bool withCommercePermission = 39; - * @return The withCommercePermission. - */ - @java.lang.Override - public boolean getWithCommercePermission() { - return withCommercePermission_; - } - - public static final int WITHFUSIONSHOPENTRY_FIELD_NUMBER = 40; - private boolean withFusionShopEntry_ = false; - /** - * bool withFusionShopEntry = 40; - * @return The withFusionShopEntry. - */ - @java.lang.Override - public boolean getWithFusionShopEntry() { - return withFusionShopEntry_; - } - - public static final int TOTALRECHARGEDIAMONDCOUNT_FIELD_NUMBER = 41; - private long totalRechargeDiamondCount_ = 0L; - /** - * int64 totalRechargeDiamondCount = 41; - * @return The totalRechargeDiamondCount. - */ - @java.lang.Override - public long getTotalRechargeDiamondCount() { - return totalRechargeDiamondCount_; - } - - public static final int WEBCASTANCHORLEVEL_FIELD_NUMBER = 42; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel webcastAnchorLevel_; - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - * @return Whether the webcastAnchorLevel field is set. - */ - @java.lang.Override - public boolean hasWebcastAnchorLevel() { - return webcastAnchorLevel_ != null; - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - * @return The webcastAnchorLevel. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getWebcastAnchorLevel() { - return webcastAnchorLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : webcastAnchorLevel_; - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder getWebcastAnchorLevelOrBuilder() { - return webcastAnchorLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : webcastAnchorLevel_; - } - - public static final int VERIFIEDCONTENT_FIELD_NUMBER = 43; - @SuppressWarnings("serial") - private volatile java.lang.Object verifiedContent_ = ""; - /** - * string verifiedContent = 43; - * @return The verifiedContent. - */ - @java.lang.Override - public java.lang.String getVerifiedContent() { - java.lang.Object ref = verifiedContent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verifiedContent_ = s; - return s; - } - } - /** - * string verifiedContent = 43; - * @return The bytes for verifiedContent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVerifiedContentBytes() { - java.lang.Object ref = verifiedContent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verifiedContent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHORSTATS_FIELD_NUMBER = 44; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats authorStats_; - /** - * .User.AuthorStats authorStats = 44; - * @return Whether the authorStats field is set. - */ - @java.lang.Override - public boolean hasAuthorStats() { - return authorStats_ != null; - } - /** - * .User.AuthorStats authorStats = 44; - * @return The authorStats. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats getAuthorStats() { - return authorStats_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance() : authorStats_; - } - /** - * .User.AuthorStats authorStats = 44; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder getAuthorStatsOrBuilder() { - return authorStats_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance() : authorStats_; - } - - public static final int TOPFANSLIST_FIELD_NUMBER = 45; - @SuppressWarnings("serial") - private java.util.List topFansList_; - /** - * repeated .User topFansList = 45; - */ - @java.lang.Override - public java.util.List getTopFansListList() { - return topFansList_; - } - /** - * repeated .User topFansList = 45; - */ - @java.lang.Override - public java.util.List - getTopFansListOrBuilderList() { - return topFansList_; - } - /** - * repeated .User topFansList = 45; - */ - @java.lang.Override - public int getTopFansListCount() { - return topFansList_.size(); - } - /** - * repeated .User topFansList = 45; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getTopFansList(int index) { - return topFansList_.get(index); - } - /** - * repeated .User topFansList = 45; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getTopFansListOrBuilder( - int index) { - return topFansList_.get(index); - } - - public static final int SECUID_FIELD_NUMBER = 46; - @SuppressWarnings("serial") - private volatile java.lang.Object secUid_ = ""; - /** - * string secUid = 46; - * @return The secUid. - */ - @java.lang.Override - public java.lang.String getSecUid() { - java.lang.Object ref = secUid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secUid_ = s; - return s; - } - } - /** - * string secUid = 46; - * @return The bytes for secUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSecUidBytes() { - java.lang.Object ref = secUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERROLE_FIELD_NUMBER = 47; - private int userRole_ = 0; - /** - * int32 userRole = 47; - * @return The userRole. - */ - @java.lang.Override - public int getUserRole() { - return userRole_; - } - - public static final int XIGUAINFO_FIELD_NUMBER = 48; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams xiguaInfo_; - /** - * .User.XiguaParams xiguaInfo = 48; - * @return Whether the xiguaInfo field is set. - */ - @java.lang.Override - public boolean hasXiguaInfo() { - return xiguaInfo_ != null; - } - /** - * .User.XiguaParams xiguaInfo = 48; - * @return The xiguaInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams getXiguaInfo() { - return xiguaInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance() : xiguaInfo_; - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder getXiguaInfoOrBuilder() { - return xiguaInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance() : xiguaInfo_; - } - - public static final int ACTIVITYREWARD_FIELD_NUMBER = 49; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo activityReward_; - /** - * .User.ActivityInfo activityReward = 49; - * @return Whether the activityReward field is set. - */ - @java.lang.Override - public boolean hasActivityReward() { - return activityReward_ != null; - } - /** - * .User.ActivityInfo activityReward = 49; - * @return The activityReward. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo getActivityReward() { - return activityReward_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance() : activityReward_; - } - /** - * .User.ActivityInfo activityReward = 49; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder getActivityRewardOrBuilder() { - return activityReward_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance() : activityReward_; - } - - public static final int NOBLEINFO_FIELD_NUMBER = 50; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo nobleInfo_; - /** - * .User.NobleLevelInfo nobleInfo = 50; - * @return Whether the nobleInfo field is set. - */ - @java.lang.Override - public boolean hasNobleInfo() { - return nobleInfo_ != null; - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - * @return The nobleInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo getNobleInfo() { - return nobleInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance() : nobleInfo_; - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder getNobleInfoOrBuilder() { - return nobleInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance() : nobleInfo_; - } - - public static final int BROTHERHOODINFO_FIELD_NUMBER = 51; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo brotherhoodInfo_; - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - * @return Whether the brotherhoodInfo field is set. - */ - @java.lang.Override - public boolean hasBrotherhoodInfo() { - return brotherhoodInfo_ != null; - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - * @return The brotherhoodInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo getBrotherhoodInfo() { - return brotherhoodInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance() : brotherhoodInfo_; - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder getBrotherhoodInfoOrBuilder() { - return brotherhoodInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance() : brotherhoodInfo_; - } - - public static final int PERSONALCARD_FIELD_NUMBER = 52; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image personalCard_; - /** - * .Image personalCard = 52; - * @return Whether the personalCard field is set. - */ - @java.lang.Override - public boolean hasPersonalCard() { - return personalCard_ != null; - } - /** - * .Image personalCard = 52; - * @return The personalCard. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getPersonalCard() { - return personalCard_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : personalCard_; - } - /** - * .Image personalCard = 52; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getPersonalCardOrBuilder() { - return personalCard_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : personalCard_; - } - - public static final int AUTHENTICATIONINFO_FIELD_NUMBER = 53; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo authenticationInfo_; - /** - * .User.AuthenticationInfo authenticationInfo = 53; - * @return Whether the authenticationInfo field is set. - */ - @java.lang.Override - public boolean hasAuthenticationInfo() { - return authenticationInfo_ != null; - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - * @return The authenticationInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo getAuthenticationInfo() { - return authenticationInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() { - return authenticationInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; - } - - public static final int AUTHORIZATIONINFO_FIELD_NUMBER = 54; - private int authorizationInfo_ = 0; - /** - * int32 authorizationInfo = 54; - * @return The authorizationInfo. - */ - @java.lang.Override - public int getAuthorizationInfo() { - return authorizationInfo_; - } - - public static final int ADVERSARYAUTHORIZATIONINFO_FIELD_NUMBER = 55; - private int adversaryAuthorizationInfo_ = 0; - /** - * int32 adversaryAuthorizationInfo = 55; - * @return The adversaryAuthorizationInfo. - */ - @java.lang.Override - public int getAdversaryAuthorizationInfo() { - return adversaryAuthorizationInfo_; - } - - public static final int POIINFO_FIELD_NUMBER = 56; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo poiInfo_; - /** - * .User.PoiInfo poiInfo = 56; - * @return Whether the poiInfo field is set. - */ - @java.lang.Override - public boolean hasPoiInfo() { - return poiInfo_ != null; - } - /** - * .User.PoiInfo poiInfo = 56; - * @return The poiInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo getPoiInfo() { - return poiInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance() : poiInfo_; - } - /** - * .User.PoiInfo poiInfo = 56; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder getPoiInfoOrBuilder() { - return poiInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance() : poiInfo_; - } - - public static final int MEDIABADGEIMAGELISTLIST_FIELD_NUMBER = 57; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image mediaBadgeImageListList_; - /** - * .Image mediaBadgeImageListList = 57; - * @return Whether the mediaBadgeImageListList field is set. - */ - @java.lang.Override - public boolean hasMediaBadgeImageListList() { - return mediaBadgeImageListList_ != null; - } - /** - * .Image mediaBadgeImageListList = 57; - * @return The mediaBadgeImageListList. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getMediaBadgeImageListList() { - return mediaBadgeImageListList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : mediaBadgeImageListList_; - } - /** - * .Image mediaBadgeImageListList = 57; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getMediaBadgeImageListListOrBuilder() { - return mediaBadgeImageListList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : mediaBadgeImageListList_; - } - - public static final int ADVERSARYUSERSTATUS_FIELD_NUMBER = 58; - private int adversaryUserStatus_ = 0; - /** - * int32 adversaryUserStatus = 58; - * @return The adversaryUserStatus. - */ - @java.lang.Override - public int getAdversaryUserStatus() { - return adversaryUserStatus_; - } - - public static final int USERVIPINFO_FIELD_NUMBER = 59; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo userVipInfo_; - /** - * .User.UserVIPInfo userVipInfo = 59; - * @return Whether the userVipInfo field is set. - */ - @java.lang.Override - public boolean hasUserVipInfo() { - return userVipInfo_ != null; - } - /** - * .User.UserVIPInfo userVipInfo = 59; - * @return The userVipInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo getUserVipInfo() { - return userVipInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance() : userVipInfo_; - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder getUserVipInfoOrBuilder() { - return userVipInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance() : userVipInfo_; - } - - public static final int COMMERCEWEBCASTCONFIGIDSLIST_FIELD_NUMBER = 60; - @SuppressWarnings("serial") - private com.google.protobuf.Internal.LongList commerceWebcastConfigIdsList_; - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return A list containing the commerceWebcastConfigIdsList. - */ - @java.lang.Override - public java.util.List - getCommerceWebcastConfigIdsListList() { - return commerceWebcastConfigIdsList_; - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return The count of commerceWebcastConfigIdsList. - */ - public int getCommerceWebcastConfigIdsListCount() { - return commerceWebcastConfigIdsList_.size(); - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @param index The index of the element to return. - * @return The commerceWebcastConfigIdsList at the given index. - */ - public long getCommerceWebcastConfigIdsList(int index) { - return commerceWebcastConfigIdsList_.getLong(index); - } - private int commerceWebcastConfigIdsListMemoizedSerializedSize = -1; - - public static final int BADGEIMAGELISTV2LIST_FIELD_NUMBER = 61; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image badgeImageListV2List_; - /** - * .Image badgeImageListV2List = 61; - * @return Whether the badgeImageListV2List field is set. - */ - @java.lang.Override - public boolean hasBadgeImageListV2List() { - return badgeImageListV2List_ != null; - } - /** - * .Image badgeImageListV2List = 61; - * @return The badgeImageListV2List. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBadgeImageListV2List() { - return badgeImageListV2List_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListV2List_; - } - /** - * .Image badgeImageListV2List = 61; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBadgeImageListV2ListOrBuilder() { - return badgeImageListV2List_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListV2List_; - } - - public static final int LOCATIONCITY_FIELD_NUMBER = 63; - @SuppressWarnings("serial") - private volatile java.lang.Object locationCity_ = ""; - /** - *
-     * IndustryCertification  industryCertification = 62;
-     * 
- * - * string locationCity = 63; - * @return The locationCity. - */ - @java.lang.Override - public java.lang.String getLocationCity() { - java.lang.Object ref = locationCity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationCity_ = s; - return s; - } - } - /** - *
-     * IndustryCertification  industryCertification = 62;
-     * 
- * - * string locationCity = 63; - * @return The bytes for locationCity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLocationCityBytes() { - java.lang.Object ref = locationCity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - locationCity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FANSGROUPINFO_FIELD_NUMBER = 64; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo fansGroupInfo_; - /** - * .User.FansGroupInfo fansGroupInfo = 64; - * @return Whether the fansGroupInfo field is set. - */ - @java.lang.Override - public boolean hasFansGroupInfo() { - return fansGroupInfo_ != null; - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - * @return The fansGroupInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo getFansGroupInfo() { - return fansGroupInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance() : fansGroupInfo_; - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder getFansGroupInfoOrBuilder() { - return fansGroupInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance() : fansGroupInfo_; - } - - public static final int REMARKNAME_FIELD_NUMBER = 65; - @SuppressWarnings("serial") - private volatile java.lang.Object remarkName_ = ""; - /** - * string remarkName = 65; - * @return The remarkName. - */ - @java.lang.Override - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } - } - /** - * string remarkName = 65; - * @return The bytes for remarkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MYSTERYMAN_FIELD_NUMBER = 66; - private int mysteryMan_ = 0; - /** - * int32 mysteryMan = 66; - * @return The mysteryMan. - */ - @java.lang.Override - public int getMysteryMan() { - return mysteryMan_; - } - - public static final int WEBRID_FIELD_NUMBER = 67; - @SuppressWarnings("serial") - private volatile java.lang.Object webRid_ = ""; - /** - * string webRid = 67; - * @return The webRid. - */ - @java.lang.Override - public java.lang.String getWebRid() { - java.lang.Object ref = webRid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - webRid_ = s; - return s; - } - } - /** - * string webRid = 67; - * @return The bytes for webRid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWebRidBytes() { - java.lang.Object ref = webRid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - webRid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESENSITIZEDNICKNAME_FIELD_NUMBER = 68; - @SuppressWarnings("serial") - private volatile java.lang.Object desensitizedNickname_ = ""; - /** - * string desensitizedNickname = 68; - * @return The desensitizedNickname. - */ - @java.lang.Override - public java.lang.String getDesensitizedNickname() { - java.lang.Object ref = desensitizedNickname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desensitizedNickname_ = s; - return s; - } - } - /** - * string desensitizedNickname = 68; - * @return The bytes for desensitizedNickname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDesensitizedNicknameBytes() { - java.lang.Object ref = desensitizedNickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desensitizedNickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JACCREDITINFO_FIELD_NUMBER = 69; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo jAccreditInfo_; - /** - * .User.JAccreditInfo jAccreditInfo = 69; - * @return Whether the jAccreditInfo field is set. - */ - @java.lang.Override - public boolean hasJAccreditInfo() { - return jAccreditInfo_ != null; - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - * @return The jAccreditInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo getJAccreditInfo() { - return jAccreditInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance() : jAccreditInfo_; - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder getJAccreditInfoOrBuilder() { - return jAccreditInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance() : jAccreditInfo_; - } - - public static final int SUBSCRIBE_FIELD_NUMBER = 70; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe subscribe_; - /** - * .User.Subscribe subscribe = 70; - * @return Whether the subscribe field is set. - */ - @java.lang.Override - public boolean hasSubscribe() { - return subscribe_ != null; - } - /** - * .User.Subscribe subscribe = 70; - * @return The subscribe. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe getSubscribe() { - return subscribe_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance() : subscribe_; - } - /** - * .User.Subscribe subscribe = 70; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder getSubscribeOrBuilder() { - return subscribe_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance() : subscribe_; - } - - public static final int ISANONYMOUS_FIELD_NUMBER = 71; - private boolean isAnonymous_ = false; - /** - * bool isAnonymous = 71; - * @return The isAnonymous. - */ - @java.lang.Override - public boolean getIsAnonymous() { - return isAnonymous_; - } - - public static final int CONSUMEDIAMONDLEVEL_FIELD_NUMBER = 72; - private int consumeDiamondLevel_ = 0; - /** - * int32 consumeDiamondLevel = 72; - * @return The consumeDiamondLevel. - */ - @java.lang.Override - public int getConsumeDiamondLevel() { - return consumeDiamondLevel_; - } - - public static final int WEBCASTUID_FIELD_NUMBER = 73; - @SuppressWarnings("serial") - private volatile java.lang.Object webcastUid_ = ""; - /** - * string webcastUid = 73; - * @return The webcastUid. - */ - @java.lang.Override - public java.lang.String getWebcastUid() { - java.lang.Object ref = webcastUid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - webcastUid_ = s; - return s; - } - } - /** - * string webcastUid = 73; - * @return The bytes for webcastUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWebcastUidBytes() { - java.lang.Object ref = webcastUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - webcastUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROFILESTYLEPARAMS_FIELD_NUMBER = 74; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams profileStyleParams_; - /** - * .User.ProfileStyleParams profileStyleParams = 74; - * @return Whether the profileStyleParams field is set. - */ - @java.lang.Override - public boolean hasProfileStyleParams() { - return profileStyleParams_ != null; - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - * @return The profileStyleParams. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams getProfileStyleParams() { - return profileStyleParams_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance() : profileStyleParams_; - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder getProfileStyleParamsOrBuilder() { - return profileStyleParams_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance() : profileStyleParams_; - } - - public static final int USERDRESSINFO_FIELD_NUMBER = 75; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo userDressInfo_; - /** - * .User.UserDressInfo userDressInfo = 75; - * @return Whether the userDressInfo field is set. - */ - @java.lang.Override - public boolean hasUserDressInfo() { - return userDressInfo_ != null; - } - /** - * .User.UserDressInfo userDressInfo = 75; - * @return The userDressInfo. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo getUserDressInfo() { - return userDressInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance() : userDressInfo_; - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder getUserDressInfoOrBuilder() { - return userDressInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance() : userDressInfo_; - } - - public static final int ALLOWBELOCATED_FIELD_NUMBER = 1001; - private boolean allowBeLocated_ = false; - /** - * bool allowBeLocated = 1001; - * @return The allowBeLocated. - */ - @java.lang.Override - public boolean getAllowBeLocated() { - return allowBeLocated_; - } - - public static final int ALLOWFINDBYCONTACTS_FIELD_NUMBER = 1002; - private boolean allowFindByContacts_ = false; - /** - * bool allowFindByContacts = 1002; - * @return The allowFindByContacts. - */ - @java.lang.Override - public boolean getAllowFindByContacts() { - return allowFindByContacts_; - } - - public static final int ALLOWOTHERSDOWNLOADVIDEO_FIELD_NUMBER = 1003; - private boolean allowOthersDownloadVideo_ = false; - /** - * bool allowOthersDownloadVideo = 1003; - * @return The allowOthersDownloadVideo. - */ - @java.lang.Override - public boolean getAllowOthersDownloadVideo() { - return allowOthersDownloadVideo_; - } - - public static final int ALLOWOTHERSDOWNLOADWHENSHARINGVIDEO_FIELD_NUMBER = 1004; - private boolean allowOthersDownloadWhenSharingVideo_ = false; - /** - * bool allowOthersDownloadWhenSharingVideo = 1004; - * @return The allowOthersDownloadWhenSharingVideo. - */ - @java.lang.Override - public boolean getAllowOthersDownloadWhenSharingVideo() { - return allowOthersDownloadWhenSharingVideo_; - } - - public static final int ALLOWSHARESHOWPROFILE_FIELD_NUMBER = 1005; - private boolean allowShareShowProfile_ = false; - /** - * bool allowShareShowProfile = 1005; - * @return The allowShareShowProfile. - */ - @java.lang.Override - public boolean getAllowShareShowProfile() { - return allowShareShowProfile_; - } - - public static final int ALLOWSHOWINGOSSIP_FIELD_NUMBER = 1006; - private boolean allowShowInGossip_ = false; - /** - * bool allowShowInGossip = 1006; - * @return The allowShowInGossip. - */ - @java.lang.Override - public boolean getAllowShowInGossip() { - return allowShowInGossip_; - } - - public static final int ALLOWSHOWMYACTION_FIELD_NUMBER = 1007; - private boolean allowShowMyAction_ = false; - /** - * bool allowShowMyAction = 1007; - * @return The allowShowMyAction. - */ - @java.lang.Override - public boolean getAllowShowMyAction() { - return allowShowMyAction_; - } - - public static final int ALLOWSTRANGECOMMENT_FIELD_NUMBER = 1008; - private boolean allowStrangeComment_ = false; - /** - * bool allowStrangeComment = 1008; - * @return The allowStrangeComment. - */ - @java.lang.Override - public boolean getAllowStrangeComment() { - return allowStrangeComment_; - } - - public static final int ALLOWUNFOLLOWERCOMMENT_FIELD_NUMBER = 1009; - private boolean allowUnfollowerComment_ = false; - /** - * bool allowUnfollowerComment = 1009; - * @return The allowUnfollowerComment. - */ - @java.lang.Override - public boolean getAllowUnfollowerComment() { - return allowUnfollowerComment_; - } - - public static final int ALLOWUSELINKMIC_FIELD_NUMBER = 1010; - private boolean allowUseLinkmic_ = false; - /** - * bool allowUseLinkmic = 1010; - * @return The allowUseLinkmic. - */ - @java.lang.Override - public boolean getAllowUseLinkmic() { - return allowUseLinkmic_; - } - - public static final int ANCHORLEVEL_FIELD_NUMBER = 1011; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel anchorLevel_; - /** - * .User.AnchorLevel anchorLevel = 1011; - * @return Whether the anchorLevel field is set. - */ - @java.lang.Override - public boolean hasAnchorLevel() { - return anchorLevel_ != null; - } - /** - * .User.AnchorLevel anchorLevel = 1011; - * @return The anchorLevel. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getAnchorLevel() { - return anchorLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : anchorLevel_; - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder getAnchorLevelOrBuilder() { - return anchorLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : anchorLevel_; - } - - public static final int AVATARJPG_FIELD_NUMBER = 1012; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarJpg_; - /** - * .Image avatarJpg = 1012; - * @return Whether the avatarJpg field is set. - */ - @java.lang.Override - public boolean hasAvatarJpg() { - return avatarJpg_ != null; - } - /** - * .Image avatarJpg = 1012; - * @return The avatarJpg. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarJpg() { - return avatarJpg_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarJpg_; - } - /** - * .Image avatarJpg = 1012; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarJpgOrBuilder() { - return avatarJpg_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarJpg_; - } - - public static final int BGIMGURL_FIELD_NUMBER = 1013; - @SuppressWarnings("serial") - private volatile java.lang.Object bgImgUrl_ = ""; - /** - * string bgImgUrl = 1013; - * @return The bgImgUrl. - */ - @java.lang.Override - public java.lang.String getBgImgUrl() { - java.lang.Object ref = bgImgUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bgImgUrl_ = s; - return s; - } - } - /** - * string bgImgUrl = 1013; - * @return The bytes for bgImgUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBgImgUrlBytes() { - java.lang.Object ref = bgImgUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bgImgUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BIRTHDAYDESCRIPTION_FIELD_NUMBER = 1014; - @SuppressWarnings("serial") - private volatile java.lang.Object birthdayDescription_ = ""; - /** - * string birthdayDescription = 1014; - * @return The birthdayDescription. - */ - @java.lang.Override - public java.lang.String getBirthdayDescription() { - java.lang.Object ref = birthdayDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - birthdayDescription_ = s; - return s; - } - } - /** - * string birthdayDescription = 1014; - * @return The bytes for birthdayDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBirthdayDescriptionBytes() { - java.lang.Object ref = birthdayDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - birthdayDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BIRTHDAYVALID_FIELD_NUMBER = 1015; - private boolean birthdayValid_ = false; - /** - * bool birthdayValid = 1015; - * @return The birthdayValid. - */ - @java.lang.Override - public boolean getBirthdayValid() { - return birthdayValid_; - } - - public static final int BLOCKSTATUS_FIELD_NUMBER = 1016; - private int blockStatus_ = 0; - /** - * int32 blockStatus = 1016; - * @return The blockStatus. - */ - @java.lang.Override - public int getBlockStatus() { - return blockStatus_; - } - - public static final int COMMENTRESTRICT_FIELD_NUMBER = 1017; - private int commentRestrict_ = 0; - /** - * int32 commentRestrict = 1017; - * @return The commentRestrict. - */ - @java.lang.Override - public int getCommentRestrict() { - return commentRestrict_; - } - - public static final int CONSTELLATION_FIELD_NUMBER = 1018; - @SuppressWarnings("serial") - private volatile java.lang.Object constellation_ = ""; - /** - * string constellation = 1018; - * @return The constellation. - */ - @java.lang.Override - public java.lang.String getConstellation() { - java.lang.Object ref = constellation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constellation_ = s; - return s; - } - } - /** - * string constellation = 1018; - * @return The bytes for constellation. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getConstellationBytes() { - java.lang.Object ref = constellation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - constellation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISABLEICHAT_FIELD_NUMBER = 1019; - private int disableIchat_ = 0; - /** - * int32 disableIchat = 1019; - * @return The disableIchat. - */ - @java.lang.Override - public int getDisableIchat() { - return disableIchat_; - } - - public static final int ENABLEICHATIMG_FIELD_NUMBER = 1020; - private long enableIchatImg_ = 0L; - /** - * int64 enableIchatImg = 1020; - * @return The enableIchatImg. - */ - @java.lang.Override - public long getEnableIchatImg() { - return enableIchatImg_; - } - - public static final int EXP_FIELD_NUMBER = 1021; - private int exp_ = 0; - /** - * int32 exp = 1021; - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - - public static final int FANTICKETCOUNT_FIELD_NUMBER = 1022; - private long fanTicketCount_ = 0L; - /** - * int64 fanTicketCount = 1022; - * @return The fanTicketCount. - */ - @java.lang.Override - public long getFanTicketCount() { - return fanTicketCount_; - } - - public static final int FOLDSTRANGERCHAT_FIELD_NUMBER = 1023; - private boolean foldStrangerChat_ = false; - /** - * bool foldStrangerChat = 1023; - * @return The foldStrangerChat. - */ - @java.lang.Override - public boolean getFoldStrangerChat() { - return foldStrangerChat_; - } - - public static final int FOLLOWSTATUS_FIELD_NUMBER = 1024; - private long followStatus_ = 0L; - /** - * int64 followStatus = 1024; - * @return The followStatus. - */ - @java.lang.Override - public long getFollowStatus() { - return followStatus_; - } - - public static final int HOTSOONVERIFIED_FIELD_NUMBER = 1025; - private boolean hotsoonVerified_ = false; - /** - * bool hotsoonVerified = 1025; - * @return The hotsoonVerified. - */ - @java.lang.Override - public boolean getHotsoonVerified() { - return hotsoonVerified_; - } - - public static final int HOTSOONVERIFIEDREASON_FIELD_NUMBER = 1026; - @SuppressWarnings("serial") - private volatile java.lang.Object hotsoonVerifiedReason_ = ""; - /** - * string hotsoonVerifiedReason = 1026; - * @return The hotsoonVerifiedReason. - */ - @java.lang.Override - public java.lang.String getHotsoonVerifiedReason() { - java.lang.Object ref = hotsoonVerifiedReason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hotsoonVerifiedReason_ = s; - return s; - } - } - /** - * string hotsoonVerifiedReason = 1026; - * @return The bytes for hotsoonVerifiedReason. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHotsoonVerifiedReasonBytes() { - java.lang.Object ref = hotsoonVerifiedReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hotsoonVerifiedReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ICHATRESTRICTTYPE_FIELD_NUMBER = 1027; - private int ichatRestrictType_ = 0; - /** - * int32 ichatRestrictType = 1027; - * @return The ichatRestrictType. - */ - @java.lang.Override - public int getIchatRestrictType() { - return ichatRestrictType_; - } - - public static final int IDSTR_FIELD_NUMBER = 1028; - @SuppressWarnings("serial") - private volatile java.lang.Object idStr_ = ""; - /** - * string idStr = 1028; - * @return The idStr. - */ - @java.lang.Override - public java.lang.String getIdStr() { - java.lang.Object ref = idStr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - idStr_ = s; - return s; - } - } - /** - * string idStr = 1028; - * @return The bytes for idStr. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdStrBytes() { - java.lang.Object ref = idStr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - idStr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISFOLLOWER_FIELD_NUMBER = 1029; - private boolean isFollower_ = false; - /** - * bool isFollower = 1029; - * @return The isFollower. - */ - @java.lang.Override - public boolean getIsFollower() { - return isFollower_; - } - - public static final int ISFOLLOWING_FIELD_NUMBER = 1030; - private boolean isFollowing_ = false; - /** - * bool isFollowing = 1030; - * @return The isFollowing. - */ - @java.lang.Override - public boolean getIsFollowing() { - return isFollowing_; - } - - public static final int NEEDPROFILEGUIDE_FIELD_NUMBER = 1031; - private boolean needProfileGuide_ = false; - /** - * bool needProfileGuide = 1031; - * @return The needProfileGuide. - */ - @java.lang.Override - public boolean getNeedProfileGuide() { - return needProfileGuide_; - } - - public static final int PAYSCORES_FIELD_NUMBER = 1032; - private long payScores_ = 0L; - /** - * int64 payScores = 1032; - * @return The payScores. - */ - @java.lang.Override - public long getPayScores() { - return payScores_; - } - - public static final int PUSHCOMMENTSTATUS_FIELD_NUMBER = 1033; - private boolean pushCommentStatus_ = false; - /** - * bool pushCommentStatus = 1033; - * @return The pushCommentStatus. - */ - @java.lang.Override - public boolean getPushCommentStatus() { - return pushCommentStatus_; - } - - public static final int PUSHDIGG_FIELD_NUMBER = 1034; - private boolean pushDigg_ = false; - /** - * bool pushDigg = 1034; - * @return The pushDigg. - */ - @java.lang.Override - public boolean getPushDigg() { - return pushDigg_; - } - - public static final int PUSHFOLLOW_FIELD_NUMBER = 1035; - private boolean pushFollow_ = false; - /** - * bool pushFollow = 1035; - * @return The pushFollow. - */ - @java.lang.Override - public boolean getPushFollow() { - return pushFollow_; - } - - public static final int PUSHFRIENDACTION_FIELD_NUMBER = 1036; - private boolean pushFriendAction_ = false; - /** - * bool pushFriendAction = 1036; - * @return The pushFriendAction. - */ - @java.lang.Override - public boolean getPushFriendAction() { - return pushFriendAction_; - } - - public static final int PUSHICHAT_FIELD_NUMBER = 1037; - private boolean pushIchat_ = false; - /** - * bool pushIchat = 1037; - * @return The pushIchat. - */ - @java.lang.Override - public boolean getPushIchat() { - return pushIchat_; - } - - public static final int PUSHSTATUS_FIELD_NUMBER = 1038; - private boolean pushStatus_ = false; - /** - * bool pushStatus = 1038; - * @return The pushStatus. - */ - @java.lang.Override - public boolean getPushStatus() { - return pushStatus_; - } - - public static final int PUSHVIDEOPOST_FIELD_NUMBER = 1039; - private boolean pushVideoPost_ = false; - /** - * bool pushVideoPost = 1039; - * @return The pushVideoPost. - */ - @java.lang.Override - public boolean getPushVideoPost() { - return pushVideoPost_; - } - - public static final int PUSHVIDEORECOMMEND_FIELD_NUMBER = 1040; - private boolean pushVideoRecommend_ = false; - /** - * bool pushVideoRecommend = 1040; - * @return The pushVideoRecommend. - */ - @java.lang.Override - public boolean getPushVideoRecommend() { - return pushVideoRecommend_; - } - - public static final int STATS_FIELD_NUMBER = 1041; - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats stats_; - /** - * .User.UserStats stats = 1041; - * @return Whether the stats field is set. - */ - @java.lang.Override - public boolean hasStats() { - return stats_ != null; - } - /** - * .User.UserStats stats = 1041; - * @return The stats. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats getStats() { - return stats_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance() : stats_; - } - /** - * .User.UserStats stats = 1041; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder getStatsOrBuilder() { - return stats_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance() : stats_; - } - - public static final int VERIFIEDMOBILE_FIELD_NUMBER = 1042; - private boolean verifiedMobile_ = false; - /** - * bool verifiedMobile = 1042; - * @return The verifiedMobile. - */ - @java.lang.Override - public boolean getVerifiedMobile() { - return verifiedMobile_; - } - - public static final int VERIFIEDREASON_FIELD_NUMBER = 1043; - @SuppressWarnings("serial") - private volatile java.lang.Object verifiedReason_ = ""; - /** - * string verifiedReason = 1043; - * @return The verifiedReason. - */ - @java.lang.Override - public java.lang.String getVerifiedReason() { - java.lang.Object ref = verifiedReason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verifiedReason_ = s; - return s; - } - } - /** - * string verifiedReason = 1043; - * @return The bytes for verifiedReason. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVerifiedReasonBytes() { - java.lang.Object ref = verifiedReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verifiedReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WITHCARMANAGEMENTPERMISSION_FIELD_NUMBER = 1044; - private boolean withCarManagementPermission_ = false; - /** - * bool withCarManagementPermission = 1044; - * @return The withCarManagementPermission. - */ - @java.lang.Override - public boolean getWithCarManagementPermission() { - return withCarManagementPermission_; - } - - public static final int AGERANGE_FIELD_NUMBER = 1045; - private int ageRange_ = 0; - /** - * int32 ageRange = 1045; - * @return The ageRange. - */ - @java.lang.Override - public int getAgeRange() { - return ageRange_; - } - - public static final int WATCHDURATIONMONTH_FIELD_NUMBER = 1046; - private long watchDurationMonth_ = 0L; - /** - * int64 watchDurationMonth = 1046; - * @return The watchDurationMonth. - */ - @java.lang.Override - public long getWatchDurationMonth() { - return watchDurationMonth_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (id_ != 0L) { - output.writeUInt64(1, id_); - } - if (shortId_ != 0L) { - output.writeUInt64(2, shortId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nickname_); - } - if (gender_ != 0) { - output.writeUInt32(4, gender_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signature_); - } - if (level_ != 0) { - output.writeUInt32(6, level_); - } - if (birthday_ != 0L) { - output.writeUInt64(7, birthday_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, telephone_); - } - if (avatarThumb_ != null) { - output.writeMessage(9, getAvatarThumb()); - } - if (avatarMedium_ != null) { - output.writeMessage(10, getAvatarMedium()); - } - if (avatarLarge_ != null) { - output.writeMessage(11, getAvatarLarge()); - } - if (verified_ != false) { - output.writeBool(12, verified_); - } - if (experience_ != 0) { - output.writeInt32(13, experience_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, city_); - } - if (status_ != 0) { - output.writeInt32(15, status_); - } - if (createTime_ != 0L) { - output.writeInt64(16, createTime_); - } - if (modifyTime_ != 0L) { - output.writeInt64(17, modifyTime_); - } - if (secret_ != 0) { - output.writeInt32(18, secret_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareQrcodeUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, shareQrcodeUri_); - } - if (incomeSharePercent_ != 0) { - output.writeInt32(20, incomeSharePercent_); - } - if (badgeImageListList_ != null) { - output.writeMessage(21, getBadgeImageListList()); - } - if (followInfo_ != null) { - output.writeMessage(22, getFollowInfo()); - } - if (payGrade_ != null) { - output.writeMessage(23, getPayGrade()); - } - if (fansClub_ != null) { - output.writeMessage(24, getFansClub()); - } - if (border_ != null) { - output.writeMessage(25, getBorder()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specialId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 26, specialId_); - } - if (avatarBorder_ != null) { - output.writeMessage(27, getAvatarBorder()); - } - if (medal_ != null) { - output.writeMessage(28, getMedal()); - } - for (int i = 0; i < realTimeIconsList_.size(); i++) { - output.writeMessage(29, realTimeIconsList_.get(i)); - } - for (int i = 0; i < newRealTimeIconsList_.size(); i++) { - output.writeMessage(30, newRealTimeIconsList_.get(i)); - } - if (topVipNo_ != 0L) { - output.writeInt64(31, topVipNo_); - } - if (userAttr_ != null) { - output.writeMessage(32, getUserAttr()); - } - if (ownRoom_ != null) { - output.writeMessage(33, getOwnRoom()); - } - if (payScore_ != 0L) { - output.writeInt64(34, payScore_); - } - if (ticketCount_ != 0L) { - output.writeInt64(35, ticketCount_); - } - if (anchorInfo_ != null) { - output.writeMessage(36, getAnchorInfo()); - } - if (linkMicStats_ != 0) { - output.writeInt32(37, linkMicStats_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 38, displayId_); - } - if (withCommercePermission_ != false) { - output.writeBool(39, withCommercePermission_); - } - if (withFusionShopEntry_ != false) { - output.writeBool(40, withFusionShopEntry_); - } - if (totalRechargeDiamondCount_ != 0L) { - output.writeInt64(41, totalRechargeDiamondCount_); - } - if (webcastAnchorLevel_ != null) { - output.writeMessage(42, getWebcastAnchorLevel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verifiedContent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 43, verifiedContent_); - } - if (authorStats_ != null) { - output.writeMessage(44, getAuthorStats()); - } - for (int i = 0; i < topFansList_.size(); i++) { - output.writeMessage(45, topFansList_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secUid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 46, secUid_); - } - if (userRole_ != 0) { - output.writeInt32(47, userRole_); - } - if (xiguaInfo_ != null) { - output.writeMessage(48, getXiguaInfo()); - } - if (activityReward_ != null) { - output.writeMessage(49, getActivityReward()); - } - if (nobleInfo_ != null) { - output.writeMessage(50, getNobleInfo()); - } - if (brotherhoodInfo_ != null) { - output.writeMessage(51, getBrotherhoodInfo()); - } - if (personalCard_ != null) { - output.writeMessage(52, getPersonalCard()); - } - if (authenticationInfo_ != null) { - output.writeMessage(53, getAuthenticationInfo()); - } - if (authorizationInfo_ != 0) { - output.writeInt32(54, authorizationInfo_); - } - if (adversaryAuthorizationInfo_ != 0) { - output.writeInt32(55, adversaryAuthorizationInfo_); - } - if (poiInfo_ != null) { - output.writeMessage(56, getPoiInfo()); - } - if (mediaBadgeImageListList_ != null) { - output.writeMessage(57, getMediaBadgeImageListList()); - } - if (adversaryUserStatus_ != 0) { - output.writeInt32(58, adversaryUserStatus_); - } - if (userVipInfo_ != null) { - output.writeMessage(59, getUserVipInfo()); - } - if (getCommerceWebcastConfigIdsListList().size() > 0) { - output.writeUInt32NoTag(482); - output.writeUInt32NoTag(commerceWebcastConfigIdsListMemoizedSerializedSize); - } - for (int i = 0; i < commerceWebcastConfigIdsList_.size(); i++) { - output.writeInt64NoTag(commerceWebcastConfigIdsList_.getLong(i)); - } - if (badgeImageListV2List_ != null) { - output.writeMessage(61, getBadgeImageListV2List()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationCity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 63, locationCity_); - } - if (fansGroupInfo_ != null) { - output.writeMessage(64, getFansGroupInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 65, remarkName_); - } - if (mysteryMan_ != 0) { - output.writeInt32(66, mysteryMan_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webRid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 67, webRid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desensitizedNickname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 68, desensitizedNickname_); - } - if (jAccreditInfo_ != null) { - output.writeMessage(69, getJAccreditInfo()); - } - if (subscribe_ != null) { - output.writeMessage(70, getSubscribe()); - } - if (isAnonymous_ != false) { - output.writeBool(71, isAnonymous_); - } - if (consumeDiamondLevel_ != 0) { - output.writeInt32(72, consumeDiamondLevel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webcastUid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 73, webcastUid_); - } - if (profileStyleParams_ != null) { - output.writeMessage(74, getProfileStyleParams()); - } - if (userDressInfo_ != null) { - output.writeMessage(75, getUserDressInfo()); - } - if (allowBeLocated_ != false) { - output.writeBool(1001, allowBeLocated_); - } - if (allowFindByContacts_ != false) { - output.writeBool(1002, allowFindByContacts_); - } - if (allowOthersDownloadVideo_ != false) { - output.writeBool(1003, allowOthersDownloadVideo_); - } - if (allowOthersDownloadWhenSharingVideo_ != false) { - output.writeBool(1004, allowOthersDownloadWhenSharingVideo_); - } - if (allowShareShowProfile_ != false) { - output.writeBool(1005, allowShareShowProfile_); - } - if (allowShowInGossip_ != false) { - output.writeBool(1006, allowShowInGossip_); - } - if (allowShowMyAction_ != false) { - output.writeBool(1007, allowShowMyAction_); - } - if (allowStrangeComment_ != false) { - output.writeBool(1008, allowStrangeComment_); - } - if (allowUnfollowerComment_ != false) { - output.writeBool(1009, allowUnfollowerComment_); - } - if (allowUseLinkmic_ != false) { - output.writeBool(1010, allowUseLinkmic_); - } - if (anchorLevel_ != null) { - output.writeMessage(1011, getAnchorLevel()); - } - if (avatarJpg_ != null) { - output.writeMessage(1012, getAvatarJpg()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bgImgUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1013, bgImgUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthdayDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1014, birthdayDescription_); - } - if (birthdayValid_ != false) { - output.writeBool(1015, birthdayValid_); - } - if (blockStatus_ != 0) { - output.writeInt32(1016, blockStatus_); - } - if (commentRestrict_ != 0) { - output.writeInt32(1017, commentRestrict_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constellation_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1018, constellation_); - } - if (disableIchat_ != 0) { - output.writeInt32(1019, disableIchat_); - } - if (enableIchatImg_ != 0L) { - output.writeInt64(1020, enableIchatImg_); - } - if (exp_ != 0) { - output.writeInt32(1021, exp_); - } - if (fanTicketCount_ != 0L) { - output.writeInt64(1022, fanTicketCount_); - } - if (foldStrangerChat_ != false) { - output.writeBool(1023, foldStrangerChat_); - } - if (followStatus_ != 0L) { - output.writeInt64(1024, followStatus_); - } - if (hotsoonVerified_ != false) { - output.writeBool(1025, hotsoonVerified_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hotsoonVerifiedReason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1026, hotsoonVerifiedReason_); - } - if (ichatRestrictType_ != 0) { - output.writeInt32(1027, ichatRestrictType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idStr_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1028, idStr_); - } - if (isFollower_ != false) { - output.writeBool(1029, isFollower_); - } - if (isFollowing_ != false) { - output.writeBool(1030, isFollowing_); - } - if (needProfileGuide_ != false) { - output.writeBool(1031, needProfileGuide_); - } - if (payScores_ != 0L) { - output.writeInt64(1032, payScores_); - } - if (pushCommentStatus_ != false) { - output.writeBool(1033, pushCommentStatus_); - } - if (pushDigg_ != false) { - output.writeBool(1034, pushDigg_); - } - if (pushFollow_ != false) { - output.writeBool(1035, pushFollow_); - } - if (pushFriendAction_ != false) { - output.writeBool(1036, pushFriendAction_); - } - if (pushIchat_ != false) { - output.writeBool(1037, pushIchat_); - } - if (pushStatus_ != false) { - output.writeBool(1038, pushStatus_); - } - if (pushVideoPost_ != false) { - output.writeBool(1039, pushVideoPost_); - } - if (pushVideoRecommend_ != false) { - output.writeBool(1040, pushVideoRecommend_); - } - if (stats_ != null) { - output.writeMessage(1041, getStats()); - } - if (verifiedMobile_ != false) { - output.writeBool(1042, verifiedMobile_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verifiedReason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1043, verifiedReason_); - } - if (withCarManagementPermission_ != false) { - output.writeBool(1044, withCarManagementPermission_); - } - if (ageRange_ != 0) { - output.writeInt32(1045, ageRange_); - } - if (watchDurationMonth_ != 0L) { - output.writeInt64(1046, watchDurationMonth_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - if (shortId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, shortId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nickname_); - } - if (gender_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, gender_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signature_); - } - if (level_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, level_); - } - if (birthday_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, birthday_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(telephone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, telephone_); - } - if (avatarThumb_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAvatarThumb()); - } - if (avatarMedium_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getAvatarMedium()); - } - if (avatarLarge_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getAvatarLarge()); - } - if (verified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, verified_); - } - if (experience_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, experience_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(city_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, city_); - } - if (status_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, status_); - } - if (createTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(16, createTime_); - } - if (modifyTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(17, modifyTime_); - } - if (secret_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, secret_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(shareQrcodeUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, shareQrcodeUri_); - } - if (incomeSharePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(20, incomeSharePercent_); - } - if (badgeImageListList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getBadgeImageListList()); - } - if (followInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getFollowInfo()); - } - if (payGrade_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getPayGrade()); - } - if (fansClub_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getFansClub()); - } - if (border_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getBorder()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(specialId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, specialId_); - } - if (avatarBorder_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, getAvatarBorder()); - } - if (medal_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getMedal()); - } - for (int i = 0; i < realTimeIconsList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, realTimeIconsList_.get(i)); - } - for (int i = 0; i < newRealTimeIconsList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, newRealTimeIconsList_.get(i)); - } - if (topVipNo_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(31, topVipNo_); - } - if (userAttr_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, getUserAttr()); - } - if (ownRoom_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, getOwnRoom()); - } - if (payScore_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(34, payScore_); - } - if (ticketCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(35, ticketCount_); - } - if (anchorInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, getAnchorInfo()); - } - if (linkMicStats_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(37, linkMicStats_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(38, displayId_); - } - if (withCommercePermission_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(39, withCommercePermission_); - } - if (withFusionShopEntry_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(40, withFusionShopEntry_); - } - if (totalRechargeDiamondCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(41, totalRechargeDiamondCount_); - } - if (webcastAnchorLevel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, getWebcastAnchorLevel()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verifiedContent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(43, verifiedContent_); - } - if (authorStats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, getAuthorStats()); - } - for (int i = 0; i < topFansList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, topFansList_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secUid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(46, secUid_); - } - if (userRole_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(47, userRole_); - } - if (xiguaInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, getXiguaInfo()); - } - if (activityReward_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(49, getActivityReward()); - } - if (nobleInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, getNobleInfo()); - } - if (brotherhoodInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, getBrotherhoodInfo()); - } - if (personalCard_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, getPersonalCard()); - } - if (authenticationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, getAuthenticationInfo()); - } - if (authorizationInfo_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(54, authorizationInfo_); - } - if (adversaryAuthorizationInfo_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(55, adversaryAuthorizationInfo_); - } - if (poiInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(56, getPoiInfo()); - } - if (mediaBadgeImageListList_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(57, getMediaBadgeImageListList()); - } - if (adversaryUserStatus_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(58, adversaryUserStatus_); - } - if (userVipInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(59, getUserVipInfo()); - } - { - int dataSize = 0; - for (int i = 0; i < commerceWebcastConfigIdsList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(commerceWebcastConfigIdsList_.getLong(i)); - } - size += dataSize; - if (!getCommerceWebcastConfigIdsListList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - commerceWebcastConfigIdsListMemoizedSerializedSize = dataSize; - } - if (badgeImageListV2List_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(61, getBadgeImageListV2List()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationCity_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(63, locationCity_); - } - if (fansGroupInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, getFansGroupInfo()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(65, remarkName_); - } - if (mysteryMan_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(66, mysteryMan_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webRid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(67, webRid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(desensitizedNickname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(68, desensitizedNickname_); - } - if (jAccreditInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(69, getJAccreditInfo()); - } - if (subscribe_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(70, getSubscribe()); - } - if (isAnonymous_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(71, isAnonymous_); - } - if (consumeDiamondLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(72, consumeDiamondLevel_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webcastUid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(73, webcastUid_); - } - if (profileStyleParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(74, getProfileStyleParams()); - } - if (userDressInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(75, getUserDressInfo()); - } - if (allowBeLocated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1001, allowBeLocated_); - } - if (allowFindByContacts_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1002, allowFindByContacts_); - } - if (allowOthersDownloadVideo_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1003, allowOthersDownloadVideo_); - } - if (allowOthersDownloadWhenSharingVideo_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1004, allowOthersDownloadWhenSharingVideo_); - } - if (allowShareShowProfile_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1005, allowShareShowProfile_); - } - if (allowShowInGossip_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1006, allowShowInGossip_); - } - if (allowShowMyAction_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1007, allowShowMyAction_); - } - if (allowStrangeComment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1008, allowStrangeComment_); - } - if (allowUnfollowerComment_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1009, allowUnfollowerComment_); - } - if (allowUseLinkmic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1010, allowUseLinkmic_); - } - if (anchorLevel_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1011, getAnchorLevel()); - } - if (avatarJpg_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1012, getAvatarJpg()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bgImgUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1013, bgImgUrl_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(birthdayDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1014, birthdayDescription_); - } - if (birthdayValid_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1015, birthdayValid_); - } - if (blockStatus_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1016, blockStatus_); - } - if (commentRestrict_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1017, commentRestrict_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constellation_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1018, constellation_); - } - if (disableIchat_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1019, disableIchat_); - } - if (enableIchatImg_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1020, enableIchatImg_); - } - if (exp_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1021, exp_); - } - if (fanTicketCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1022, fanTicketCount_); - } - if (foldStrangerChat_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1023, foldStrangerChat_); - } - if (followStatus_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1024, followStatus_); - } - if (hotsoonVerified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1025, hotsoonVerified_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hotsoonVerifiedReason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1026, hotsoonVerifiedReason_); - } - if (ichatRestrictType_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1027, ichatRestrictType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(idStr_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1028, idStr_); - } - if (isFollower_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1029, isFollower_); - } - if (isFollowing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1030, isFollowing_); - } - if (needProfileGuide_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1031, needProfileGuide_); - } - if (payScores_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1032, payScores_); - } - if (pushCommentStatus_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1033, pushCommentStatus_); - } - if (pushDigg_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1034, pushDigg_); - } - if (pushFollow_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1035, pushFollow_); - } - if (pushFriendAction_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1036, pushFriendAction_); - } - if (pushIchat_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1037, pushIchat_); - } - if (pushStatus_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1038, pushStatus_); - } - if (pushVideoPost_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1039, pushVideoPost_); - } - if (pushVideoRecommend_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1040, pushVideoRecommend_); - } - if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1041, getStats()); - } - if (verifiedMobile_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1042, verifiedMobile_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verifiedReason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1043, verifiedReason_); - } - if (withCarManagementPermission_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1044, withCarManagementPermission_); - } - if (ageRange_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1045, ageRange_); - } - if (watchDurationMonth_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1046, watchDurationMonth_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User other = (tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User) obj; - - if (getId() - != other.getId()) return false; - if (getShortId() - != other.getShortId()) return false; - if (!getNickname() - .equals(other.getNickname())) return false; - if (getGender() - != other.getGender()) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (getLevel() - != other.getLevel()) return false; - if (getBirthday() - != other.getBirthday()) return false; - if (!getTelephone() - .equals(other.getTelephone())) return false; - if (hasAvatarThumb() != other.hasAvatarThumb()) return false; - if (hasAvatarThumb()) { - if (!getAvatarThumb() - .equals(other.getAvatarThumb())) return false; - } - if (hasAvatarMedium() != other.hasAvatarMedium()) return false; - if (hasAvatarMedium()) { - if (!getAvatarMedium() - .equals(other.getAvatarMedium())) return false; - } - if (hasAvatarLarge() != other.hasAvatarLarge()) return false; - if (hasAvatarLarge()) { - if (!getAvatarLarge() - .equals(other.getAvatarLarge())) return false; - } - if (getVerified() - != other.getVerified()) return false; - if (getExperience() - != other.getExperience()) return false; - if (!getCity() - .equals(other.getCity())) return false; - if (getStatus() - != other.getStatus()) return false; - if (getCreateTime() - != other.getCreateTime()) return false; - if (getModifyTime() - != other.getModifyTime()) return false; - if (getSecret() - != other.getSecret()) return false; - if (!getShareQrcodeUri() - .equals(other.getShareQrcodeUri())) return false; - if (getIncomeSharePercent() - != other.getIncomeSharePercent()) return false; - if (hasBadgeImageListList() != other.hasBadgeImageListList()) return false; - if (hasBadgeImageListList()) { - if (!getBadgeImageListList() - .equals(other.getBadgeImageListList())) return false; - } - if (hasFollowInfo() != other.hasFollowInfo()) return false; - if (hasFollowInfo()) { - if (!getFollowInfo() - .equals(other.getFollowInfo())) return false; - } - if (hasPayGrade() != other.hasPayGrade()) return false; - if (hasPayGrade()) { - if (!getPayGrade() - .equals(other.getPayGrade())) return false; - } - if (hasFansClub() != other.hasFansClub()) return false; - if (hasFansClub()) { - if (!getFansClub() - .equals(other.getFansClub())) return false; - } - if (hasBorder() != other.hasBorder()) return false; - if (hasBorder()) { - if (!getBorder() - .equals(other.getBorder())) return false; - } - if (!getSpecialId() - .equals(other.getSpecialId())) return false; - if (hasAvatarBorder() != other.hasAvatarBorder()) return false; - if (hasAvatarBorder()) { - if (!getAvatarBorder() - .equals(other.getAvatarBorder())) return false; - } - if (hasMedal() != other.hasMedal()) return false; - if (hasMedal()) { - if (!getMedal() - .equals(other.getMedal())) return false; - } - if (!getRealTimeIconsListList() - .equals(other.getRealTimeIconsListList())) return false; - if (!getNewRealTimeIconsListList() - .equals(other.getNewRealTimeIconsListList())) return false; - if (getTopVipNo() - != other.getTopVipNo()) return false; - if (hasUserAttr() != other.hasUserAttr()) return false; - if (hasUserAttr()) { - if (!getUserAttr() - .equals(other.getUserAttr())) return false; - } - if (hasOwnRoom() != other.hasOwnRoom()) return false; - if (hasOwnRoom()) { - if (!getOwnRoom() - .equals(other.getOwnRoom())) return false; - } - if (getPayScore() - != other.getPayScore()) return false; - if (getTicketCount() - != other.getTicketCount()) return false; - if (hasAnchorInfo() != other.hasAnchorInfo()) return false; - if (hasAnchorInfo()) { - if (!getAnchorInfo() - .equals(other.getAnchorInfo())) return false; - } - if (getLinkMicStats() - != other.getLinkMicStats()) return false; - if (!getDisplayId() - .equals(other.getDisplayId())) return false; - if (getWithCommercePermission() - != other.getWithCommercePermission()) return false; - if (getWithFusionShopEntry() - != other.getWithFusionShopEntry()) return false; - if (getTotalRechargeDiamondCount() - != other.getTotalRechargeDiamondCount()) return false; - if (hasWebcastAnchorLevel() != other.hasWebcastAnchorLevel()) return false; - if (hasWebcastAnchorLevel()) { - if (!getWebcastAnchorLevel() - .equals(other.getWebcastAnchorLevel())) return false; - } - if (!getVerifiedContent() - .equals(other.getVerifiedContent())) return false; - if (hasAuthorStats() != other.hasAuthorStats()) return false; - if (hasAuthorStats()) { - if (!getAuthorStats() - .equals(other.getAuthorStats())) return false; - } - if (!getTopFansListList() - .equals(other.getTopFansListList())) return false; - if (!getSecUid() - .equals(other.getSecUid())) return false; - if (getUserRole() - != other.getUserRole()) return false; - if (hasXiguaInfo() != other.hasXiguaInfo()) return false; - if (hasXiguaInfo()) { - if (!getXiguaInfo() - .equals(other.getXiguaInfo())) return false; - } - if (hasActivityReward() != other.hasActivityReward()) return false; - if (hasActivityReward()) { - if (!getActivityReward() - .equals(other.getActivityReward())) return false; - } - if (hasNobleInfo() != other.hasNobleInfo()) return false; - if (hasNobleInfo()) { - if (!getNobleInfo() - .equals(other.getNobleInfo())) return false; - } - if (hasBrotherhoodInfo() != other.hasBrotherhoodInfo()) return false; - if (hasBrotherhoodInfo()) { - if (!getBrotherhoodInfo() - .equals(other.getBrotherhoodInfo())) return false; - } - if (hasPersonalCard() != other.hasPersonalCard()) return false; - if (hasPersonalCard()) { - if (!getPersonalCard() - .equals(other.getPersonalCard())) return false; - } - if (hasAuthenticationInfo() != other.hasAuthenticationInfo()) return false; - if (hasAuthenticationInfo()) { - if (!getAuthenticationInfo() - .equals(other.getAuthenticationInfo())) return false; - } - if (getAuthorizationInfo() - != other.getAuthorizationInfo()) return false; - if (getAdversaryAuthorizationInfo() - != other.getAdversaryAuthorizationInfo()) return false; - if (hasPoiInfo() != other.hasPoiInfo()) return false; - if (hasPoiInfo()) { - if (!getPoiInfo() - .equals(other.getPoiInfo())) return false; - } - if (hasMediaBadgeImageListList() != other.hasMediaBadgeImageListList()) return false; - if (hasMediaBadgeImageListList()) { - if (!getMediaBadgeImageListList() - .equals(other.getMediaBadgeImageListList())) return false; - } - if (getAdversaryUserStatus() - != other.getAdversaryUserStatus()) return false; - if (hasUserVipInfo() != other.hasUserVipInfo()) return false; - if (hasUserVipInfo()) { - if (!getUserVipInfo() - .equals(other.getUserVipInfo())) return false; - } - if (!getCommerceWebcastConfigIdsListList() - .equals(other.getCommerceWebcastConfigIdsListList())) return false; - if (hasBadgeImageListV2List() != other.hasBadgeImageListV2List()) return false; - if (hasBadgeImageListV2List()) { - if (!getBadgeImageListV2List() - .equals(other.getBadgeImageListV2List())) return false; - } - if (!getLocationCity() - .equals(other.getLocationCity())) return false; - if (hasFansGroupInfo() != other.hasFansGroupInfo()) return false; - if (hasFansGroupInfo()) { - if (!getFansGroupInfo() - .equals(other.getFansGroupInfo())) return false; - } - if (!getRemarkName() - .equals(other.getRemarkName())) return false; - if (getMysteryMan() - != other.getMysteryMan()) return false; - if (!getWebRid() - .equals(other.getWebRid())) return false; - if (!getDesensitizedNickname() - .equals(other.getDesensitizedNickname())) return false; - if (hasJAccreditInfo() != other.hasJAccreditInfo()) return false; - if (hasJAccreditInfo()) { - if (!getJAccreditInfo() - .equals(other.getJAccreditInfo())) return false; - } - if (hasSubscribe() != other.hasSubscribe()) return false; - if (hasSubscribe()) { - if (!getSubscribe() - .equals(other.getSubscribe())) return false; - } - if (getIsAnonymous() - != other.getIsAnonymous()) return false; - if (getConsumeDiamondLevel() - != other.getConsumeDiamondLevel()) return false; - if (!getWebcastUid() - .equals(other.getWebcastUid())) return false; - if (hasProfileStyleParams() != other.hasProfileStyleParams()) return false; - if (hasProfileStyleParams()) { - if (!getProfileStyleParams() - .equals(other.getProfileStyleParams())) return false; - } - if (hasUserDressInfo() != other.hasUserDressInfo()) return false; - if (hasUserDressInfo()) { - if (!getUserDressInfo() - .equals(other.getUserDressInfo())) return false; - } - if (getAllowBeLocated() - != other.getAllowBeLocated()) return false; - if (getAllowFindByContacts() - != other.getAllowFindByContacts()) return false; - if (getAllowOthersDownloadVideo() - != other.getAllowOthersDownloadVideo()) return false; - if (getAllowOthersDownloadWhenSharingVideo() - != other.getAllowOthersDownloadWhenSharingVideo()) return false; - if (getAllowShareShowProfile() - != other.getAllowShareShowProfile()) return false; - if (getAllowShowInGossip() - != other.getAllowShowInGossip()) return false; - if (getAllowShowMyAction() - != other.getAllowShowMyAction()) return false; - if (getAllowStrangeComment() - != other.getAllowStrangeComment()) return false; - if (getAllowUnfollowerComment() - != other.getAllowUnfollowerComment()) return false; - if (getAllowUseLinkmic() - != other.getAllowUseLinkmic()) return false; - if (hasAnchorLevel() != other.hasAnchorLevel()) return false; - if (hasAnchorLevel()) { - if (!getAnchorLevel() - .equals(other.getAnchorLevel())) return false; - } - if (hasAvatarJpg() != other.hasAvatarJpg()) return false; - if (hasAvatarJpg()) { - if (!getAvatarJpg() - .equals(other.getAvatarJpg())) return false; - } - if (!getBgImgUrl() - .equals(other.getBgImgUrl())) return false; - if (!getBirthdayDescription() - .equals(other.getBirthdayDescription())) return false; - if (getBirthdayValid() - != other.getBirthdayValid()) return false; - if (getBlockStatus() - != other.getBlockStatus()) return false; - if (getCommentRestrict() - != other.getCommentRestrict()) return false; - if (!getConstellation() - .equals(other.getConstellation())) return false; - if (getDisableIchat() - != other.getDisableIchat()) return false; - if (getEnableIchatImg() - != other.getEnableIchatImg()) return false; - if (getExp() - != other.getExp()) return false; - if (getFanTicketCount() - != other.getFanTicketCount()) return false; - if (getFoldStrangerChat() - != other.getFoldStrangerChat()) return false; - if (getFollowStatus() - != other.getFollowStatus()) return false; - if (getHotsoonVerified() - != other.getHotsoonVerified()) return false; - if (!getHotsoonVerifiedReason() - .equals(other.getHotsoonVerifiedReason())) return false; - if (getIchatRestrictType() - != other.getIchatRestrictType()) return false; - if (!getIdStr() - .equals(other.getIdStr())) return false; - if (getIsFollower() - != other.getIsFollower()) return false; - if (getIsFollowing() - != other.getIsFollowing()) return false; - if (getNeedProfileGuide() - != other.getNeedProfileGuide()) return false; - if (getPayScores() - != other.getPayScores()) return false; - if (getPushCommentStatus() - != other.getPushCommentStatus()) return false; - if (getPushDigg() - != other.getPushDigg()) return false; - if (getPushFollow() - != other.getPushFollow()) return false; - if (getPushFriendAction() - != other.getPushFriendAction()) return false; - if (getPushIchat() - != other.getPushIchat()) return false; - if (getPushStatus() - != other.getPushStatus()) return false; - if (getPushVideoPost() - != other.getPushVideoPost()) return false; - if (getPushVideoRecommend() - != other.getPushVideoRecommend()) return false; - if (hasStats() != other.hasStats()) return false; - if (hasStats()) { - if (!getStats() - .equals(other.getStats())) return false; - } - if (getVerifiedMobile() - != other.getVerifiedMobile()) return false; - if (!getVerifiedReason() - .equals(other.getVerifiedReason())) return false; - if (getWithCarManagementPermission() - != other.getWithCarManagementPermission()) return false; - if (getAgeRange() - != other.getAgeRange()) return false; - if (getWatchDurationMonth() - != other.getWatchDurationMonth()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); - hash = (37 * hash) + SHORTID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getShortId()); - hash = (37 * hash) + NICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getNickname().hashCode(); - hash = (37 * hash) + GENDER_FIELD_NUMBER; - hash = (53 * hash) + getGender(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + getLevel(); - hash = (37 * hash) + BIRTHDAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBirthday()); - hash = (37 * hash) + TELEPHONE_FIELD_NUMBER; - hash = (53 * hash) + getTelephone().hashCode(); - if (hasAvatarThumb()) { - hash = (37 * hash) + AVATARTHUMB_FIELD_NUMBER; - hash = (53 * hash) + getAvatarThumb().hashCode(); - } - if (hasAvatarMedium()) { - hash = (37 * hash) + AVATARMEDIUM_FIELD_NUMBER; - hash = (53 * hash) + getAvatarMedium().hashCode(); - } - if (hasAvatarLarge()) { - hash = (37 * hash) + AVATARLARGE_FIELD_NUMBER; - hash = (53 * hash) + getAvatarLarge().hashCode(); - } - hash = (37 * hash) + VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVerified()); - hash = (37 * hash) + EXPERIENCE_FIELD_NUMBER; - hash = (53 * hash) + getExperience(); - hash = (37 * hash) + CITY_FIELD_NUMBER; - hash = (53 * hash) + getCity().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus(); - hash = (37 * hash) + CREATETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreateTime()); - hash = (37 * hash) + MODIFYTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getModifyTime()); - hash = (37 * hash) + SECRET_FIELD_NUMBER; - hash = (53 * hash) + getSecret(); - hash = (37 * hash) + SHAREQRCODEURI_FIELD_NUMBER; - hash = (53 * hash) + getShareQrcodeUri().hashCode(); - hash = (37 * hash) + INCOMESHAREPERCENT_FIELD_NUMBER; - hash = (53 * hash) + getIncomeSharePercent(); - if (hasBadgeImageListList()) { - hash = (37 * hash) + BADGEIMAGELISTLIST_FIELD_NUMBER; - hash = (53 * hash) + getBadgeImageListList().hashCode(); - } - if (hasFollowInfo()) { - hash = (37 * hash) + FOLLOWINFO_FIELD_NUMBER; - hash = (53 * hash) + getFollowInfo().hashCode(); - } - if (hasPayGrade()) { - hash = (37 * hash) + PAYGRADE_FIELD_NUMBER; - hash = (53 * hash) + getPayGrade().hashCode(); - } - if (hasFansClub()) { - hash = (37 * hash) + FANSCLUB_FIELD_NUMBER; - hash = (53 * hash) + getFansClub().hashCode(); - } - if (hasBorder()) { - hash = (37 * hash) + BORDER_FIELD_NUMBER; - hash = (53 * hash) + getBorder().hashCode(); - } - hash = (37 * hash) + SPECIALID_FIELD_NUMBER; - hash = (53 * hash) + getSpecialId().hashCode(); - if (hasAvatarBorder()) { - hash = (37 * hash) + AVATARBORDER_FIELD_NUMBER; - hash = (53 * hash) + getAvatarBorder().hashCode(); - } - if (hasMedal()) { - hash = (37 * hash) + MEDAL_FIELD_NUMBER; - hash = (53 * hash) + getMedal().hashCode(); - } - if (getRealTimeIconsListCount() > 0) { - hash = (37 * hash) + REALTIMEICONSLIST_FIELD_NUMBER; - hash = (53 * hash) + getRealTimeIconsListList().hashCode(); - } - if (getNewRealTimeIconsListCount() > 0) { - hash = (37 * hash) + NEWREALTIMEICONSLIST_FIELD_NUMBER; - hash = (53 * hash) + getNewRealTimeIconsListList().hashCode(); - } - hash = (37 * hash) + TOPVIPNO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTopVipNo()); - if (hasUserAttr()) { - hash = (37 * hash) + USERATTR_FIELD_NUMBER; - hash = (53 * hash) + getUserAttr().hashCode(); - } - if (hasOwnRoom()) { - hash = (37 * hash) + OWNROOM_FIELD_NUMBER; - hash = (53 * hash) + getOwnRoom().hashCode(); - } - hash = (37 * hash) + PAYSCORE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPayScore()); - hash = (37 * hash) + TICKETCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTicketCount()); - if (hasAnchorInfo()) { - hash = (37 * hash) + ANCHORINFO_FIELD_NUMBER; - hash = (53 * hash) + getAnchorInfo().hashCode(); - } - hash = (37 * hash) + LINKMICSTATS_FIELD_NUMBER; - hash = (53 * hash) + getLinkMicStats(); - hash = (37 * hash) + DISPLAYID_FIELD_NUMBER; - hash = (53 * hash) + getDisplayId().hashCode(); - hash = (37 * hash) + WITHCOMMERCEPERMISSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWithCommercePermission()); - hash = (37 * hash) + WITHFUSIONSHOPENTRY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWithFusionShopEntry()); - hash = (37 * hash) + TOTALRECHARGEDIAMONDCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTotalRechargeDiamondCount()); - if (hasWebcastAnchorLevel()) { - hash = (37 * hash) + WEBCASTANCHORLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getWebcastAnchorLevel().hashCode(); - } - hash = (37 * hash) + VERIFIEDCONTENT_FIELD_NUMBER; - hash = (53 * hash) + getVerifiedContent().hashCode(); - if (hasAuthorStats()) { - hash = (37 * hash) + AUTHORSTATS_FIELD_NUMBER; - hash = (53 * hash) + getAuthorStats().hashCode(); - } - if (getTopFansListCount() > 0) { - hash = (37 * hash) + TOPFANSLIST_FIELD_NUMBER; - hash = (53 * hash) + getTopFansListList().hashCode(); - } - hash = (37 * hash) + SECUID_FIELD_NUMBER; - hash = (53 * hash) + getSecUid().hashCode(); - hash = (37 * hash) + USERROLE_FIELD_NUMBER; - hash = (53 * hash) + getUserRole(); - if (hasXiguaInfo()) { - hash = (37 * hash) + XIGUAINFO_FIELD_NUMBER; - hash = (53 * hash) + getXiguaInfo().hashCode(); - } - if (hasActivityReward()) { - hash = (37 * hash) + ACTIVITYREWARD_FIELD_NUMBER; - hash = (53 * hash) + getActivityReward().hashCode(); - } - if (hasNobleInfo()) { - hash = (37 * hash) + NOBLEINFO_FIELD_NUMBER; - hash = (53 * hash) + getNobleInfo().hashCode(); - } - if (hasBrotherhoodInfo()) { - hash = (37 * hash) + BROTHERHOODINFO_FIELD_NUMBER; - hash = (53 * hash) + getBrotherhoodInfo().hashCode(); - } - if (hasPersonalCard()) { - hash = (37 * hash) + PERSONALCARD_FIELD_NUMBER; - hash = (53 * hash) + getPersonalCard().hashCode(); - } - if (hasAuthenticationInfo()) { - hash = (37 * hash) + AUTHENTICATIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getAuthenticationInfo().hashCode(); - } - hash = (37 * hash) + AUTHORIZATIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationInfo(); - hash = (37 * hash) + ADVERSARYAUTHORIZATIONINFO_FIELD_NUMBER; - hash = (53 * hash) + getAdversaryAuthorizationInfo(); - if (hasPoiInfo()) { - hash = (37 * hash) + POIINFO_FIELD_NUMBER; - hash = (53 * hash) + getPoiInfo().hashCode(); - } - if (hasMediaBadgeImageListList()) { - hash = (37 * hash) + MEDIABADGEIMAGELISTLIST_FIELD_NUMBER; - hash = (53 * hash) + getMediaBadgeImageListList().hashCode(); - } - hash = (37 * hash) + ADVERSARYUSERSTATUS_FIELD_NUMBER; - hash = (53 * hash) + getAdversaryUserStatus(); - if (hasUserVipInfo()) { - hash = (37 * hash) + USERVIPINFO_FIELD_NUMBER; - hash = (53 * hash) + getUserVipInfo().hashCode(); - } - if (getCommerceWebcastConfigIdsListCount() > 0) { - hash = (37 * hash) + COMMERCEWEBCASTCONFIGIDSLIST_FIELD_NUMBER; - hash = (53 * hash) + getCommerceWebcastConfigIdsListList().hashCode(); - } - if (hasBadgeImageListV2List()) { - hash = (37 * hash) + BADGEIMAGELISTV2LIST_FIELD_NUMBER; - hash = (53 * hash) + getBadgeImageListV2List().hashCode(); - } - hash = (37 * hash) + LOCATIONCITY_FIELD_NUMBER; - hash = (53 * hash) + getLocationCity().hashCode(); - if (hasFansGroupInfo()) { - hash = (37 * hash) + FANSGROUPINFO_FIELD_NUMBER; - hash = (53 * hash) + getFansGroupInfo().hashCode(); - } - hash = (37 * hash) + REMARKNAME_FIELD_NUMBER; - hash = (53 * hash) + getRemarkName().hashCode(); - hash = (37 * hash) + MYSTERYMAN_FIELD_NUMBER; - hash = (53 * hash) + getMysteryMan(); - hash = (37 * hash) + WEBRID_FIELD_NUMBER; - hash = (53 * hash) + getWebRid().hashCode(); - hash = (37 * hash) + DESENSITIZEDNICKNAME_FIELD_NUMBER; - hash = (53 * hash) + getDesensitizedNickname().hashCode(); - if (hasJAccreditInfo()) { - hash = (37 * hash) + JACCREDITINFO_FIELD_NUMBER; - hash = (53 * hash) + getJAccreditInfo().hashCode(); - } - if (hasSubscribe()) { - hash = (37 * hash) + SUBSCRIBE_FIELD_NUMBER; - hash = (53 * hash) + getSubscribe().hashCode(); - } - hash = (37 * hash) + ISANONYMOUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsAnonymous()); - hash = (37 * hash) + CONSUMEDIAMONDLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getConsumeDiamondLevel(); - hash = (37 * hash) + WEBCASTUID_FIELD_NUMBER; - hash = (53 * hash) + getWebcastUid().hashCode(); - if (hasProfileStyleParams()) { - hash = (37 * hash) + PROFILESTYLEPARAMS_FIELD_NUMBER; - hash = (53 * hash) + getProfileStyleParams().hashCode(); - } - if (hasUserDressInfo()) { - hash = (37 * hash) + USERDRESSINFO_FIELD_NUMBER; - hash = (53 * hash) + getUserDressInfo().hashCode(); - } - hash = (37 * hash) + ALLOWBELOCATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowBeLocated()); - hash = (37 * hash) + ALLOWFINDBYCONTACTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowFindByContacts()); - hash = (37 * hash) + ALLOWOTHERSDOWNLOADVIDEO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowOthersDownloadVideo()); - hash = (37 * hash) + ALLOWOTHERSDOWNLOADWHENSHARINGVIDEO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowOthersDownloadWhenSharingVideo()); - hash = (37 * hash) + ALLOWSHARESHOWPROFILE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowShareShowProfile()); - hash = (37 * hash) + ALLOWSHOWINGOSSIP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowShowInGossip()); - hash = (37 * hash) + ALLOWSHOWMYACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowShowMyAction()); - hash = (37 * hash) + ALLOWSTRANGECOMMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowStrangeComment()); - hash = (37 * hash) + ALLOWUNFOLLOWERCOMMENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowUnfollowerComment()); - hash = (37 * hash) + ALLOWUSELINKMIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowUseLinkmic()); - if (hasAnchorLevel()) { - hash = (37 * hash) + ANCHORLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getAnchorLevel().hashCode(); - } - if (hasAvatarJpg()) { - hash = (37 * hash) + AVATARJPG_FIELD_NUMBER; - hash = (53 * hash) + getAvatarJpg().hashCode(); - } - hash = (37 * hash) + BGIMGURL_FIELD_NUMBER; - hash = (53 * hash) + getBgImgUrl().hashCode(); - hash = (37 * hash) + BIRTHDAYDESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getBirthdayDescription().hashCode(); - hash = (37 * hash) + BIRTHDAYVALID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBirthdayValid()); - hash = (37 * hash) + BLOCKSTATUS_FIELD_NUMBER; - hash = (53 * hash) + getBlockStatus(); - hash = (37 * hash) + COMMENTRESTRICT_FIELD_NUMBER; - hash = (53 * hash) + getCommentRestrict(); - hash = (37 * hash) + CONSTELLATION_FIELD_NUMBER; - hash = (53 * hash) + getConstellation().hashCode(); - hash = (37 * hash) + DISABLEICHAT_FIELD_NUMBER; - hash = (53 * hash) + getDisableIchat(); - hash = (37 * hash) + ENABLEICHATIMG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEnableIchatImg()); - hash = (37 * hash) + EXP_FIELD_NUMBER; - hash = (53 * hash) + getExp(); - hash = (37 * hash) + FANTICKETCOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFanTicketCount()); - hash = (37 * hash) + FOLDSTRANGERCHAT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFoldStrangerChat()); - hash = (37 * hash) + FOLLOWSTATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getFollowStatus()); - hash = (37 * hash) + HOTSOONVERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHotsoonVerified()); - hash = (37 * hash) + HOTSOONVERIFIEDREASON_FIELD_NUMBER; - hash = (53 * hash) + getHotsoonVerifiedReason().hashCode(); - hash = (37 * hash) + ICHATRESTRICTTYPE_FIELD_NUMBER; - hash = (53 * hash) + getIchatRestrictType(); - hash = (37 * hash) + IDSTR_FIELD_NUMBER; - hash = (53 * hash) + getIdStr().hashCode(); - hash = (37 * hash) + ISFOLLOWER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFollower()); - hash = (37 * hash) + ISFOLLOWING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFollowing()); - hash = (37 * hash) + NEEDPROFILEGUIDE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNeedProfileGuide()); - hash = (37 * hash) + PAYSCORES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPayScores()); - hash = (37 * hash) + PUSHCOMMENTSTATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushCommentStatus()); - hash = (37 * hash) + PUSHDIGG_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushDigg()); - hash = (37 * hash) + PUSHFOLLOW_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushFollow()); - hash = (37 * hash) + PUSHFRIENDACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushFriendAction()); - hash = (37 * hash) + PUSHICHAT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushIchat()); - hash = (37 * hash) + PUSHSTATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushStatus()); - hash = (37 * hash) + PUSHVIDEOPOST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushVideoPost()); - hash = (37 * hash) + PUSHVIDEORECOMMEND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPushVideoRecommend()); - if (hasStats()) { - hash = (37 * hash) + STATS_FIELD_NUMBER; - hash = (53 * hash) + getStats().hashCode(); - } - hash = (37 * hash) + VERIFIEDMOBILE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVerifiedMobile()); - hash = (37 * hash) + VERIFIEDREASON_FIELD_NUMBER; - hash = (53 * hash) + getVerifiedReason().hashCode(); - hash = (37 * hash) + WITHCARMANAGEMENTPERMISSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWithCarManagementPermission()); - hash = (37 * hash) + AGERANGE_FIELD_NUMBER; - hash = (53 * hash) + getAgeRange(); - hash = (37 * hash) + WATCHDURATIONMONTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWatchDurationMonth()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:User) - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.class, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - bitField2_ = 0; - bitField3_ = 0; - id_ = 0L; - shortId_ = 0L; - nickname_ = ""; - gender_ = 0; - signature_ = ""; - level_ = 0; - birthday_ = 0L; - telephone_ = ""; - avatarThumb_ = null; - if (avatarThumbBuilder_ != null) { - avatarThumbBuilder_.dispose(); - avatarThumbBuilder_ = null; - } - avatarMedium_ = null; - if (avatarMediumBuilder_ != null) { - avatarMediumBuilder_.dispose(); - avatarMediumBuilder_ = null; - } - avatarLarge_ = null; - if (avatarLargeBuilder_ != null) { - avatarLargeBuilder_.dispose(); - avatarLargeBuilder_ = null; - } - verified_ = false; - experience_ = 0; - city_ = ""; - status_ = 0; - createTime_ = 0L; - modifyTime_ = 0L; - secret_ = 0; - shareQrcodeUri_ = ""; - incomeSharePercent_ = 0; - badgeImageListList_ = null; - if (badgeImageListListBuilder_ != null) { - badgeImageListListBuilder_.dispose(); - badgeImageListListBuilder_ = null; - } - followInfo_ = null; - if (followInfoBuilder_ != null) { - followInfoBuilder_.dispose(); - followInfoBuilder_ = null; - } - payGrade_ = null; - if (payGradeBuilder_ != null) { - payGradeBuilder_.dispose(); - payGradeBuilder_ = null; - } - fansClub_ = null; - if (fansClubBuilder_ != null) { - fansClubBuilder_.dispose(); - fansClubBuilder_ = null; - } - border_ = null; - if (borderBuilder_ != null) { - borderBuilder_.dispose(); - borderBuilder_ = null; - } - specialId_ = ""; - avatarBorder_ = null; - if (avatarBorderBuilder_ != null) { - avatarBorderBuilder_.dispose(); - avatarBorderBuilder_ = null; - } - medal_ = null; - if (medalBuilder_ != null) { - medalBuilder_.dispose(); - medalBuilder_ = null; - } - if (realTimeIconsListBuilder_ == null) { - realTimeIconsList_ = java.util.Collections.emptyList(); - } else { - realTimeIconsList_ = null; - realTimeIconsListBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x10000000); - if (newRealTimeIconsListBuilder_ == null) { - newRealTimeIconsList_ = java.util.Collections.emptyList(); - } else { - newRealTimeIconsList_ = null; - newRealTimeIconsListBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x20000000); - topVipNo_ = 0L; - userAttr_ = null; - if (userAttrBuilder_ != null) { - userAttrBuilder_.dispose(); - userAttrBuilder_ = null; - } - ownRoom_ = null; - if (ownRoomBuilder_ != null) { - ownRoomBuilder_.dispose(); - ownRoomBuilder_ = null; - } - payScore_ = 0L; - ticketCount_ = 0L; - anchorInfo_ = null; - if (anchorInfoBuilder_ != null) { - anchorInfoBuilder_.dispose(); - anchorInfoBuilder_ = null; - } - linkMicStats_ = 0; - displayId_ = ""; - withCommercePermission_ = false; - withFusionShopEntry_ = false; - totalRechargeDiamondCount_ = 0L; - webcastAnchorLevel_ = null; - if (webcastAnchorLevelBuilder_ != null) { - webcastAnchorLevelBuilder_.dispose(); - webcastAnchorLevelBuilder_ = null; - } - verifiedContent_ = ""; - authorStats_ = null; - if (authorStatsBuilder_ != null) { - authorStatsBuilder_.dispose(); - authorStatsBuilder_ = null; - } - if (topFansListBuilder_ == null) { - topFansList_ = java.util.Collections.emptyList(); - } else { - topFansList_ = null; - topFansListBuilder_.clear(); - } - bitField1_ = (bitField1_ & ~0x00001000); - secUid_ = ""; - userRole_ = 0; - xiguaInfo_ = null; - if (xiguaInfoBuilder_ != null) { - xiguaInfoBuilder_.dispose(); - xiguaInfoBuilder_ = null; - } - activityReward_ = null; - if (activityRewardBuilder_ != null) { - activityRewardBuilder_.dispose(); - activityRewardBuilder_ = null; - } - nobleInfo_ = null; - if (nobleInfoBuilder_ != null) { - nobleInfoBuilder_.dispose(); - nobleInfoBuilder_ = null; - } - brotherhoodInfo_ = null; - if (brotherhoodInfoBuilder_ != null) { - brotherhoodInfoBuilder_.dispose(); - brotherhoodInfoBuilder_ = null; - } - personalCard_ = null; - if (personalCardBuilder_ != null) { - personalCardBuilder_.dispose(); - personalCardBuilder_ = null; - } - authenticationInfo_ = null; - if (authenticationInfoBuilder_ != null) { - authenticationInfoBuilder_.dispose(); - authenticationInfoBuilder_ = null; - } - authorizationInfo_ = 0; - adversaryAuthorizationInfo_ = 0; - poiInfo_ = null; - if (poiInfoBuilder_ != null) { - poiInfoBuilder_.dispose(); - poiInfoBuilder_ = null; - } - mediaBadgeImageListList_ = null; - if (mediaBadgeImageListListBuilder_ != null) { - mediaBadgeImageListListBuilder_.dispose(); - mediaBadgeImageListListBuilder_ = null; - } - adversaryUserStatus_ = 0; - userVipInfo_ = null; - if (userVipInfoBuilder_ != null) { - userVipInfoBuilder_.dispose(); - userVipInfoBuilder_ = null; - } - commerceWebcastConfigIdsList_ = emptyLongList(); - badgeImageListV2List_ = null; - if (badgeImageListV2ListBuilder_ != null) { - badgeImageListV2ListBuilder_.dispose(); - badgeImageListV2ListBuilder_ = null; - } - locationCity_ = ""; - fansGroupInfo_ = null; - if (fansGroupInfoBuilder_ != null) { - fansGroupInfoBuilder_.dispose(); - fansGroupInfoBuilder_ = null; - } - remarkName_ = ""; - mysteryMan_ = 0; - webRid_ = ""; - desensitizedNickname_ = ""; - jAccreditInfo_ = null; - if (jAccreditInfoBuilder_ != null) { - jAccreditInfoBuilder_.dispose(); - jAccreditInfoBuilder_ = null; - } - subscribe_ = null; - if (subscribeBuilder_ != null) { - subscribeBuilder_.dispose(); - subscribeBuilder_ = null; - } - isAnonymous_ = false; - consumeDiamondLevel_ = 0; - webcastUid_ = ""; - profileStyleParams_ = null; - if (profileStyleParamsBuilder_ != null) { - profileStyleParamsBuilder_.dispose(); - profileStyleParamsBuilder_ = null; - } - userDressInfo_ = null; - if (userDressInfoBuilder_ != null) { - userDressInfoBuilder_.dispose(); - userDressInfoBuilder_ = null; - } - allowBeLocated_ = false; - allowFindByContacts_ = false; - allowOthersDownloadVideo_ = false; - allowOthersDownloadWhenSharingVideo_ = false; - allowShareShowProfile_ = false; - allowShowInGossip_ = false; - allowShowMyAction_ = false; - allowStrangeComment_ = false; - allowUnfollowerComment_ = false; - allowUseLinkmic_ = false; - anchorLevel_ = null; - if (anchorLevelBuilder_ != null) { - anchorLevelBuilder_.dispose(); - anchorLevelBuilder_ = null; - } - avatarJpg_ = null; - if (avatarJpgBuilder_ != null) { - avatarJpgBuilder_.dispose(); - avatarJpgBuilder_ = null; - } - bgImgUrl_ = ""; - birthdayDescription_ = ""; - birthdayValid_ = false; - blockStatus_ = 0; - commentRestrict_ = 0; - constellation_ = ""; - disableIchat_ = 0; - enableIchatImg_ = 0L; - exp_ = 0; - fanTicketCount_ = 0L; - foldStrangerChat_ = false; - followStatus_ = 0L; - hotsoonVerified_ = false; - hotsoonVerifiedReason_ = ""; - ichatRestrictType_ = 0; - idStr_ = ""; - isFollower_ = false; - isFollowing_ = false; - needProfileGuide_ = false; - payScores_ = 0L; - pushCommentStatus_ = false; - pushDigg_ = false; - pushFollow_ = false; - pushFriendAction_ = false; - pushIchat_ = false; - pushStatus_ = false; - pushVideoPost_ = false; - pushVideoRecommend_ = false; - stats_ = null; - if (statsBuilder_ != null) { - statsBuilder_.dispose(); - statsBuilder_ = null; - } - verifiedMobile_ = false; - verifiedReason_ = ""; - withCarManagementPermission_ = false; - ageRange_ = 0; - watchDurationMonth_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.internal_static_User_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User build() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User buildPartial() { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - if (bitField1_ != 0) { buildPartial1(result); } - if (bitField2_ != 0) { buildPartial2(result); } - if (bitField3_ != 0) { buildPartial3(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result) { - if (realTimeIconsListBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0)) { - realTimeIconsList_ = java.util.Collections.unmodifiableList(realTimeIconsList_); - bitField0_ = (bitField0_ & ~0x10000000); - } - result.realTimeIconsList_ = realTimeIconsList_; - } else { - result.realTimeIconsList_ = realTimeIconsListBuilder_.build(); - } - if (newRealTimeIconsListBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0)) { - newRealTimeIconsList_ = java.util.Collections.unmodifiableList(newRealTimeIconsList_); - bitField0_ = (bitField0_ & ~0x20000000); - } - result.newRealTimeIconsList_ = newRealTimeIconsList_; - } else { - result.newRealTimeIconsList_ = newRealTimeIconsListBuilder_.build(); - } - if (topFansListBuilder_ == null) { - if (((bitField1_ & 0x00001000) != 0)) { - topFansList_ = java.util.Collections.unmodifiableList(topFansList_); - bitField1_ = (bitField1_ & ~0x00001000); - } - result.topFansList_ = topFansList_; - } else { - result.topFansList_ = topFansListBuilder_.build(); - } - if (((bitField1_ & 0x08000000) != 0)) { - commerceWebcastConfigIdsList_.makeImmutable(); - bitField1_ = (bitField1_ & ~0x08000000); - } - result.commerceWebcastConfigIdsList_ = commerceWebcastConfigIdsList_; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.shortId_ = shortId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.nickname_ = nickname_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.gender_ = gender_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.signature_ = signature_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.level_ = level_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.birthday_ = birthday_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.telephone_ = telephone_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.avatarThumb_ = avatarThumbBuilder_ == null - ? avatarThumb_ - : avatarThumbBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.avatarMedium_ = avatarMediumBuilder_ == null - ? avatarMedium_ - : avatarMediumBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.avatarLarge_ = avatarLargeBuilder_ == null - ? avatarLarge_ - : avatarLargeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.verified_ = verified_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.experience_ = experience_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.city_ = city_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.status_ = status_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.createTime_ = createTime_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.modifyTime_ = modifyTime_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.secret_ = secret_; - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.shareQrcodeUri_ = shareQrcodeUri_; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.incomeSharePercent_ = incomeSharePercent_; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.badgeImageListList_ = badgeImageListListBuilder_ == null - ? badgeImageListList_ - : badgeImageListListBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.followInfo_ = followInfoBuilder_ == null - ? followInfo_ - : followInfoBuilder_.build(); - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.payGrade_ = payGradeBuilder_ == null - ? payGrade_ - : payGradeBuilder_.build(); - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.fansClub_ = fansClubBuilder_ == null - ? fansClub_ - : fansClubBuilder_.build(); - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.border_ = borderBuilder_ == null - ? border_ - : borderBuilder_.build(); - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.specialId_ = specialId_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.avatarBorder_ = avatarBorderBuilder_ == null - ? avatarBorder_ - : avatarBorderBuilder_.build(); - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.medal_ = medalBuilder_ == null - ? medal_ - : medalBuilder_.build(); - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.topVipNo_ = topVipNo_; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.userAttr_ = userAttrBuilder_ == null - ? userAttr_ - : userAttrBuilder_.build(); - } - } - - private void buildPartial1(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result) { - int from_bitField1_ = bitField1_; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.ownRoom_ = ownRoomBuilder_ == null - ? ownRoom_ - : ownRoomBuilder_.build(); - } - if (((from_bitField1_ & 0x00000002) != 0)) { - result.payScore_ = payScore_; - } - if (((from_bitField1_ & 0x00000004) != 0)) { - result.ticketCount_ = ticketCount_; - } - if (((from_bitField1_ & 0x00000008) != 0)) { - result.anchorInfo_ = anchorInfoBuilder_ == null - ? anchorInfo_ - : anchorInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x00000010) != 0)) { - result.linkMicStats_ = linkMicStats_; - } - if (((from_bitField1_ & 0x00000020) != 0)) { - result.displayId_ = displayId_; - } - if (((from_bitField1_ & 0x00000040) != 0)) { - result.withCommercePermission_ = withCommercePermission_; - } - if (((from_bitField1_ & 0x00000080) != 0)) { - result.withFusionShopEntry_ = withFusionShopEntry_; - } - if (((from_bitField1_ & 0x00000100) != 0)) { - result.totalRechargeDiamondCount_ = totalRechargeDiamondCount_; - } - if (((from_bitField1_ & 0x00000200) != 0)) { - result.webcastAnchorLevel_ = webcastAnchorLevelBuilder_ == null - ? webcastAnchorLevel_ - : webcastAnchorLevelBuilder_.build(); - } - if (((from_bitField1_ & 0x00000400) != 0)) { - result.verifiedContent_ = verifiedContent_; - } - if (((from_bitField1_ & 0x00000800) != 0)) { - result.authorStats_ = authorStatsBuilder_ == null - ? authorStats_ - : authorStatsBuilder_.build(); - } - if (((from_bitField1_ & 0x00002000) != 0)) { - result.secUid_ = secUid_; - } - if (((from_bitField1_ & 0x00004000) != 0)) { - result.userRole_ = userRole_; - } - if (((from_bitField1_ & 0x00008000) != 0)) { - result.xiguaInfo_ = xiguaInfoBuilder_ == null - ? xiguaInfo_ - : xiguaInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x00010000) != 0)) { - result.activityReward_ = activityRewardBuilder_ == null - ? activityReward_ - : activityRewardBuilder_.build(); - } - if (((from_bitField1_ & 0x00020000) != 0)) { - result.nobleInfo_ = nobleInfoBuilder_ == null - ? nobleInfo_ - : nobleInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x00040000) != 0)) { - result.brotherhoodInfo_ = brotherhoodInfoBuilder_ == null - ? brotherhoodInfo_ - : brotherhoodInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x00080000) != 0)) { - result.personalCard_ = personalCardBuilder_ == null - ? personalCard_ - : personalCardBuilder_.build(); - } - if (((from_bitField1_ & 0x00100000) != 0)) { - result.authenticationInfo_ = authenticationInfoBuilder_ == null - ? authenticationInfo_ - : authenticationInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x00200000) != 0)) { - result.authorizationInfo_ = authorizationInfo_; - } - if (((from_bitField1_ & 0x00400000) != 0)) { - result.adversaryAuthorizationInfo_ = adversaryAuthorizationInfo_; - } - if (((from_bitField1_ & 0x00800000) != 0)) { - result.poiInfo_ = poiInfoBuilder_ == null - ? poiInfo_ - : poiInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x01000000) != 0)) { - result.mediaBadgeImageListList_ = mediaBadgeImageListListBuilder_ == null - ? mediaBadgeImageListList_ - : mediaBadgeImageListListBuilder_.build(); - } - if (((from_bitField1_ & 0x02000000) != 0)) { - result.adversaryUserStatus_ = adversaryUserStatus_; - } - if (((from_bitField1_ & 0x04000000) != 0)) { - result.userVipInfo_ = userVipInfoBuilder_ == null - ? userVipInfo_ - : userVipInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x10000000) != 0)) { - result.badgeImageListV2List_ = badgeImageListV2ListBuilder_ == null - ? badgeImageListV2List_ - : badgeImageListV2ListBuilder_.build(); - } - if (((from_bitField1_ & 0x20000000) != 0)) { - result.locationCity_ = locationCity_; - } - if (((from_bitField1_ & 0x40000000) != 0)) { - result.fansGroupInfo_ = fansGroupInfoBuilder_ == null - ? fansGroupInfo_ - : fansGroupInfoBuilder_.build(); - } - if (((from_bitField1_ & 0x80000000) != 0)) { - result.remarkName_ = remarkName_; - } - } - - private void buildPartial2(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result) { - int from_bitField2_ = bitField2_; - if (((from_bitField2_ & 0x00000001) != 0)) { - result.mysteryMan_ = mysteryMan_; - } - if (((from_bitField2_ & 0x00000002) != 0)) { - result.webRid_ = webRid_; - } - if (((from_bitField2_ & 0x00000004) != 0)) { - result.desensitizedNickname_ = desensitizedNickname_; - } - if (((from_bitField2_ & 0x00000008) != 0)) { - result.jAccreditInfo_ = jAccreditInfoBuilder_ == null - ? jAccreditInfo_ - : jAccreditInfoBuilder_.build(); - } - if (((from_bitField2_ & 0x00000010) != 0)) { - result.subscribe_ = subscribeBuilder_ == null - ? subscribe_ - : subscribeBuilder_.build(); - } - if (((from_bitField2_ & 0x00000020) != 0)) { - result.isAnonymous_ = isAnonymous_; - } - if (((from_bitField2_ & 0x00000040) != 0)) { - result.consumeDiamondLevel_ = consumeDiamondLevel_; - } - if (((from_bitField2_ & 0x00000080) != 0)) { - result.webcastUid_ = webcastUid_; - } - if (((from_bitField2_ & 0x00000100) != 0)) { - result.profileStyleParams_ = profileStyleParamsBuilder_ == null - ? profileStyleParams_ - : profileStyleParamsBuilder_.build(); - } - if (((from_bitField2_ & 0x00000200) != 0)) { - result.userDressInfo_ = userDressInfoBuilder_ == null - ? userDressInfo_ - : userDressInfoBuilder_.build(); - } - if (((from_bitField2_ & 0x00000400) != 0)) { - result.allowBeLocated_ = allowBeLocated_; - } - if (((from_bitField2_ & 0x00000800) != 0)) { - result.allowFindByContacts_ = allowFindByContacts_; - } - if (((from_bitField2_ & 0x00001000) != 0)) { - result.allowOthersDownloadVideo_ = allowOthersDownloadVideo_; - } - if (((from_bitField2_ & 0x00002000) != 0)) { - result.allowOthersDownloadWhenSharingVideo_ = allowOthersDownloadWhenSharingVideo_; - } - if (((from_bitField2_ & 0x00004000) != 0)) { - result.allowShareShowProfile_ = allowShareShowProfile_; - } - if (((from_bitField2_ & 0x00008000) != 0)) { - result.allowShowInGossip_ = allowShowInGossip_; - } - if (((from_bitField2_ & 0x00010000) != 0)) { - result.allowShowMyAction_ = allowShowMyAction_; - } - if (((from_bitField2_ & 0x00020000) != 0)) { - result.allowStrangeComment_ = allowStrangeComment_; - } - if (((from_bitField2_ & 0x00040000) != 0)) { - result.allowUnfollowerComment_ = allowUnfollowerComment_; - } - if (((from_bitField2_ & 0x00080000) != 0)) { - result.allowUseLinkmic_ = allowUseLinkmic_; - } - if (((from_bitField2_ & 0x00100000) != 0)) { - result.anchorLevel_ = anchorLevelBuilder_ == null - ? anchorLevel_ - : anchorLevelBuilder_.build(); - } - if (((from_bitField2_ & 0x00200000) != 0)) { - result.avatarJpg_ = avatarJpgBuilder_ == null - ? avatarJpg_ - : avatarJpgBuilder_.build(); - } - if (((from_bitField2_ & 0x00400000) != 0)) { - result.bgImgUrl_ = bgImgUrl_; - } - if (((from_bitField2_ & 0x00800000) != 0)) { - result.birthdayDescription_ = birthdayDescription_; - } - if (((from_bitField2_ & 0x01000000) != 0)) { - result.birthdayValid_ = birthdayValid_; - } - if (((from_bitField2_ & 0x02000000) != 0)) { - result.blockStatus_ = blockStatus_; - } - if (((from_bitField2_ & 0x04000000) != 0)) { - result.commentRestrict_ = commentRestrict_; - } - if (((from_bitField2_ & 0x08000000) != 0)) { - result.constellation_ = constellation_; - } - if (((from_bitField2_ & 0x10000000) != 0)) { - result.disableIchat_ = disableIchat_; - } - if (((from_bitField2_ & 0x20000000) != 0)) { - result.enableIchatImg_ = enableIchatImg_; - } - if (((from_bitField2_ & 0x40000000) != 0)) { - result.exp_ = exp_; - } - if (((from_bitField2_ & 0x80000000) != 0)) { - result.fanTicketCount_ = fanTicketCount_; - } - } - - private void buildPartial3(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User result) { - int from_bitField3_ = bitField3_; - if (((from_bitField3_ & 0x00000001) != 0)) { - result.foldStrangerChat_ = foldStrangerChat_; - } - if (((from_bitField3_ & 0x00000002) != 0)) { - result.followStatus_ = followStatus_; - } - if (((from_bitField3_ & 0x00000004) != 0)) { - result.hotsoonVerified_ = hotsoonVerified_; - } - if (((from_bitField3_ & 0x00000008) != 0)) { - result.hotsoonVerifiedReason_ = hotsoonVerifiedReason_; - } - if (((from_bitField3_ & 0x00000010) != 0)) { - result.ichatRestrictType_ = ichatRestrictType_; - } - if (((from_bitField3_ & 0x00000020) != 0)) { - result.idStr_ = idStr_; - } - if (((from_bitField3_ & 0x00000040) != 0)) { - result.isFollower_ = isFollower_; - } - if (((from_bitField3_ & 0x00000080) != 0)) { - result.isFollowing_ = isFollowing_; - } - if (((from_bitField3_ & 0x00000100) != 0)) { - result.needProfileGuide_ = needProfileGuide_; - } - if (((from_bitField3_ & 0x00000200) != 0)) { - result.payScores_ = payScores_; - } - if (((from_bitField3_ & 0x00000400) != 0)) { - result.pushCommentStatus_ = pushCommentStatus_; - } - if (((from_bitField3_ & 0x00000800) != 0)) { - result.pushDigg_ = pushDigg_; - } - if (((from_bitField3_ & 0x00001000) != 0)) { - result.pushFollow_ = pushFollow_; - } - if (((from_bitField3_ & 0x00002000) != 0)) { - result.pushFriendAction_ = pushFriendAction_; - } - if (((from_bitField3_ & 0x00004000) != 0)) { - result.pushIchat_ = pushIchat_; - } - if (((from_bitField3_ & 0x00008000) != 0)) { - result.pushStatus_ = pushStatus_; - } - if (((from_bitField3_ & 0x00010000) != 0)) { - result.pushVideoPost_ = pushVideoPost_; - } - if (((from_bitField3_ & 0x00020000) != 0)) { - result.pushVideoRecommend_ = pushVideoRecommend_; - } - if (((from_bitField3_ & 0x00040000) != 0)) { - result.stats_ = statsBuilder_ == null - ? stats_ - : statsBuilder_.build(); - } - if (((from_bitField3_ & 0x00080000) != 0)) { - result.verifiedMobile_ = verifiedMobile_; - } - if (((from_bitField3_ & 0x00100000) != 0)) { - result.verifiedReason_ = verifiedReason_; - } - if (((from_bitField3_ & 0x00200000) != 0)) { - result.withCarManagementPermission_ = withCarManagementPermission_; - } - if (((from_bitField3_ & 0x00400000) != 0)) { - result.ageRange_ = ageRange_; - } - if (((from_bitField3_ & 0x00800000) != 0)) { - result.watchDurationMonth_ = watchDurationMonth_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User) { - return mergeFrom((tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User other) { - if (other == tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()) return this; - if (other.getId() != 0L) { - setId(other.getId()); - } - if (other.getShortId() != 0L) { - setShortId(other.getShortId()); - } - if (!other.getNickname().isEmpty()) { - nickname_ = other.nickname_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getGender() != 0) { - setGender(other.getGender()); - } - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getLevel() != 0) { - setLevel(other.getLevel()); - } - if (other.getBirthday() != 0L) { - setBirthday(other.getBirthday()); - } - if (!other.getTelephone().isEmpty()) { - telephone_ = other.telephone_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (other.hasAvatarThumb()) { - mergeAvatarThumb(other.getAvatarThumb()); - } - if (other.hasAvatarMedium()) { - mergeAvatarMedium(other.getAvatarMedium()); - } - if (other.hasAvatarLarge()) { - mergeAvatarLarge(other.getAvatarLarge()); - } - if (other.getVerified() != false) { - setVerified(other.getVerified()); - } - if (other.getExperience() != 0) { - setExperience(other.getExperience()); - } - if (!other.getCity().isEmpty()) { - city_ = other.city_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (other.getStatus() != 0) { - setStatus(other.getStatus()); - } - if (other.getCreateTime() != 0L) { - setCreateTime(other.getCreateTime()); - } - if (other.getModifyTime() != 0L) { - setModifyTime(other.getModifyTime()); - } - if (other.getSecret() != 0) { - setSecret(other.getSecret()); - } - if (!other.getShareQrcodeUri().isEmpty()) { - shareQrcodeUri_ = other.shareQrcodeUri_; - bitField0_ |= 0x00040000; - onChanged(); - } - if (other.getIncomeSharePercent() != 0) { - setIncomeSharePercent(other.getIncomeSharePercent()); - } - if (other.hasBadgeImageListList()) { - mergeBadgeImageListList(other.getBadgeImageListList()); - } - if (other.hasFollowInfo()) { - mergeFollowInfo(other.getFollowInfo()); - } - if (other.hasPayGrade()) { - mergePayGrade(other.getPayGrade()); - } - if (other.hasFansClub()) { - mergeFansClub(other.getFansClub()); - } - if (other.hasBorder()) { - mergeBorder(other.getBorder()); - } - if (!other.getSpecialId().isEmpty()) { - specialId_ = other.specialId_; - bitField0_ |= 0x02000000; - onChanged(); - } - if (other.hasAvatarBorder()) { - mergeAvatarBorder(other.getAvatarBorder()); - } - if (other.hasMedal()) { - mergeMedal(other.getMedal()); - } - if (realTimeIconsListBuilder_ == null) { - if (!other.realTimeIconsList_.isEmpty()) { - if (realTimeIconsList_.isEmpty()) { - realTimeIconsList_ = other.realTimeIconsList_; - bitField0_ = (bitField0_ & ~0x10000000); - } else { - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.addAll(other.realTimeIconsList_); - } - onChanged(); - } - } else { - if (!other.realTimeIconsList_.isEmpty()) { - if (realTimeIconsListBuilder_.isEmpty()) { - realTimeIconsListBuilder_.dispose(); - realTimeIconsListBuilder_ = null; - realTimeIconsList_ = other.realTimeIconsList_; - bitField0_ = (bitField0_ & ~0x10000000); - realTimeIconsListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRealTimeIconsListFieldBuilder() : null; - } else { - realTimeIconsListBuilder_.addAllMessages(other.realTimeIconsList_); - } - } - } - if (newRealTimeIconsListBuilder_ == null) { - if (!other.newRealTimeIconsList_.isEmpty()) { - if (newRealTimeIconsList_.isEmpty()) { - newRealTimeIconsList_ = other.newRealTimeIconsList_; - bitField0_ = (bitField0_ & ~0x20000000); - } else { - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.addAll(other.newRealTimeIconsList_); - } - onChanged(); - } - } else { - if (!other.newRealTimeIconsList_.isEmpty()) { - if (newRealTimeIconsListBuilder_.isEmpty()) { - newRealTimeIconsListBuilder_.dispose(); - newRealTimeIconsListBuilder_ = null; - newRealTimeIconsList_ = other.newRealTimeIconsList_; - bitField0_ = (bitField0_ & ~0x20000000); - newRealTimeIconsListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNewRealTimeIconsListFieldBuilder() : null; - } else { - newRealTimeIconsListBuilder_.addAllMessages(other.newRealTimeIconsList_); - } - } - } - if (other.getTopVipNo() != 0L) { - setTopVipNo(other.getTopVipNo()); - } - if (other.hasUserAttr()) { - mergeUserAttr(other.getUserAttr()); - } - if (other.hasOwnRoom()) { - mergeOwnRoom(other.getOwnRoom()); - } - if (other.getPayScore() != 0L) { - setPayScore(other.getPayScore()); - } - if (other.getTicketCount() != 0L) { - setTicketCount(other.getTicketCount()); - } - if (other.hasAnchorInfo()) { - mergeAnchorInfo(other.getAnchorInfo()); - } - if (other.getLinkMicStats() != 0) { - setLinkMicStats(other.getLinkMicStats()); - } - if (!other.getDisplayId().isEmpty()) { - displayId_ = other.displayId_; - bitField1_ |= 0x00000020; - onChanged(); - } - if (other.getWithCommercePermission() != false) { - setWithCommercePermission(other.getWithCommercePermission()); - } - if (other.getWithFusionShopEntry() != false) { - setWithFusionShopEntry(other.getWithFusionShopEntry()); - } - if (other.getTotalRechargeDiamondCount() != 0L) { - setTotalRechargeDiamondCount(other.getTotalRechargeDiamondCount()); - } - if (other.hasWebcastAnchorLevel()) { - mergeWebcastAnchorLevel(other.getWebcastAnchorLevel()); - } - if (!other.getVerifiedContent().isEmpty()) { - verifiedContent_ = other.verifiedContent_; - bitField1_ |= 0x00000400; - onChanged(); - } - if (other.hasAuthorStats()) { - mergeAuthorStats(other.getAuthorStats()); - } - if (topFansListBuilder_ == null) { - if (!other.topFansList_.isEmpty()) { - if (topFansList_.isEmpty()) { - topFansList_ = other.topFansList_; - bitField1_ = (bitField1_ & ~0x00001000); - } else { - ensureTopFansListIsMutable(); - topFansList_.addAll(other.topFansList_); - } - onChanged(); - } - } else { - if (!other.topFansList_.isEmpty()) { - if (topFansListBuilder_.isEmpty()) { - topFansListBuilder_.dispose(); - topFansListBuilder_ = null; - topFansList_ = other.topFansList_; - bitField1_ = (bitField1_ & ~0x00001000); - topFansListBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTopFansListFieldBuilder() : null; - } else { - topFansListBuilder_.addAllMessages(other.topFansList_); - } - } - } - if (!other.getSecUid().isEmpty()) { - secUid_ = other.secUid_; - bitField1_ |= 0x00002000; - onChanged(); - } - if (other.getUserRole() != 0) { - setUserRole(other.getUserRole()); - } - if (other.hasXiguaInfo()) { - mergeXiguaInfo(other.getXiguaInfo()); - } - if (other.hasActivityReward()) { - mergeActivityReward(other.getActivityReward()); - } - if (other.hasNobleInfo()) { - mergeNobleInfo(other.getNobleInfo()); - } - if (other.hasBrotherhoodInfo()) { - mergeBrotherhoodInfo(other.getBrotherhoodInfo()); - } - if (other.hasPersonalCard()) { - mergePersonalCard(other.getPersonalCard()); - } - if (other.hasAuthenticationInfo()) { - mergeAuthenticationInfo(other.getAuthenticationInfo()); - } - if (other.getAuthorizationInfo() != 0) { - setAuthorizationInfo(other.getAuthorizationInfo()); - } - if (other.getAdversaryAuthorizationInfo() != 0) { - setAdversaryAuthorizationInfo(other.getAdversaryAuthorizationInfo()); - } - if (other.hasPoiInfo()) { - mergePoiInfo(other.getPoiInfo()); - } - if (other.hasMediaBadgeImageListList()) { - mergeMediaBadgeImageListList(other.getMediaBadgeImageListList()); - } - if (other.getAdversaryUserStatus() != 0) { - setAdversaryUserStatus(other.getAdversaryUserStatus()); - } - if (other.hasUserVipInfo()) { - mergeUserVipInfo(other.getUserVipInfo()); - } - if (!other.commerceWebcastConfigIdsList_.isEmpty()) { - if (commerceWebcastConfigIdsList_.isEmpty()) { - commerceWebcastConfigIdsList_ = other.commerceWebcastConfigIdsList_; - bitField1_ = (bitField1_ & ~0x08000000); - } else { - ensureCommerceWebcastConfigIdsListIsMutable(); - commerceWebcastConfigIdsList_.addAll(other.commerceWebcastConfigIdsList_); - } - onChanged(); - } - if (other.hasBadgeImageListV2List()) { - mergeBadgeImageListV2List(other.getBadgeImageListV2List()); - } - if (!other.getLocationCity().isEmpty()) { - locationCity_ = other.locationCity_; - bitField1_ |= 0x20000000; - onChanged(); - } - if (other.hasFansGroupInfo()) { - mergeFansGroupInfo(other.getFansGroupInfo()); - } - if (!other.getRemarkName().isEmpty()) { - remarkName_ = other.remarkName_; - bitField1_ |= 0x80000000; - onChanged(); - } - if (other.getMysteryMan() != 0) { - setMysteryMan(other.getMysteryMan()); - } - if (!other.getWebRid().isEmpty()) { - webRid_ = other.webRid_; - bitField2_ |= 0x00000002; - onChanged(); - } - if (!other.getDesensitizedNickname().isEmpty()) { - desensitizedNickname_ = other.desensitizedNickname_; - bitField2_ |= 0x00000004; - onChanged(); - } - if (other.hasJAccreditInfo()) { - mergeJAccreditInfo(other.getJAccreditInfo()); - } - if (other.hasSubscribe()) { - mergeSubscribe(other.getSubscribe()); - } - if (other.getIsAnonymous() != false) { - setIsAnonymous(other.getIsAnonymous()); - } - if (other.getConsumeDiamondLevel() != 0) { - setConsumeDiamondLevel(other.getConsumeDiamondLevel()); - } - if (!other.getWebcastUid().isEmpty()) { - webcastUid_ = other.webcastUid_; - bitField2_ |= 0x00000080; - onChanged(); - } - if (other.hasProfileStyleParams()) { - mergeProfileStyleParams(other.getProfileStyleParams()); - } - if (other.hasUserDressInfo()) { - mergeUserDressInfo(other.getUserDressInfo()); - } - if (other.getAllowBeLocated() != false) { - setAllowBeLocated(other.getAllowBeLocated()); - } - if (other.getAllowFindByContacts() != false) { - setAllowFindByContacts(other.getAllowFindByContacts()); - } - if (other.getAllowOthersDownloadVideo() != false) { - setAllowOthersDownloadVideo(other.getAllowOthersDownloadVideo()); - } - if (other.getAllowOthersDownloadWhenSharingVideo() != false) { - setAllowOthersDownloadWhenSharingVideo(other.getAllowOthersDownloadWhenSharingVideo()); - } - if (other.getAllowShareShowProfile() != false) { - setAllowShareShowProfile(other.getAllowShareShowProfile()); - } - if (other.getAllowShowInGossip() != false) { - setAllowShowInGossip(other.getAllowShowInGossip()); - } - if (other.getAllowShowMyAction() != false) { - setAllowShowMyAction(other.getAllowShowMyAction()); - } - if (other.getAllowStrangeComment() != false) { - setAllowStrangeComment(other.getAllowStrangeComment()); - } - if (other.getAllowUnfollowerComment() != false) { - setAllowUnfollowerComment(other.getAllowUnfollowerComment()); - } - if (other.getAllowUseLinkmic() != false) { - setAllowUseLinkmic(other.getAllowUseLinkmic()); - } - if (other.hasAnchorLevel()) { - mergeAnchorLevel(other.getAnchorLevel()); - } - if (other.hasAvatarJpg()) { - mergeAvatarJpg(other.getAvatarJpg()); - } - if (!other.getBgImgUrl().isEmpty()) { - bgImgUrl_ = other.bgImgUrl_; - bitField2_ |= 0x00400000; - onChanged(); - } - if (!other.getBirthdayDescription().isEmpty()) { - birthdayDescription_ = other.birthdayDescription_; - bitField2_ |= 0x00800000; - onChanged(); - } - if (other.getBirthdayValid() != false) { - setBirthdayValid(other.getBirthdayValid()); - } - if (other.getBlockStatus() != 0) { - setBlockStatus(other.getBlockStatus()); - } - if (other.getCommentRestrict() != 0) { - setCommentRestrict(other.getCommentRestrict()); - } - if (!other.getConstellation().isEmpty()) { - constellation_ = other.constellation_; - bitField2_ |= 0x08000000; - onChanged(); - } - if (other.getDisableIchat() != 0) { - setDisableIchat(other.getDisableIchat()); - } - if (other.getEnableIchatImg() != 0L) { - setEnableIchatImg(other.getEnableIchatImg()); - } - if (other.getExp() != 0) { - setExp(other.getExp()); - } - if (other.getFanTicketCount() != 0L) { - setFanTicketCount(other.getFanTicketCount()); - } - if (other.getFoldStrangerChat() != false) { - setFoldStrangerChat(other.getFoldStrangerChat()); - } - if (other.getFollowStatus() != 0L) { - setFollowStatus(other.getFollowStatus()); - } - if (other.getHotsoonVerified() != false) { - setHotsoonVerified(other.getHotsoonVerified()); - } - if (!other.getHotsoonVerifiedReason().isEmpty()) { - hotsoonVerifiedReason_ = other.hotsoonVerifiedReason_; - bitField3_ |= 0x00000008; - onChanged(); - } - if (other.getIchatRestrictType() != 0) { - setIchatRestrictType(other.getIchatRestrictType()); - } - if (!other.getIdStr().isEmpty()) { - idStr_ = other.idStr_; - bitField3_ |= 0x00000020; - onChanged(); - } - if (other.getIsFollower() != false) { - setIsFollower(other.getIsFollower()); - } - if (other.getIsFollowing() != false) { - setIsFollowing(other.getIsFollowing()); - } - if (other.getNeedProfileGuide() != false) { - setNeedProfileGuide(other.getNeedProfileGuide()); - } - if (other.getPayScores() != 0L) { - setPayScores(other.getPayScores()); - } - if (other.getPushCommentStatus() != false) { - setPushCommentStatus(other.getPushCommentStatus()); - } - if (other.getPushDigg() != false) { - setPushDigg(other.getPushDigg()); - } - if (other.getPushFollow() != false) { - setPushFollow(other.getPushFollow()); - } - if (other.getPushFriendAction() != false) { - setPushFriendAction(other.getPushFriendAction()); - } - if (other.getPushIchat() != false) { - setPushIchat(other.getPushIchat()); - } - if (other.getPushStatus() != false) { - setPushStatus(other.getPushStatus()); - } - if (other.getPushVideoPost() != false) { - setPushVideoPost(other.getPushVideoPost()); - } - if (other.getPushVideoRecommend() != false) { - setPushVideoRecommend(other.getPushVideoRecommend()); - } - if (other.hasStats()) { - mergeStats(other.getStats()); - } - if (other.getVerifiedMobile() != false) { - setVerifiedMobile(other.getVerifiedMobile()); - } - if (!other.getVerifiedReason().isEmpty()) { - verifiedReason_ = other.verifiedReason_; - bitField3_ |= 0x00100000; - onChanged(); - } - if (other.getWithCarManagementPermission() != false) { - setWithCarManagementPermission(other.getWithCarManagementPermission()); - } - if (other.getAgeRange() != 0) { - setAgeRange(other.getAgeRange()); - } - if (other.getWatchDurationMonth() != 0L) { - setWatchDurationMonth(other.getWatchDurationMonth()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - id_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - shortId_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - nickname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - gender_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - signature_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - level_ = input.readUInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - birthday_ = input.readUInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - telephone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - input.readMessage( - getAvatarThumbFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - input.readMessage( - getAvatarMediumFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - input.readMessage( - getAvatarLargeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: { - verified_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 104: { - experience_ = input.readInt32(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 114: { - city_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 114 - case 120: { - status_ = input.readInt32(); - bitField0_ |= 0x00004000; - break; - } // case 120 - case 128: { - createTime_ = input.readInt64(); - bitField0_ |= 0x00008000; - break; - } // case 128 - case 136: { - modifyTime_ = input.readInt64(); - bitField0_ |= 0x00010000; - break; - } // case 136 - case 144: { - secret_ = input.readInt32(); - bitField0_ |= 0x00020000; - break; - } // case 144 - case 154: { - shareQrcodeUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; - break; - } // case 154 - case 160: { - incomeSharePercent_ = input.readInt32(); - bitField0_ |= 0x00080000; - break; - } // case 160 - case 170: { - input.readMessage( - getBadgeImageListListFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 170 - case 178: { - input.readMessage( - getFollowInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 178 - case 186: { - input.readMessage( - getPayGradeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 186 - case 194: { - input.readMessage( - getFansClubFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 194 - case 202: { - input.readMessage( - getBorderFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 202 - case 210: { - specialId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; - break; - } // case 210 - case 218: { - input.readMessage( - getAvatarBorderFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 218 - case 226: { - input.readMessage( - getMedalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.parser(), - extensionRegistry); - if (realTimeIconsListBuilder_ == null) { - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.add(m); - } else { - realTimeIconsListBuilder_.addMessage(m); - } - break; - } // case 234 - case 242: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.parser(), - extensionRegistry); - if (newRealTimeIconsListBuilder_ == null) { - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.add(m); - } else { - newRealTimeIconsListBuilder_.addMessage(m); - } - break; - } // case 242 - case 248: { - topVipNo_ = input.readInt64(); - bitField0_ |= 0x40000000; - break; - } // case 248 - case 258: { - input.readMessage( - getUserAttrFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x80000000; - break; - } // case 258 - case 266: { - input.readMessage( - getOwnRoomFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 266 - case 272: { - payScore_ = input.readInt64(); - bitField1_ |= 0x00000002; - break; - } // case 272 - case 280: { - ticketCount_ = input.readInt64(); - bitField1_ |= 0x00000004; - break; - } // case 280 - case 290: { - input.readMessage( - getAnchorInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000008; - break; - } // case 290 - case 296: { - linkMicStats_ = input.readInt32(); - bitField1_ |= 0x00000010; - break; - } // case 296 - case 306: { - displayId_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000020; - break; - } // case 306 - case 312: { - withCommercePermission_ = input.readBool(); - bitField1_ |= 0x00000040; - break; - } // case 312 - case 320: { - withFusionShopEntry_ = input.readBool(); - bitField1_ |= 0x00000080; - break; - } // case 320 - case 328: { - totalRechargeDiamondCount_ = input.readInt64(); - bitField1_ |= 0x00000100; - break; - } // case 328 - case 338: { - input.readMessage( - getWebcastAnchorLevelFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000200; - break; - } // case 338 - case 346: { - verifiedContent_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000400; - break; - } // case 346 - case 354: { - input.readMessage( - getAuthorStatsFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00000800; - break; - } // case 354 - case 362: { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User m = - input.readMessage( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.parser(), - extensionRegistry); - if (topFansListBuilder_ == null) { - ensureTopFansListIsMutable(); - topFansList_.add(m); - } else { - topFansListBuilder_.addMessage(m); - } - break; - } // case 362 - case 370: { - secUid_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00002000; - break; - } // case 370 - case 376: { - userRole_ = input.readInt32(); - bitField1_ |= 0x00004000; - break; - } // case 376 - case 386: { - input.readMessage( - getXiguaInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00008000; - break; - } // case 386 - case 394: { - input.readMessage( - getActivityRewardFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00010000; - break; - } // case 394 - case 402: { - input.readMessage( - getNobleInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00020000; - break; - } // case 402 - case 410: { - input.readMessage( - getBrotherhoodInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00040000; - break; - } // case 410 - case 418: { - input.readMessage( - getPersonalCardFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00080000; - break; - } // case 418 - case 426: { - input.readMessage( - getAuthenticationInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00100000; - break; - } // case 426 - case 432: { - authorizationInfo_ = input.readInt32(); - bitField1_ |= 0x00200000; - break; - } // case 432 - case 440: { - adversaryAuthorizationInfo_ = input.readInt32(); - bitField1_ |= 0x00400000; - break; - } // case 440 - case 450: { - input.readMessage( - getPoiInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x00800000; - break; - } // case 450 - case 458: { - input.readMessage( - getMediaBadgeImageListListFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x01000000; - break; - } // case 458 - case 464: { - adversaryUserStatus_ = input.readInt32(); - bitField1_ |= 0x02000000; - break; - } // case 464 - case 474: { - input.readMessage( - getUserVipInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x04000000; - break; - } // case 474 - case 480: { - long v = input.readInt64(); - ensureCommerceWebcastConfigIdsListIsMutable(); - commerceWebcastConfigIdsList_.addLong(v); - break; - } // case 480 - case 482: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureCommerceWebcastConfigIdsListIsMutable(); - while (input.getBytesUntilLimit() > 0) { - commerceWebcastConfigIdsList_.addLong(input.readInt64()); - } - input.popLimit(limit); - break; - } // case 482 - case 490: { - input.readMessage( - getBadgeImageListV2ListFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x10000000; - break; - } // case 490 - case 506: { - locationCity_ = input.readStringRequireUtf8(); - bitField1_ |= 0x20000000; - break; - } // case 506 - case 514: { - input.readMessage( - getFansGroupInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField1_ |= 0x40000000; - break; - } // case 514 - case 522: { - remarkName_ = input.readStringRequireUtf8(); - bitField1_ |= 0x80000000; - break; - } // case 522 - case 528: { - mysteryMan_ = input.readInt32(); - bitField2_ |= 0x00000001; - break; - } // case 528 - case 538: { - webRid_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000002; - break; - } // case 538 - case 546: { - desensitizedNickname_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000004; - break; - } // case 546 - case 554: { - input.readMessage( - getJAccreditInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField2_ |= 0x00000008; - break; - } // case 554 - case 562: { - input.readMessage( - getSubscribeFieldBuilder().getBuilder(), - extensionRegistry); - bitField2_ |= 0x00000010; - break; - } // case 562 - case 568: { - isAnonymous_ = input.readBool(); - bitField2_ |= 0x00000020; - break; - } // case 568 - case 576: { - consumeDiamondLevel_ = input.readInt32(); - bitField2_ |= 0x00000040; - break; - } // case 576 - case 586: { - webcastUid_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00000080; - break; - } // case 586 - case 594: { - input.readMessage( - getProfileStyleParamsFieldBuilder().getBuilder(), - extensionRegistry); - bitField2_ |= 0x00000100; - break; - } // case 594 - case 602: { - input.readMessage( - getUserDressInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField2_ |= 0x00000200; - break; - } // case 602 - case 8008: { - allowBeLocated_ = input.readBool(); - bitField2_ |= 0x00000400; - break; - } // case 8008 - case 8016: { - allowFindByContacts_ = input.readBool(); - bitField2_ |= 0x00000800; - break; - } // case 8016 - case 8024: { - allowOthersDownloadVideo_ = input.readBool(); - bitField2_ |= 0x00001000; - break; - } // case 8024 - case 8032: { - allowOthersDownloadWhenSharingVideo_ = input.readBool(); - bitField2_ |= 0x00002000; - break; - } // case 8032 - case 8040: { - allowShareShowProfile_ = input.readBool(); - bitField2_ |= 0x00004000; - break; - } // case 8040 - case 8048: { - allowShowInGossip_ = input.readBool(); - bitField2_ |= 0x00008000; - break; - } // case 8048 - case 8056: { - allowShowMyAction_ = input.readBool(); - bitField2_ |= 0x00010000; - break; - } // case 8056 - case 8064: { - allowStrangeComment_ = input.readBool(); - bitField2_ |= 0x00020000; - break; - } // case 8064 - case 8072: { - allowUnfollowerComment_ = input.readBool(); - bitField2_ |= 0x00040000; - break; - } // case 8072 - case 8080: { - allowUseLinkmic_ = input.readBool(); - bitField2_ |= 0x00080000; - break; - } // case 8080 - case 8090: { - input.readMessage( - getAnchorLevelFieldBuilder().getBuilder(), - extensionRegistry); - bitField2_ |= 0x00100000; - break; - } // case 8090 - case 8098: { - input.readMessage( - getAvatarJpgFieldBuilder().getBuilder(), - extensionRegistry); - bitField2_ |= 0x00200000; - break; - } // case 8098 - case 8106: { - bgImgUrl_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00400000; - break; - } // case 8106 - case 8114: { - birthdayDescription_ = input.readStringRequireUtf8(); - bitField2_ |= 0x00800000; - break; - } // case 8114 - case 8120: { - birthdayValid_ = input.readBool(); - bitField2_ |= 0x01000000; - break; - } // case 8120 - case 8128: { - blockStatus_ = input.readInt32(); - bitField2_ |= 0x02000000; - break; - } // case 8128 - case 8136: { - commentRestrict_ = input.readInt32(); - bitField2_ |= 0x04000000; - break; - } // case 8136 - case 8146: { - constellation_ = input.readStringRequireUtf8(); - bitField2_ |= 0x08000000; - break; - } // case 8146 - case 8152: { - disableIchat_ = input.readInt32(); - bitField2_ |= 0x10000000; - break; - } // case 8152 - case 8160: { - enableIchatImg_ = input.readInt64(); - bitField2_ |= 0x20000000; - break; - } // case 8160 - case 8168: { - exp_ = input.readInt32(); - bitField2_ |= 0x40000000; - break; - } // case 8168 - case 8176: { - fanTicketCount_ = input.readInt64(); - bitField2_ |= 0x80000000; - break; - } // case 8176 - case 8184: { - foldStrangerChat_ = input.readBool(); - bitField3_ |= 0x00000001; - break; - } // case 8184 - case 8192: { - followStatus_ = input.readInt64(); - bitField3_ |= 0x00000002; - break; - } // case 8192 - case 8200: { - hotsoonVerified_ = input.readBool(); - bitField3_ |= 0x00000004; - break; - } // case 8200 - case 8210: { - hotsoonVerifiedReason_ = input.readStringRequireUtf8(); - bitField3_ |= 0x00000008; - break; - } // case 8210 - case 8216: { - ichatRestrictType_ = input.readInt32(); - bitField3_ |= 0x00000010; - break; - } // case 8216 - case 8226: { - idStr_ = input.readStringRequireUtf8(); - bitField3_ |= 0x00000020; - break; - } // case 8226 - case 8232: { - isFollower_ = input.readBool(); - bitField3_ |= 0x00000040; - break; - } // case 8232 - case 8240: { - isFollowing_ = input.readBool(); - bitField3_ |= 0x00000080; - break; - } // case 8240 - case 8248: { - needProfileGuide_ = input.readBool(); - bitField3_ |= 0x00000100; - break; - } // case 8248 - case 8256: { - payScores_ = input.readInt64(); - bitField3_ |= 0x00000200; - break; - } // case 8256 - case 8264: { - pushCommentStatus_ = input.readBool(); - bitField3_ |= 0x00000400; - break; - } // case 8264 - case 8272: { - pushDigg_ = input.readBool(); - bitField3_ |= 0x00000800; - break; - } // case 8272 - case 8280: { - pushFollow_ = input.readBool(); - bitField3_ |= 0x00001000; - break; - } // case 8280 - case 8288: { - pushFriendAction_ = input.readBool(); - bitField3_ |= 0x00002000; - break; - } // case 8288 - case 8296: { - pushIchat_ = input.readBool(); - bitField3_ |= 0x00004000; - break; - } // case 8296 - case 8304: { - pushStatus_ = input.readBool(); - bitField3_ |= 0x00008000; - break; - } // case 8304 - case 8312: { - pushVideoPost_ = input.readBool(); - bitField3_ |= 0x00010000; - break; - } // case 8312 - case 8320: { - pushVideoRecommend_ = input.readBool(); - bitField3_ |= 0x00020000; - break; - } // case 8320 - case 8330: { - input.readMessage( - getStatsFieldBuilder().getBuilder(), - extensionRegistry); - bitField3_ |= 0x00040000; - break; - } // case 8330 - case 8336: { - verifiedMobile_ = input.readBool(); - bitField3_ |= 0x00080000; - break; - } // case 8336 - case 8346: { - verifiedReason_ = input.readStringRequireUtf8(); - bitField3_ |= 0x00100000; - break; - } // case 8346 - case 8352: { - withCarManagementPermission_ = input.readBool(); - bitField3_ |= 0x00200000; - break; - } // case 8352 - case 8360: { - ageRange_ = input.readInt32(); - bitField3_ |= 0x00400000; - break; - } // case 8360 - case 8368: { - watchDurationMonth_ = input.readInt64(); - bitField3_ |= 0x00800000; - break; - } // case 8368 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - private int bitField1_; - private int bitField2_; - private int bitField3_; - - private long id_ ; - /** - * uint64 id = 1; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - /** - * uint64 id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(long value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - private long shortId_ ; - /** - * uint64 shortId = 2; - * @return The shortId. - */ - @java.lang.Override - public long getShortId() { - return shortId_; - } - /** - * uint64 shortId = 2; - * @param value The shortId to set. - * @return This builder for chaining. - */ - public Builder setShortId(long value) { - - shortId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 shortId = 2; - * @return This builder for chaining. - */ - public Builder clearShortId() { - bitField0_ = (bitField0_ & ~0x00000002); - shortId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object nickname_ = ""; - /** - * string nickname = 3; - * @return The nickname. - */ - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string nickname = 3; - * @return The bytes for nickname. - */ - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string nickname = 3; - * @param value The nickname to set. - * @return This builder for chaining. - */ - public Builder setNickname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nickname_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string nickname = 3; - * @return This builder for chaining. - */ - public Builder clearNickname() { - nickname_ = getDefaultInstance().getNickname(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string nickname = 3; - * @param value The bytes for nickname to set. - * @return This builder for chaining. - */ - public Builder setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nickname_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int gender_ ; - /** - * uint32 gender = 4; - * @return The gender. - */ - @java.lang.Override - public int getGender() { - return gender_; - } - /** - * uint32 gender = 4; - * @param value The gender to set. - * @return This builder for chaining. - */ - public Builder setGender(int value) { - - gender_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 gender = 4; - * @return This builder for chaining. - */ - public Builder clearGender() { - bitField0_ = (bitField0_ & ~0x00000008); - gender_ = 0; - onChanged(); - return this; - } - - private java.lang.Object signature_ = ""; - /** - * string signature = 5; - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string signature = 5; - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString - getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string signature = 5; - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - signature_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string signature = 5; - * @return This builder for chaining. - */ - public Builder clearSignature() { - signature_ = getDefaultInstance().getSignature(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string signature = 5; - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - signature_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int level_ ; - /** - * uint32 level = 6; - * @return The level. - */ - @java.lang.Override - public int getLevel() { - return level_; - } - /** - * uint32 level = 6; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(int value) { - - level_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint32 level = 6; - * @return This builder for chaining. - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000020); - level_ = 0; - onChanged(); - return this; - } - - private long birthday_ ; - /** - * uint64 birthday = 7; - * @return The birthday. - */ - @java.lang.Override - public long getBirthday() { - return birthday_; - } - /** - * uint64 birthday = 7; - * @param value The birthday to set. - * @return This builder for chaining. - */ - public Builder setBirthday(long value) { - - birthday_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * uint64 birthday = 7; - * @return This builder for chaining. - */ - public Builder clearBirthday() { - bitField0_ = (bitField0_ & ~0x00000040); - birthday_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object telephone_ = ""; - /** - * string telephone = 8; - * @return The telephone. - */ - public java.lang.String getTelephone() { - java.lang.Object ref = telephone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - telephone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string telephone = 8; - * @return The bytes for telephone. - */ - public com.google.protobuf.ByteString - getTelephoneBytes() { - java.lang.Object ref = telephone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - telephone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string telephone = 8; - * @param value The telephone to set. - * @return This builder for chaining. - */ - public Builder setTelephone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - telephone_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * string telephone = 8; - * @return This builder for chaining. - */ - public Builder clearTelephone() { - telephone_ = getDefaultInstance().getTelephone(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * string telephone = 8; - * @param value The bytes for telephone to set. - * @return This builder for chaining. - */ - public Builder setTelephoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - telephone_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarThumb_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> avatarThumbBuilder_; - /** - * .Image avatarThumb = 9; - * @return Whether the avatarThumb field is set. - */ - public boolean hasAvatarThumb() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * .Image avatarThumb = 9; - * @return The avatarThumb. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarThumb() { - if (avatarThumbBuilder_ == null) { - return avatarThumb_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarThumb_; - } else { - return avatarThumbBuilder_.getMessage(); - } - } - /** - * .Image avatarThumb = 9; - */ - public Builder setAvatarThumb(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarThumbBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarThumb_ = value; - } else { - avatarThumbBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * .Image avatarThumb = 9; - */ - public Builder setAvatarThumb( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (avatarThumbBuilder_ == null) { - avatarThumb_ = builderForValue.build(); - } else { - avatarThumbBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * .Image avatarThumb = 9; - */ - public Builder mergeAvatarThumb(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarThumbBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - avatarThumb_ != null && - avatarThumb_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getAvatarThumbBuilder().mergeFrom(value); - } else { - avatarThumb_ = value; - } - } else { - avatarThumbBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * .Image avatarThumb = 9; - */ - public Builder clearAvatarThumb() { - bitField0_ = (bitField0_ & ~0x00000100); - avatarThumb_ = null; - if (avatarThumbBuilder_ != null) { - avatarThumbBuilder_.dispose(); - avatarThumbBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image avatarThumb = 9; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getAvatarThumbBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getAvatarThumbFieldBuilder().getBuilder(); - } - /** - * .Image avatarThumb = 9; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarThumbOrBuilder() { - if (avatarThumbBuilder_ != null) { - return avatarThumbBuilder_.getMessageOrBuilder(); - } else { - return avatarThumb_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarThumb_; - } - } - /** - * .Image avatarThumb = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getAvatarThumbFieldBuilder() { - if (avatarThumbBuilder_ == null) { - avatarThumbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getAvatarThumb(), - getParentForChildren(), - isClean()); - avatarThumb_ = null; - } - return avatarThumbBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarMedium_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> avatarMediumBuilder_; - /** - * .Image avatarMedium = 10; - * @return Whether the avatarMedium field is set. - */ - public boolean hasAvatarMedium() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * .Image avatarMedium = 10; - * @return The avatarMedium. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarMedium() { - if (avatarMediumBuilder_ == null) { - return avatarMedium_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarMedium_; - } else { - return avatarMediumBuilder_.getMessage(); - } - } - /** - * .Image avatarMedium = 10; - */ - public Builder setAvatarMedium(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarMediumBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarMedium_ = value; - } else { - avatarMediumBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .Image avatarMedium = 10; - */ - public Builder setAvatarMedium( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (avatarMediumBuilder_ == null) { - avatarMedium_ = builderForValue.build(); - } else { - avatarMediumBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .Image avatarMedium = 10; - */ - public Builder mergeAvatarMedium(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarMediumBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - avatarMedium_ != null && - avatarMedium_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getAvatarMediumBuilder().mergeFrom(value); - } else { - avatarMedium_ = value; - } - } else { - avatarMediumBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .Image avatarMedium = 10; - */ - public Builder clearAvatarMedium() { - bitField0_ = (bitField0_ & ~0x00000200); - avatarMedium_ = null; - if (avatarMediumBuilder_ != null) { - avatarMediumBuilder_.dispose(); - avatarMediumBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image avatarMedium = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getAvatarMediumBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getAvatarMediumFieldBuilder().getBuilder(); - } - /** - * .Image avatarMedium = 10; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarMediumOrBuilder() { - if (avatarMediumBuilder_ != null) { - return avatarMediumBuilder_.getMessageOrBuilder(); - } else { - return avatarMedium_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarMedium_; - } - } - /** - * .Image avatarMedium = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getAvatarMediumFieldBuilder() { - if (avatarMediumBuilder_ == null) { - avatarMediumBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getAvatarMedium(), - getParentForChildren(), - isClean()); - avatarMedium_ = null; - } - return avatarMediumBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarLarge_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> avatarLargeBuilder_; - /** - * .Image avatarLarge = 11; - * @return Whether the avatarLarge field is set. - */ - public boolean hasAvatarLarge() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - * .Image avatarLarge = 11; - * @return The avatarLarge. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarLarge() { - if (avatarLargeBuilder_ == null) { - return avatarLarge_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarLarge_; - } else { - return avatarLargeBuilder_.getMessage(); - } - } - /** - * .Image avatarLarge = 11; - */ - public Builder setAvatarLarge(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarLargeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarLarge_ = value; - } else { - avatarLargeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * .Image avatarLarge = 11; - */ - public Builder setAvatarLarge( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (avatarLargeBuilder_ == null) { - avatarLarge_ = builderForValue.build(); - } else { - avatarLargeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * .Image avatarLarge = 11; - */ - public Builder mergeAvatarLarge(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarLargeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - avatarLarge_ != null && - avatarLarge_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getAvatarLargeBuilder().mergeFrom(value); - } else { - avatarLarge_ = value; - } - } else { - avatarLargeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * .Image avatarLarge = 11; - */ - public Builder clearAvatarLarge() { - bitField0_ = (bitField0_ & ~0x00000400); - avatarLarge_ = null; - if (avatarLargeBuilder_ != null) { - avatarLargeBuilder_.dispose(); - avatarLargeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image avatarLarge = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getAvatarLargeBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getAvatarLargeFieldBuilder().getBuilder(); - } - /** - * .Image avatarLarge = 11; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarLargeOrBuilder() { - if (avatarLargeBuilder_ != null) { - return avatarLargeBuilder_.getMessageOrBuilder(); - } else { - return avatarLarge_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarLarge_; - } - } - /** - * .Image avatarLarge = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getAvatarLargeFieldBuilder() { - if (avatarLargeBuilder_ == null) { - avatarLargeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getAvatarLarge(), - getParentForChildren(), - isClean()); - avatarLarge_ = null; - } - return avatarLargeBuilder_; - } - - private boolean verified_ ; - /** - * bool verified = 12; - * @return The verified. - */ - @java.lang.Override - public boolean getVerified() { - return verified_; - } - /** - * bool verified = 12; - * @param value The verified to set. - * @return This builder for chaining. - */ - public Builder setVerified(boolean value) { - - verified_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * bool verified = 12; - * @return This builder for chaining. - */ - public Builder clearVerified() { - bitField0_ = (bitField0_ & ~0x00000800); - verified_ = false; - onChanged(); - return this; - } - - private int experience_ ; - /** - * int32 experience = 13; - * @return The experience. - */ - @java.lang.Override - public int getExperience() { - return experience_; - } - /** - * int32 experience = 13; - * @param value The experience to set. - * @return This builder for chaining. - */ - public Builder setExperience(int value) { - - experience_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * int32 experience = 13; - * @return This builder for chaining. - */ - public Builder clearExperience() { - bitField0_ = (bitField0_ & ~0x00001000); - experience_ = 0; - onChanged(); - return this; - } - - private java.lang.Object city_ = ""; - /** - * string city = 14; - * @return The city. - */ - public java.lang.String getCity() { - java.lang.Object ref = city_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - city_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string city = 14; - * @return The bytes for city. - */ - public com.google.protobuf.ByteString - getCityBytes() { - java.lang.Object ref = city_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - city_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string city = 14; - * @param value The city to set. - * @return This builder for chaining. - */ - public Builder setCity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - city_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * string city = 14; - * @return This builder for chaining. - */ - public Builder clearCity() { - city_ = getDefaultInstance().getCity(); - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * string city = 14; - * @param value The bytes for city to set. - * @return This builder for chaining. - */ - public Builder setCityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - city_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private int status_ ; - /** - * int32 status = 15; - * @return The status. - */ - @java.lang.Override - public int getStatus() { - return status_; - } - /** - * int32 status = 15; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(int value) { - - status_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * int32 status = 15; - * @return This builder for chaining. - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00004000); - status_ = 0; - onChanged(); - return this; - } - - private long createTime_ ; - /** - * int64 createTime = 16; - * @return The createTime. - */ - @java.lang.Override - public long getCreateTime() { - return createTime_; - } - /** - * int64 createTime = 16; - * @param value The createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTime(long value) { - - createTime_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * int64 createTime = 16; - * @return This builder for chaining. - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00008000); - createTime_ = 0L; - onChanged(); - return this; - } - - private long modifyTime_ ; - /** - * int64 modifyTime = 17; - * @return The modifyTime. - */ - @java.lang.Override - public long getModifyTime() { - return modifyTime_; - } - /** - * int64 modifyTime = 17; - * @param value The modifyTime to set. - * @return This builder for chaining. - */ - public Builder setModifyTime(long value) { - - modifyTime_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * int64 modifyTime = 17; - * @return This builder for chaining. - */ - public Builder clearModifyTime() { - bitField0_ = (bitField0_ & ~0x00010000); - modifyTime_ = 0L; - onChanged(); - return this; - } - - private int secret_ ; - /** - * int32 secret = 18; - * @return The secret. - */ - @java.lang.Override - public int getSecret() { - return secret_; - } - /** - * int32 secret = 18; - * @param value The secret to set. - * @return This builder for chaining. - */ - public Builder setSecret(int value) { - - secret_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - /** - * int32 secret = 18; - * @return This builder for chaining. - */ - public Builder clearSecret() { - bitField0_ = (bitField0_ & ~0x00020000); - secret_ = 0; - onChanged(); - return this; - } - - private java.lang.Object shareQrcodeUri_ = ""; - /** - * string shareQrcodeUri = 19; - * @return The shareQrcodeUri. - */ - public java.lang.String getShareQrcodeUri() { - java.lang.Object ref = shareQrcodeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shareQrcodeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string shareQrcodeUri = 19; - * @return The bytes for shareQrcodeUri. - */ - public com.google.protobuf.ByteString - getShareQrcodeUriBytes() { - java.lang.Object ref = shareQrcodeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shareQrcodeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string shareQrcodeUri = 19; - * @param value The shareQrcodeUri to set. - * @return This builder for chaining. - */ - public Builder setShareQrcodeUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - shareQrcodeUri_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - /** - * string shareQrcodeUri = 19; - * @return This builder for chaining. - */ - public Builder clearShareQrcodeUri() { - shareQrcodeUri_ = getDefaultInstance().getShareQrcodeUri(); - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * string shareQrcodeUri = 19; - * @param value The bytes for shareQrcodeUri to set. - * @return This builder for chaining. - */ - public Builder setShareQrcodeUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - shareQrcodeUri_ = value; - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - private int incomeSharePercent_ ; - /** - * int32 incomeSharePercent = 20; - * @return The incomeSharePercent. - */ - @java.lang.Override - public int getIncomeSharePercent() { - return incomeSharePercent_; - } - /** - * int32 incomeSharePercent = 20; - * @param value The incomeSharePercent to set. - * @return This builder for chaining. - */ - public Builder setIncomeSharePercent(int value) { - - incomeSharePercent_ = value; - bitField0_ |= 0x00080000; - onChanged(); - return this; - } - /** - * int32 incomeSharePercent = 20; - * @return This builder for chaining. - */ - public Builder clearIncomeSharePercent() { - bitField0_ = (bitField0_ & ~0x00080000); - incomeSharePercent_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image badgeImageListList_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> badgeImageListListBuilder_; - /** - * .Image badgeImageListList = 21; - * @return Whether the badgeImageListList field is set. - */ - public boolean hasBadgeImageListList() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - * .Image badgeImageListList = 21; - * @return The badgeImageListList. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBadgeImageListList() { - if (badgeImageListListBuilder_ == null) { - return badgeImageListList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListList_; - } else { - return badgeImageListListBuilder_.getMessage(); - } - } - /** - * .Image badgeImageListList = 21; - */ - public Builder setBadgeImageListList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (badgeImageListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - badgeImageListList_ = value; - } else { - badgeImageListListBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .Image badgeImageListList = 21; - */ - public Builder setBadgeImageListList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (badgeImageListListBuilder_ == null) { - badgeImageListList_ = builderForValue.build(); - } else { - badgeImageListListBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .Image badgeImageListList = 21; - */ - public Builder mergeBadgeImageListList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (badgeImageListListBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) && - badgeImageListList_ != null && - badgeImageListList_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBadgeImageListListBuilder().mergeFrom(value); - } else { - badgeImageListList_ = value; - } - } else { - badgeImageListListBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .Image badgeImageListList = 21; - */ - public Builder clearBadgeImageListList() { - bitField0_ = (bitField0_ & ~0x00100000); - badgeImageListList_ = null; - if (badgeImageListListBuilder_ != null) { - badgeImageListListBuilder_.dispose(); - badgeImageListListBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image badgeImageListList = 21; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBadgeImageListListBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getBadgeImageListListFieldBuilder().getBuilder(); - } - /** - * .Image badgeImageListList = 21; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBadgeImageListListOrBuilder() { - if (badgeImageListListBuilder_ != null) { - return badgeImageListListBuilder_.getMessageOrBuilder(); - } else { - return badgeImageListList_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListList_; - } - } - /** - * .Image badgeImageListList = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBadgeImageListListFieldBuilder() { - if (badgeImageListListBuilder_ == null) { - badgeImageListListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBadgeImageListList(), - getParentForChildren(), - isClean()); - badgeImageListList_ = null; - } - return badgeImageListListBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo followInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder> followInfoBuilder_; - /** - * .User.FollowInfo followInfo = 22; - * @return Whether the followInfo field is set. - */ - public boolean hasFollowInfo() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - * .User.FollowInfo followInfo = 22; - * @return The followInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo getFollowInfo() { - if (followInfoBuilder_ == null) { - return followInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance() : followInfo_; - } else { - return followInfoBuilder_.getMessage(); - } - } - /** - * .User.FollowInfo followInfo = 22; - */ - public Builder setFollowInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo value) { - if (followInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - followInfo_ = value; - } else { - followInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * .User.FollowInfo followInfo = 22; - */ - public Builder setFollowInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder builderForValue) { - if (followInfoBuilder_ == null) { - followInfo_ = builderForValue.build(); - } else { - followInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * .User.FollowInfo followInfo = 22; - */ - public Builder mergeFollowInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo value) { - if (followInfoBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) && - followInfo_ != null && - followInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance()) { - getFollowInfoBuilder().mergeFrom(value); - } else { - followInfo_ = value; - } - } else { - followInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00200000; - onChanged(); - return this; - } - /** - * .User.FollowInfo followInfo = 22; - */ - public Builder clearFollowInfo() { - bitField0_ = (bitField0_ & ~0x00200000); - followInfo_ = null; - if (followInfoBuilder_ != null) { - followInfoBuilder_.dispose(); - followInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.FollowInfo followInfo = 22; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder getFollowInfoBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getFollowInfoFieldBuilder().getBuilder(); - } - /** - * .User.FollowInfo followInfo = 22; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder getFollowInfoOrBuilder() { - if (followInfoBuilder_ != null) { - return followInfoBuilder_.getMessageOrBuilder(); - } else { - return followInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.getDefaultInstance() : followInfo_; - } - } - /** - * .User.FollowInfo followInfo = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder> - getFollowInfoFieldBuilder() { - if (followInfoBuilder_ == null) { - followInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FollowInfoOrBuilder>( - getFollowInfo(), - getParentForChildren(), - isClean()); - followInfo_ = null; - } - return followInfoBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade payGrade_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder> payGradeBuilder_; - /** - * .User.PayGrade payGrade = 23; - * @return Whether the payGrade field is set. - */ - public boolean hasPayGrade() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - * .User.PayGrade payGrade = 23; - * @return The payGrade. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade getPayGrade() { - if (payGradeBuilder_ == null) { - return payGrade_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance() : payGrade_; - } else { - return payGradeBuilder_.getMessage(); - } - } - /** - * .User.PayGrade payGrade = 23; - */ - public Builder setPayGrade(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade value) { - if (payGradeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payGrade_ = value; - } else { - payGradeBuilder_.setMessage(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * .User.PayGrade payGrade = 23; - */ - public Builder setPayGrade( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder builderForValue) { - if (payGradeBuilder_ == null) { - payGrade_ = builderForValue.build(); - } else { - payGradeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * .User.PayGrade payGrade = 23; - */ - public Builder mergePayGrade(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade value) { - if (payGradeBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) && - payGrade_ != null && - payGrade_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance()) { - getPayGradeBuilder().mergeFrom(value); - } else { - payGrade_ = value; - } - } else { - payGradeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00400000; - onChanged(); - return this; - } - /** - * .User.PayGrade payGrade = 23; - */ - public Builder clearPayGrade() { - bitField0_ = (bitField0_ & ~0x00400000); - payGrade_ = null; - if (payGradeBuilder_ != null) { - payGradeBuilder_.dispose(); - payGradeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.PayGrade payGrade = 23; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder getPayGradeBuilder() { - bitField0_ |= 0x00400000; - onChanged(); - return getPayGradeFieldBuilder().getBuilder(); - } - /** - * .User.PayGrade payGrade = 23; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder getPayGradeOrBuilder() { - if (payGradeBuilder_ != null) { - return payGradeBuilder_.getMessageOrBuilder(); - } else { - return payGrade_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.getDefaultInstance() : payGrade_; - } - } - /** - * .User.PayGrade payGrade = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder> - getPayGradeFieldBuilder() { - if (payGradeBuilder_ == null) { - payGradeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGrade.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PayGradeOrBuilder>( - getPayGrade(), - getParentForChildren(), - isClean()); - payGrade_ = null; - } - return payGradeBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub fansClub_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder> fansClubBuilder_; - /** - * .User.FansClub fansClub = 24; - * @return Whether the fansClub field is set. - */ - public boolean hasFansClub() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - * .User.FansClub fansClub = 24; - * @return The fansClub. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub getFansClub() { - if (fansClubBuilder_ == null) { - return fansClub_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance() : fansClub_; - } else { - return fansClubBuilder_.getMessage(); - } - } - /** - * .User.FansClub fansClub = 24; - */ - public Builder setFansClub(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub value) { - if (fansClubBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fansClub_ = value; - } else { - fansClubBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .User.FansClub fansClub = 24; - */ - public Builder setFansClub( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder builderForValue) { - if (fansClubBuilder_ == null) { - fansClub_ = builderForValue.build(); - } else { - fansClubBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .User.FansClub fansClub = 24; - */ - public Builder mergeFansClub(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub value) { - if (fansClubBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) && - fansClub_ != null && - fansClub_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance()) { - getFansClubBuilder().mergeFrom(value); - } else { - fansClub_ = value; - } - } else { - fansClubBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .User.FansClub fansClub = 24; - */ - public Builder clearFansClub() { - bitField0_ = (bitField0_ & ~0x00800000); - fansClub_ = null; - if (fansClubBuilder_ != null) { - fansClubBuilder_.dispose(); - fansClubBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.FansClub fansClub = 24; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder getFansClubBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return getFansClubFieldBuilder().getBuilder(); - } - /** - * .User.FansClub fansClub = 24; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder getFansClubOrBuilder() { - if (fansClubBuilder_ != null) { - return fansClubBuilder_.getMessageOrBuilder(); - } else { - return fansClub_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.getDefaultInstance() : fansClub_; - } - } - /** - * .User.FansClub fansClub = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder> - getFansClubFieldBuilder() { - if (fansClubBuilder_ == null) { - fansClubBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClub.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansClubOrBuilder>( - getFansClub(), - getParentForChildren(), - isClean()); - fansClub_ = null; - } - return fansClubBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border border_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder> borderBuilder_; - /** - * .User.Border border = 25; - * @return Whether the border field is set. - */ - public boolean hasBorder() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - * .User.Border border = 25; - * @return The border. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border getBorder() { - if (borderBuilder_ == null) { - return border_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance() : border_; - } else { - return borderBuilder_.getMessage(); - } - } - /** - * .User.Border border = 25; - */ - public Builder setBorder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border value) { - if (borderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - border_ = value; - } else { - borderBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * .User.Border border = 25; - */ - public Builder setBorder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder builderForValue) { - if (borderBuilder_ == null) { - border_ = builderForValue.build(); - } else { - borderBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * .User.Border border = 25; - */ - public Builder mergeBorder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border value) { - if (borderBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) && - border_ != null && - border_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance()) { - getBorderBuilder().mergeFrom(value); - } else { - border_ = value; - } - } else { - borderBuilder_.mergeFrom(value); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - /** - * .User.Border border = 25; - */ - public Builder clearBorder() { - bitField0_ = (bitField0_ & ~0x01000000); - border_ = null; - if (borderBuilder_ != null) { - borderBuilder_.dispose(); - borderBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.Border border = 25; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder getBorderBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return getBorderFieldBuilder().getBuilder(); - } - /** - * .User.Border border = 25; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder getBorderOrBuilder() { - if (borderBuilder_ != null) { - return borderBuilder_.getMessageOrBuilder(); - } else { - return border_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.getDefaultInstance() : border_; - } - } - /** - * .User.Border border = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder> - getBorderFieldBuilder() { - if (borderBuilder_ == null) { - borderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Border.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BorderOrBuilder>( - getBorder(), - getParentForChildren(), - isClean()); - border_ = null; - } - return borderBuilder_; - } - - private java.lang.Object specialId_ = ""; - /** - * string specialId = 26; - * @return The specialId. - */ - public java.lang.String getSpecialId() { - java.lang.Object ref = specialId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - specialId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string specialId = 26; - * @return The bytes for specialId. - */ - public com.google.protobuf.ByteString - getSpecialIdBytes() { - java.lang.Object ref = specialId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - specialId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string specialId = 26; - * @param value The specialId to set. - * @return This builder for chaining. - */ - public Builder setSpecialId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - specialId_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - /** - * string specialId = 26; - * @return This builder for chaining. - */ - public Builder clearSpecialId() { - specialId_ = getDefaultInstance().getSpecialId(); - bitField0_ = (bitField0_ & ~0x02000000); - onChanged(); - return this; - } - /** - * string specialId = 26; - * @param value The bytes for specialId to set. - * @return This builder for chaining. - */ - public Builder setSpecialIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - specialId_ = value; - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarBorder_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> avatarBorderBuilder_; - /** - * .Image avatarBorder = 27; - * @return Whether the avatarBorder field is set. - */ - public boolean hasAvatarBorder() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - * .Image avatarBorder = 27; - * @return The avatarBorder. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarBorder() { - if (avatarBorderBuilder_ == null) { - return avatarBorder_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarBorder_; - } else { - return avatarBorderBuilder_.getMessage(); - } - } - /** - * .Image avatarBorder = 27; - */ - public Builder setAvatarBorder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarBorderBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarBorder_ = value; - } else { - avatarBorderBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .Image avatarBorder = 27; - */ - public Builder setAvatarBorder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (avatarBorderBuilder_ == null) { - avatarBorder_ = builderForValue.build(); - } else { - avatarBorderBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .Image avatarBorder = 27; - */ - public Builder mergeAvatarBorder(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarBorderBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) && - avatarBorder_ != null && - avatarBorder_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getAvatarBorderBuilder().mergeFrom(value); - } else { - avatarBorder_ = value; - } - } else { - avatarBorderBuilder_.mergeFrom(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .Image avatarBorder = 27; - */ - public Builder clearAvatarBorder() { - bitField0_ = (bitField0_ & ~0x04000000); - avatarBorder_ = null; - if (avatarBorderBuilder_ != null) { - avatarBorderBuilder_.dispose(); - avatarBorderBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image avatarBorder = 27; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getAvatarBorderBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return getAvatarBorderFieldBuilder().getBuilder(); - } - /** - * .Image avatarBorder = 27; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarBorderOrBuilder() { - if (avatarBorderBuilder_ != null) { - return avatarBorderBuilder_.getMessageOrBuilder(); - } else { - return avatarBorder_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarBorder_; - } - } - /** - * .Image avatarBorder = 27; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getAvatarBorderFieldBuilder() { - if (avatarBorderBuilder_ == null) { - avatarBorderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getAvatarBorder(), - getParentForChildren(), - isClean()); - avatarBorder_ = null; - } - return avatarBorderBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image medal_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> medalBuilder_; - /** - * .Image medal = 28; - * @return Whether the medal field is set. - */ - public boolean hasMedal() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * .Image medal = 28; - * @return The medal. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getMedal() { - if (medalBuilder_ == null) { - return medal_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : medal_; - } else { - return medalBuilder_.getMessage(); - } - } - /** - * .Image medal = 28; - */ - public Builder setMedal(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (medalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - medal_ = value; - } else { - medalBuilder_.setMessage(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * .Image medal = 28; - */ - public Builder setMedal( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (medalBuilder_ == null) { - medal_ = builderForValue.build(); - } else { - medalBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * .Image medal = 28; - */ - public Builder mergeMedal(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (medalBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) && - medal_ != null && - medal_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getMedalBuilder().mergeFrom(value); - } else { - medal_ = value; - } - } else { - medalBuilder_.mergeFrom(value); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - /** - * .Image medal = 28; - */ - public Builder clearMedal() { - bitField0_ = (bitField0_ & ~0x08000000); - medal_ = null; - if (medalBuilder_ != null) { - medalBuilder_.dispose(); - medalBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image medal = 28; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getMedalBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return getMedalFieldBuilder().getBuilder(); - } - /** - * .Image medal = 28; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getMedalOrBuilder() { - if (medalBuilder_ != null) { - return medalBuilder_.getMessageOrBuilder(); - } else { - return medal_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : medal_; - } - } - /** - * .Image medal = 28; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getMedalFieldBuilder() { - if (medalBuilder_ == null) { - medalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getMedal(), - getParentForChildren(), - isClean()); - medal_ = null; - } - return medalBuilder_; - } - - private java.util.List realTimeIconsList_ = - java.util.Collections.emptyList(); - private void ensureRealTimeIconsListIsMutable() { - if (!((bitField0_ & 0x10000000) != 0)) { - realTimeIconsList_ = new java.util.ArrayList(realTimeIconsList_); - bitField0_ |= 0x10000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> realTimeIconsListBuilder_; - - /** - * repeated .Image realTimeIconsList = 29; - */ - public java.util.List getRealTimeIconsListList() { - if (realTimeIconsListBuilder_ == null) { - return java.util.Collections.unmodifiableList(realTimeIconsList_); - } else { - return realTimeIconsListBuilder_.getMessageList(); - } - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public int getRealTimeIconsListCount() { - if (realTimeIconsListBuilder_ == null) { - return realTimeIconsList_.size(); - } else { - return realTimeIconsListBuilder_.getCount(); - } - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getRealTimeIconsList(int index) { - if (realTimeIconsListBuilder_ == null) { - return realTimeIconsList_.get(index); - } else { - return realTimeIconsListBuilder_.getMessage(index); - } - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder setRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (realTimeIconsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.set(index, value); - onChanged(); - } else { - realTimeIconsListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder setRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (realTimeIconsListBuilder_ == null) { - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.set(index, builderForValue.build()); - onChanged(); - } else { - realTimeIconsListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder addRealTimeIconsList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (realTimeIconsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.add(value); - onChanged(); - } else { - realTimeIconsListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder addRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (realTimeIconsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.add(index, value); - onChanged(); - } else { - realTimeIconsListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder addRealTimeIconsList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (realTimeIconsListBuilder_ == null) { - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.add(builderForValue.build()); - onChanged(); - } else { - realTimeIconsListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder addRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (realTimeIconsListBuilder_ == null) { - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.add(index, builderForValue.build()); - onChanged(); - } else { - realTimeIconsListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder addAllRealTimeIconsList( - java.lang.Iterable values) { - if (realTimeIconsListBuilder_ == null) { - ensureRealTimeIconsListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, realTimeIconsList_); - onChanged(); - } else { - realTimeIconsListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder clearRealTimeIconsList() { - if (realTimeIconsListBuilder_ == null) { - realTimeIconsList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x10000000); - onChanged(); - } else { - realTimeIconsListBuilder_.clear(); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public Builder removeRealTimeIconsList(int index) { - if (realTimeIconsListBuilder_ == null) { - ensureRealTimeIconsListIsMutable(); - realTimeIconsList_.remove(index); - onChanged(); - } else { - realTimeIconsListBuilder_.remove(index); - } - return this; - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getRealTimeIconsListBuilder( - int index) { - return getRealTimeIconsListFieldBuilder().getBuilder(index); - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getRealTimeIconsListOrBuilder( - int index) { - if (realTimeIconsListBuilder_ == null) { - return realTimeIconsList_.get(index); } else { - return realTimeIconsListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public java.util.List - getRealTimeIconsListOrBuilderList() { - if (realTimeIconsListBuilder_ != null) { - return realTimeIconsListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(realTimeIconsList_); - } - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder addRealTimeIconsListBuilder() { - return getRealTimeIconsListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()); - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder addRealTimeIconsListBuilder( - int index) { - return getRealTimeIconsListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()); - } - /** - * repeated .Image realTimeIconsList = 29; - */ - public java.util.List - getRealTimeIconsListBuilderList() { - return getRealTimeIconsListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getRealTimeIconsListFieldBuilder() { - if (realTimeIconsListBuilder_ == null) { - realTimeIconsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - realTimeIconsList_, - ((bitField0_ & 0x10000000) != 0), - getParentForChildren(), - isClean()); - realTimeIconsList_ = null; - } - return realTimeIconsListBuilder_; - } - - private java.util.List newRealTimeIconsList_ = - java.util.Collections.emptyList(); - private void ensureNewRealTimeIconsListIsMutable() { - if (!((bitField0_ & 0x20000000) != 0)) { - newRealTimeIconsList_ = new java.util.ArrayList(newRealTimeIconsList_); - bitField0_ |= 0x20000000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> newRealTimeIconsListBuilder_; - - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public java.util.List getNewRealTimeIconsListList() { - if (newRealTimeIconsListBuilder_ == null) { - return java.util.Collections.unmodifiableList(newRealTimeIconsList_); - } else { - return newRealTimeIconsListBuilder_.getMessageList(); - } - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public int getNewRealTimeIconsListCount() { - if (newRealTimeIconsListBuilder_ == null) { - return newRealTimeIconsList_.size(); - } else { - return newRealTimeIconsListBuilder_.getCount(); - } - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getNewRealTimeIconsList(int index) { - if (newRealTimeIconsListBuilder_ == null) { - return newRealTimeIconsList_.get(index); - } else { - return newRealTimeIconsListBuilder_.getMessage(index); - } - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder setNewRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newRealTimeIconsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.set(index, value); - onChanged(); - } else { - newRealTimeIconsListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder setNewRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (newRealTimeIconsListBuilder_ == null) { - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.set(index, builderForValue.build()); - onChanged(); - } else { - newRealTimeIconsListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder addNewRealTimeIconsList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newRealTimeIconsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.add(value); - onChanged(); - } else { - newRealTimeIconsListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder addNewRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (newRealTimeIconsListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.add(index, value); - onChanged(); - } else { - newRealTimeIconsListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder addNewRealTimeIconsList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (newRealTimeIconsListBuilder_ == null) { - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.add(builderForValue.build()); - onChanged(); - } else { - newRealTimeIconsListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder addNewRealTimeIconsList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (newRealTimeIconsListBuilder_ == null) { - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.add(index, builderForValue.build()); - onChanged(); - } else { - newRealTimeIconsListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder addAllNewRealTimeIconsList( - java.lang.Iterable values) { - if (newRealTimeIconsListBuilder_ == null) { - ensureNewRealTimeIconsListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, newRealTimeIconsList_); - onChanged(); - } else { - newRealTimeIconsListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder clearNewRealTimeIconsList() { - if (newRealTimeIconsListBuilder_ == null) { - newRealTimeIconsList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x20000000); - onChanged(); - } else { - newRealTimeIconsListBuilder_.clear(); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public Builder removeNewRealTimeIconsList(int index) { - if (newRealTimeIconsListBuilder_ == null) { - ensureNewRealTimeIconsListIsMutable(); - newRealTimeIconsList_.remove(index); - onChanged(); - } else { - newRealTimeIconsListBuilder_.remove(index); - } - return this; - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getNewRealTimeIconsListBuilder( - int index) { - return getNewRealTimeIconsListFieldBuilder().getBuilder(index); - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getNewRealTimeIconsListOrBuilder( - int index) { - if (newRealTimeIconsListBuilder_ == null) { - return newRealTimeIconsList_.get(index); } else { - return newRealTimeIconsListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public java.util.List - getNewRealTimeIconsListOrBuilderList() { - if (newRealTimeIconsListBuilder_ != null) { - return newRealTimeIconsListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(newRealTimeIconsList_); - } - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder addNewRealTimeIconsListBuilder() { - return getNewRealTimeIconsListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()); - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder addNewRealTimeIconsListBuilder( - int index) { - return getNewRealTimeIconsListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()); - } - /** - * repeated .Image newRealTimeIconsList = 30; - */ - public java.util.List - getNewRealTimeIconsListBuilderList() { - return getNewRealTimeIconsListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getNewRealTimeIconsListFieldBuilder() { - if (newRealTimeIconsListBuilder_ == null) { - newRealTimeIconsListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - newRealTimeIconsList_, - ((bitField0_ & 0x20000000) != 0), - getParentForChildren(), - isClean()); - newRealTimeIconsList_ = null; - } - return newRealTimeIconsListBuilder_; - } - - private long topVipNo_ ; - /** - * int64 topVipNo = 31; - * @return The topVipNo. - */ - @java.lang.Override - public long getTopVipNo() { - return topVipNo_; - } - /** - * int64 topVipNo = 31; - * @param value The topVipNo to set. - * @return This builder for chaining. - */ - public Builder setTopVipNo(long value) { - - topVipNo_ = value; - bitField0_ |= 0x40000000; - onChanged(); - return this; - } - /** - * int64 topVipNo = 31; - * @return This builder for chaining. - */ - public Builder clearTopVipNo() { - bitField0_ = (bitField0_ & ~0x40000000); - topVipNo_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr userAttr_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder> userAttrBuilder_; - /** - * .User.UserAttr userAttr = 32; - * @return Whether the userAttr field is set. - */ - public boolean hasUserAttr() { - return ((bitField0_ & 0x80000000) != 0); - } - /** - * .User.UserAttr userAttr = 32; - * @return The userAttr. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr getUserAttr() { - if (userAttrBuilder_ == null) { - return userAttr_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance() : userAttr_; - } else { - return userAttrBuilder_.getMessage(); - } - } - /** - * .User.UserAttr userAttr = 32; - */ - public Builder setUserAttr(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr value) { - if (userAttrBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userAttr_ = value; - } else { - userAttrBuilder_.setMessage(value); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * .User.UserAttr userAttr = 32; - */ - public Builder setUserAttr( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder builderForValue) { - if (userAttrBuilder_ == null) { - userAttr_ = builderForValue.build(); - } else { - userAttrBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * .User.UserAttr userAttr = 32; - */ - public Builder mergeUserAttr(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr value) { - if (userAttrBuilder_ == null) { - if (((bitField0_ & 0x80000000) != 0) && - userAttr_ != null && - userAttr_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance()) { - getUserAttrBuilder().mergeFrom(value); - } else { - userAttr_ = value; - } - } else { - userAttrBuilder_.mergeFrom(value); - } - bitField0_ |= 0x80000000; - onChanged(); - return this; - } - /** - * .User.UserAttr userAttr = 32; - */ - public Builder clearUserAttr() { - bitField0_ = (bitField0_ & ~0x80000000); - userAttr_ = null; - if (userAttrBuilder_ != null) { - userAttrBuilder_.dispose(); - userAttrBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.UserAttr userAttr = 32; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder getUserAttrBuilder() { - bitField0_ |= 0x80000000; - onChanged(); - return getUserAttrFieldBuilder().getBuilder(); - } - /** - * .User.UserAttr userAttr = 32; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder getUserAttrOrBuilder() { - if (userAttrBuilder_ != null) { - return userAttrBuilder_.getMessageOrBuilder(); - } else { - return userAttr_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.getDefaultInstance() : userAttr_; - } - } - /** - * .User.UserAttr userAttr = 32; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder> - getUserAttrFieldBuilder() { - if (userAttrBuilder_ == null) { - userAttrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttr.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserAttrOrBuilder>( - getUserAttr(), - getParentForChildren(), - isClean()); - userAttr_ = null; - } - return userAttrBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom ownRoom_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder> ownRoomBuilder_; - /** - * .User.OwnRoom ownRoom = 33; - * @return Whether the ownRoom field is set. - */ - public boolean hasOwnRoom() { - return ((bitField1_ & 0x00000001) != 0); - } - /** - * .User.OwnRoom ownRoom = 33; - * @return The ownRoom. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom getOwnRoom() { - if (ownRoomBuilder_ == null) { - return ownRoom_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance() : ownRoom_; - } else { - return ownRoomBuilder_.getMessage(); - } - } - /** - * .User.OwnRoom ownRoom = 33; - */ - public Builder setOwnRoom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom value) { - if (ownRoomBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ownRoom_ = value; - } else { - ownRoomBuilder_.setMessage(value); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User.OwnRoom ownRoom = 33; - */ - public Builder setOwnRoom( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder builderForValue) { - if (ownRoomBuilder_ == null) { - ownRoom_ = builderForValue.build(); - } else { - ownRoomBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User.OwnRoom ownRoom = 33; - */ - public Builder mergeOwnRoom(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom value) { - if (ownRoomBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) && - ownRoom_ != null && - ownRoom_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance()) { - getOwnRoomBuilder().mergeFrom(value); - } else { - ownRoom_ = value; - } - } else { - ownRoomBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .User.OwnRoom ownRoom = 33; - */ - public Builder clearOwnRoom() { - bitField1_ = (bitField1_ & ~0x00000001); - ownRoom_ = null; - if (ownRoomBuilder_ != null) { - ownRoomBuilder_.dispose(); - ownRoomBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.OwnRoom ownRoom = 33; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder getOwnRoomBuilder() { - bitField1_ |= 0x00000001; - onChanged(); - return getOwnRoomFieldBuilder().getBuilder(); - } - /** - * .User.OwnRoom ownRoom = 33; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder getOwnRoomOrBuilder() { - if (ownRoomBuilder_ != null) { - return ownRoomBuilder_.getMessageOrBuilder(); - } else { - return ownRoom_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.getDefaultInstance() : ownRoom_; - } - } - /** - * .User.OwnRoom ownRoom = 33; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder> - getOwnRoomFieldBuilder() { - if (ownRoomBuilder_ == null) { - ownRoomBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoom.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.OwnRoomOrBuilder>( - getOwnRoom(), - getParentForChildren(), - isClean()); - ownRoom_ = null; - } - return ownRoomBuilder_; - } - - private long payScore_ ; - /** - * int64 payScore = 34; - * @return The payScore. - */ - @java.lang.Override - public long getPayScore() { - return payScore_; - } - /** - * int64 payScore = 34; - * @param value The payScore to set. - * @return This builder for chaining. - */ - public Builder setPayScore(long value) { - - payScore_ = value; - bitField1_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 payScore = 34; - * @return This builder for chaining. - */ - public Builder clearPayScore() { - bitField1_ = (bitField1_ & ~0x00000002); - payScore_ = 0L; - onChanged(); - return this; - } - - private long ticketCount_ ; - /** - * int64 ticketCount = 35; - * @return The ticketCount. - */ - @java.lang.Override - public long getTicketCount() { - return ticketCount_; - } - /** - * int64 ticketCount = 35; - * @param value The ticketCount to set. - * @return This builder for chaining. - */ - public Builder setTicketCount(long value) { - - ticketCount_ = value; - bitField1_ |= 0x00000004; - onChanged(); - return this; - } - /** - * int64 ticketCount = 35; - * @return This builder for chaining. - */ - public Builder clearTicketCount() { - bitField1_ = (bitField1_ & ~0x00000004); - ticketCount_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo anchorInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder> anchorInfoBuilder_; - /** - * .User.AnchorInfo anchorInfo = 36; - * @return Whether the anchorInfo field is set. - */ - public boolean hasAnchorInfo() { - return ((bitField1_ & 0x00000008) != 0); - } - /** - * .User.AnchorInfo anchorInfo = 36; - * @return The anchorInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo getAnchorInfo() { - if (anchorInfoBuilder_ == null) { - return anchorInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance() : anchorInfo_; - } else { - return anchorInfoBuilder_.getMessage(); - } - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - public Builder setAnchorInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo value) { - if (anchorInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - anchorInfo_ = value; - } else { - anchorInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - public Builder setAnchorInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder builderForValue) { - if (anchorInfoBuilder_ == null) { - anchorInfo_ = builderForValue.build(); - } else { - anchorInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - public Builder mergeAnchorInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo value) { - if (anchorInfoBuilder_ == null) { - if (((bitField1_ & 0x00000008) != 0) && - anchorInfo_ != null && - anchorInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance()) { - getAnchorInfoBuilder().mergeFrom(value); - } else { - anchorInfo_ = value; - } - } else { - anchorInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - public Builder clearAnchorInfo() { - bitField1_ = (bitField1_ & ~0x00000008); - anchorInfo_ = null; - if (anchorInfoBuilder_ != null) { - anchorInfoBuilder_.dispose(); - anchorInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder getAnchorInfoBuilder() { - bitField1_ |= 0x00000008; - onChanged(); - return getAnchorInfoFieldBuilder().getBuilder(); - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder getAnchorInfoOrBuilder() { - if (anchorInfoBuilder_ != null) { - return anchorInfoBuilder_.getMessageOrBuilder(); - } else { - return anchorInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.getDefaultInstance() : anchorInfo_; - } - } - /** - * .User.AnchorInfo anchorInfo = 36; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder> - getAnchorInfoFieldBuilder() { - if (anchorInfoBuilder_ == null) { - anchorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorInfoOrBuilder>( - getAnchorInfo(), - getParentForChildren(), - isClean()); - anchorInfo_ = null; - } - return anchorInfoBuilder_; - } - - private int linkMicStats_ ; - /** - * int32 linkMicStats = 37; - * @return The linkMicStats. - */ - @java.lang.Override - public int getLinkMicStats() { - return linkMicStats_; - } - /** - * int32 linkMicStats = 37; - * @param value The linkMicStats to set. - * @return This builder for chaining. - */ - public Builder setLinkMicStats(int value) { - - linkMicStats_ = value; - bitField1_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int32 linkMicStats = 37; - * @return This builder for chaining. - */ - public Builder clearLinkMicStats() { - bitField1_ = (bitField1_ & ~0x00000010); - linkMicStats_ = 0; - onChanged(); - return this; - } - - private java.lang.Object displayId_ = ""; - /** - * string displayId = 38; - * @return The displayId. - */ - public java.lang.String getDisplayId() { - java.lang.Object ref = displayId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string displayId = 38; - * @return The bytes for displayId. - */ - public com.google.protobuf.ByteString - getDisplayIdBytes() { - java.lang.Object ref = displayId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string displayId = 38; - * @param value The displayId to set. - * @return This builder for chaining. - */ - public Builder setDisplayId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayId_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string displayId = 38; - * @return This builder for chaining. - */ - public Builder clearDisplayId() { - displayId_ = getDefaultInstance().getDisplayId(); - bitField1_ = (bitField1_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string displayId = 38; - * @param value The bytes for displayId to set. - * @return This builder for chaining. - */ - public Builder setDisplayIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayId_ = value; - bitField1_ |= 0x00000020; - onChanged(); - return this; - } - - private boolean withCommercePermission_ ; - /** - * bool withCommercePermission = 39; - * @return The withCommercePermission. - */ - @java.lang.Override - public boolean getWithCommercePermission() { - return withCommercePermission_; - } - /** - * bool withCommercePermission = 39; - * @param value The withCommercePermission to set. - * @return This builder for chaining. - */ - public Builder setWithCommercePermission(boolean value) { - - withCommercePermission_ = value; - bitField1_ |= 0x00000040; - onChanged(); - return this; - } - /** - * bool withCommercePermission = 39; - * @return This builder for chaining. - */ - public Builder clearWithCommercePermission() { - bitField1_ = (bitField1_ & ~0x00000040); - withCommercePermission_ = false; - onChanged(); - return this; - } - - private boolean withFusionShopEntry_ ; - /** - * bool withFusionShopEntry = 40; - * @return The withFusionShopEntry. - */ - @java.lang.Override - public boolean getWithFusionShopEntry() { - return withFusionShopEntry_; - } - /** - * bool withFusionShopEntry = 40; - * @param value The withFusionShopEntry to set. - * @return This builder for chaining. - */ - public Builder setWithFusionShopEntry(boolean value) { - - withFusionShopEntry_ = value; - bitField1_ |= 0x00000080; - onChanged(); - return this; - } - /** - * bool withFusionShopEntry = 40; - * @return This builder for chaining. - */ - public Builder clearWithFusionShopEntry() { - bitField1_ = (bitField1_ & ~0x00000080); - withFusionShopEntry_ = false; - onChanged(); - return this; - } - - private long totalRechargeDiamondCount_ ; - /** - * int64 totalRechargeDiamondCount = 41; - * @return The totalRechargeDiamondCount. - */ - @java.lang.Override - public long getTotalRechargeDiamondCount() { - return totalRechargeDiamondCount_; - } - /** - * int64 totalRechargeDiamondCount = 41; - * @param value The totalRechargeDiamondCount to set. - * @return This builder for chaining. - */ - public Builder setTotalRechargeDiamondCount(long value) { - - totalRechargeDiamondCount_ = value; - bitField1_ |= 0x00000100; - onChanged(); - return this; - } - /** - * int64 totalRechargeDiamondCount = 41; - * @return This builder for chaining. - */ - public Builder clearTotalRechargeDiamondCount() { - bitField1_ = (bitField1_ & ~0x00000100); - totalRechargeDiamondCount_ = 0L; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel webcastAnchorLevel_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder> webcastAnchorLevelBuilder_; - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - * @return Whether the webcastAnchorLevel field is set. - */ - public boolean hasWebcastAnchorLevel() { - return ((bitField1_ & 0x00000200) != 0); - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - * @return The webcastAnchorLevel. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getWebcastAnchorLevel() { - if (webcastAnchorLevelBuilder_ == null) { - return webcastAnchorLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : webcastAnchorLevel_; - } else { - return webcastAnchorLevelBuilder_.getMessage(); - } - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - public Builder setWebcastAnchorLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel value) { - if (webcastAnchorLevelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - webcastAnchorLevel_ = value; - } else { - webcastAnchorLevelBuilder_.setMessage(value); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - public Builder setWebcastAnchorLevel( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder builderForValue) { - if (webcastAnchorLevelBuilder_ == null) { - webcastAnchorLevel_ = builderForValue.build(); - } else { - webcastAnchorLevelBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - public Builder mergeWebcastAnchorLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel value) { - if (webcastAnchorLevelBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0) && - webcastAnchorLevel_ != null && - webcastAnchorLevel_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance()) { - getWebcastAnchorLevelBuilder().mergeFrom(value); - } else { - webcastAnchorLevel_ = value; - } - } else { - webcastAnchorLevelBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - public Builder clearWebcastAnchorLevel() { - bitField1_ = (bitField1_ & ~0x00000200); - webcastAnchorLevel_ = null; - if (webcastAnchorLevelBuilder_ != null) { - webcastAnchorLevelBuilder_.dispose(); - webcastAnchorLevelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder getWebcastAnchorLevelBuilder() { - bitField1_ |= 0x00000200; - onChanged(); - return getWebcastAnchorLevelFieldBuilder().getBuilder(); - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder getWebcastAnchorLevelOrBuilder() { - if (webcastAnchorLevelBuilder_ != null) { - return webcastAnchorLevelBuilder_.getMessageOrBuilder(); - } else { - return webcastAnchorLevel_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : webcastAnchorLevel_; - } - } - /** - * .User.AnchorLevel webcastAnchorLevel = 42; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder> - getWebcastAnchorLevelFieldBuilder() { - if (webcastAnchorLevelBuilder_ == null) { - webcastAnchorLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder>( - getWebcastAnchorLevel(), - getParentForChildren(), - isClean()); - webcastAnchorLevel_ = null; - } - return webcastAnchorLevelBuilder_; - } - - private java.lang.Object verifiedContent_ = ""; - /** - * string verifiedContent = 43; - * @return The verifiedContent. - */ - public java.lang.String getVerifiedContent() { - java.lang.Object ref = verifiedContent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verifiedContent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string verifiedContent = 43; - * @return The bytes for verifiedContent. - */ - public com.google.protobuf.ByteString - getVerifiedContentBytes() { - java.lang.Object ref = verifiedContent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verifiedContent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string verifiedContent = 43; - * @param value The verifiedContent to set. - * @return This builder for chaining. - */ - public Builder setVerifiedContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - verifiedContent_ = value; - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - /** - * string verifiedContent = 43; - * @return This builder for chaining. - */ - public Builder clearVerifiedContent() { - verifiedContent_ = getDefaultInstance().getVerifiedContent(); - bitField1_ = (bitField1_ & ~0x00000400); - onChanged(); - return this; - } - /** - * string verifiedContent = 43; - * @param value The bytes for verifiedContent to set. - * @return This builder for chaining. - */ - public Builder setVerifiedContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - verifiedContent_ = value; - bitField1_ |= 0x00000400; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats authorStats_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder> authorStatsBuilder_; - /** - * .User.AuthorStats authorStats = 44; - * @return Whether the authorStats field is set. - */ - public boolean hasAuthorStats() { - return ((bitField1_ & 0x00000800) != 0); - } - /** - * .User.AuthorStats authorStats = 44; - * @return The authorStats. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats getAuthorStats() { - if (authorStatsBuilder_ == null) { - return authorStats_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance() : authorStats_; - } else { - return authorStatsBuilder_.getMessage(); - } - } - /** - * .User.AuthorStats authorStats = 44; - */ - public Builder setAuthorStats(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats value) { - if (authorStatsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorStats_ = value; - } else { - authorStatsBuilder_.setMessage(value); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * .User.AuthorStats authorStats = 44; - */ - public Builder setAuthorStats( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder builderForValue) { - if (authorStatsBuilder_ == null) { - authorStats_ = builderForValue.build(); - } else { - authorStatsBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * .User.AuthorStats authorStats = 44; - */ - public Builder mergeAuthorStats(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats value) { - if (authorStatsBuilder_ == null) { - if (((bitField1_ & 0x00000800) != 0) && - authorStats_ != null && - authorStats_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance()) { - getAuthorStatsBuilder().mergeFrom(value); - } else { - authorStats_ = value; - } - } else { - authorStatsBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00000800; - onChanged(); - return this; - } - /** - * .User.AuthorStats authorStats = 44; - */ - public Builder clearAuthorStats() { - bitField1_ = (bitField1_ & ~0x00000800); - authorStats_ = null; - if (authorStatsBuilder_ != null) { - authorStatsBuilder_.dispose(); - authorStatsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.AuthorStats authorStats = 44; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder getAuthorStatsBuilder() { - bitField1_ |= 0x00000800; - onChanged(); - return getAuthorStatsFieldBuilder().getBuilder(); - } - /** - * .User.AuthorStats authorStats = 44; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder getAuthorStatsOrBuilder() { - if (authorStatsBuilder_ != null) { - return authorStatsBuilder_.getMessageOrBuilder(); - } else { - return authorStats_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.getDefaultInstance() : authorStats_; - } - } - /** - * .User.AuthorStats authorStats = 44; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder> - getAuthorStatsFieldBuilder() { - if (authorStatsBuilder_ == null) { - authorStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStats.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthorStatsOrBuilder>( - getAuthorStats(), - getParentForChildren(), - isClean()); - authorStats_ = null; - } - return authorStatsBuilder_; - } - - private java.util.List topFansList_ = - java.util.Collections.emptyList(); - private void ensureTopFansListIsMutable() { - if (!((bitField1_ & 0x00001000) != 0)) { - topFansList_ = new java.util.ArrayList(topFansList_); - bitField1_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> topFansListBuilder_; - - /** - * repeated .User topFansList = 45; - */ - public java.util.List getTopFansListList() { - if (topFansListBuilder_ == null) { - return java.util.Collections.unmodifiableList(topFansList_); - } else { - return topFansListBuilder_.getMessageList(); - } - } - /** - * repeated .User topFansList = 45; - */ - public int getTopFansListCount() { - if (topFansListBuilder_ == null) { - return topFansList_.size(); - } else { - return topFansListBuilder_.getCount(); - } - } - /** - * repeated .User topFansList = 45; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getTopFansList(int index) { - if (topFansListBuilder_ == null) { - return topFansList_.get(index); - } else { - return topFansListBuilder_.getMessage(index); - } - } - /** - * repeated .User topFansList = 45; - */ - public Builder setTopFansList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (topFansListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopFansListIsMutable(); - topFansList_.set(index, value); - onChanged(); - } else { - topFansListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder setTopFansList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (topFansListBuilder_ == null) { - ensureTopFansListIsMutable(); - topFansList_.set(index, builderForValue.build()); - onChanged(); - } else { - topFansListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder addTopFansList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (topFansListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopFansListIsMutable(); - topFansList_.add(value); - onChanged(); - } else { - topFansListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder addTopFansList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User value) { - if (topFansListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTopFansListIsMutable(); - topFansList_.add(index, value); - onChanged(); - } else { - topFansListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder addTopFansList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (topFansListBuilder_ == null) { - ensureTopFansListIsMutable(); - topFansList_.add(builderForValue.build()); - onChanged(); - } else { - topFansListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder addTopFansList( - int index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder builderForValue) { - if (topFansListBuilder_ == null) { - ensureTopFansListIsMutable(); - topFansList_.add(index, builderForValue.build()); - onChanged(); - } else { - topFansListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder addAllTopFansList( - java.lang.Iterable values) { - if (topFansListBuilder_ == null) { - ensureTopFansListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topFansList_); - onChanged(); - } else { - topFansListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder clearTopFansList() { - if (topFansListBuilder_ == null) { - topFansList_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00001000); - onChanged(); - } else { - topFansListBuilder_.clear(); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public Builder removeTopFansList(int index) { - if (topFansListBuilder_ == null) { - ensureTopFansListIsMutable(); - topFansList_.remove(index); - onChanged(); - } else { - topFansListBuilder_.remove(index); - } - return this; - } - /** - * repeated .User topFansList = 45; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder getTopFansListBuilder( - int index) { - return getTopFansListFieldBuilder().getBuilder(index); - } - /** - * repeated .User topFansList = 45; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder getTopFansListOrBuilder( - int index) { - if (topFansListBuilder_ == null) { - return topFansList_.get(index); } else { - return topFansListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .User topFansList = 45; - */ - public java.util.List - getTopFansListOrBuilderList() { - if (topFansListBuilder_ != null) { - return topFansListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(topFansList_); - } - } - /** - * repeated .User topFansList = 45; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder addTopFansListBuilder() { - return getTopFansListFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()); - } - /** - * repeated .User topFansList = 45; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder addTopFansListBuilder( - int index) { - return getTopFansListFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.getDefaultInstance()); - } - /** - * repeated .User topFansList = 45; - */ - public java.util.List - getTopFansListBuilderList() { - return getTopFansListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder> - getTopFansListFieldBuilder() { - if (topFansListBuilder_ == null) { - topFansListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.UserOrBuilder>( - topFansList_, - ((bitField1_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - topFansList_ = null; - } - return topFansListBuilder_; - } - - private java.lang.Object secUid_ = ""; - /** - * string secUid = 46; - * @return The secUid. - */ - public java.lang.String getSecUid() { - java.lang.Object ref = secUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secUid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string secUid = 46; - * @return The bytes for secUid. - */ - public com.google.protobuf.ByteString - getSecUidBytes() { - java.lang.Object ref = secUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string secUid = 46; - * @param value The secUid to set. - * @return This builder for chaining. - */ - public Builder setSecUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - secUid_ = value; - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - /** - * string secUid = 46; - * @return This builder for chaining. - */ - public Builder clearSecUid() { - secUid_ = getDefaultInstance().getSecUid(); - bitField1_ = (bitField1_ & ~0x00002000); - onChanged(); - return this; - } - /** - * string secUid = 46; - * @param value The bytes for secUid to set. - * @return This builder for chaining. - */ - public Builder setSecUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - secUid_ = value; - bitField1_ |= 0x00002000; - onChanged(); - return this; - } - - private int userRole_ ; - /** - * int32 userRole = 47; - * @return The userRole. - */ - @java.lang.Override - public int getUserRole() { - return userRole_; - } - /** - * int32 userRole = 47; - * @param value The userRole to set. - * @return This builder for chaining. - */ - public Builder setUserRole(int value) { - - userRole_ = value; - bitField1_ |= 0x00004000; - onChanged(); - return this; - } - /** - * int32 userRole = 47; - * @return This builder for chaining. - */ - public Builder clearUserRole() { - bitField1_ = (bitField1_ & ~0x00004000); - userRole_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams xiguaInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder> xiguaInfoBuilder_; - /** - * .User.XiguaParams xiguaInfo = 48; - * @return Whether the xiguaInfo field is set. - */ - public boolean hasXiguaInfo() { - return ((bitField1_ & 0x00008000) != 0); - } - /** - * .User.XiguaParams xiguaInfo = 48; - * @return The xiguaInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams getXiguaInfo() { - if (xiguaInfoBuilder_ == null) { - return xiguaInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance() : xiguaInfo_; - } else { - return xiguaInfoBuilder_.getMessage(); - } - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - public Builder setXiguaInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams value) { - if (xiguaInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - xiguaInfo_ = value; - } else { - xiguaInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - public Builder setXiguaInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder builderForValue) { - if (xiguaInfoBuilder_ == null) { - xiguaInfo_ = builderForValue.build(); - } else { - xiguaInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - public Builder mergeXiguaInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams value) { - if (xiguaInfoBuilder_ == null) { - if (((bitField1_ & 0x00008000) != 0) && - xiguaInfo_ != null && - xiguaInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance()) { - getXiguaInfoBuilder().mergeFrom(value); - } else { - xiguaInfo_ = value; - } - } else { - xiguaInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00008000; - onChanged(); - return this; - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - public Builder clearXiguaInfo() { - bitField1_ = (bitField1_ & ~0x00008000); - xiguaInfo_ = null; - if (xiguaInfoBuilder_ != null) { - xiguaInfoBuilder_.dispose(); - xiguaInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder getXiguaInfoBuilder() { - bitField1_ |= 0x00008000; - onChanged(); - return getXiguaInfoFieldBuilder().getBuilder(); - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder getXiguaInfoOrBuilder() { - if (xiguaInfoBuilder_ != null) { - return xiguaInfoBuilder_.getMessageOrBuilder(); - } else { - return xiguaInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.getDefaultInstance() : xiguaInfo_; - } - } - /** - * .User.XiguaParams xiguaInfo = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder> - getXiguaInfoFieldBuilder() { - if (xiguaInfoBuilder_ == null) { - xiguaInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParams.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.XiguaParamsOrBuilder>( - getXiguaInfo(), - getParentForChildren(), - isClean()); - xiguaInfo_ = null; - } - return xiguaInfoBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo activityReward_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder> activityRewardBuilder_; - /** - * .User.ActivityInfo activityReward = 49; - * @return Whether the activityReward field is set. - */ - public boolean hasActivityReward() { - return ((bitField1_ & 0x00010000) != 0); - } - /** - * .User.ActivityInfo activityReward = 49; - * @return The activityReward. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo getActivityReward() { - if (activityRewardBuilder_ == null) { - return activityReward_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance() : activityReward_; - } else { - return activityRewardBuilder_.getMessage(); - } - } - /** - * .User.ActivityInfo activityReward = 49; - */ - public Builder setActivityReward(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo value) { - if (activityRewardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - activityReward_ = value; - } else { - activityRewardBuilder_.setMessage(value); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * .User.ActivityInfo activityReward = 49; - */ - public Builder setActivityReward( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder builderForValue) { - if (activityRewardBuilder_ == null) { - activityReward_ = builderForValue.build(); - } else { - activityRewardBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * .User.ActivityInfo activityReward = 49; - */ - public Builder mergeActivityReward(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo value) { - if (activityRewardBuilder_ == null) { - if (((bitField1_ & 0x00010000) != 0) && - activityReward_ != null && - activityReward_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance()) { - getActivityRewardBuilder().mergeFrom(value); - } else { - activityReward_ = value; - } - } else { - activityRewardBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00010000; - onChanged(); - return this; - } - /** - * .User.ActivityInfo activityReward = 49; - */ - public Builder clearActivityReward() { - bitField1_ = (bitField1_ & ~0x00010000); - activityReward_ = null; - if (activityRewardBuilder_ != null) { - activityRewardBuilder_.dispose(); - activityRewardBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.ActivityInfo activityReward = 49; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder getActivityRewardBuilder() { - bitField1_ |= 0x00010000; - onChanged(); - return getActivityRewardFieldBuilder().getBuilder(); - } - /** - * .User.ActivityInfo activityReward = 49; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder getActivityRewardOrBuilder() { - if (activityRewardBuilder_ != null) { - return activityRewardBuilder_.getMessageOrBuilder(); - } else { - return activityReward_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.getDefaultInstance() : activityReward_; - } - } - /** - * .User.ActivityInfo activityReward = 49; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder> - getActivityRewardFieldBuilder() { - if (activityRewardBuilder_ == null) { - activityRewardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ActivityInfoOrBuilder>( - getActivityReward(), - getParentForChildren(), - isClean()); - activityReward_ = null; - } - return activityRewardBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo nobleInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder> nobleInfoBuilder_; - /** - * .User.NobleLevelInfo nobleInfo = 50; - * @return Whether the nobleInfo field is set. - */ - public boolean hasNobleInfo() { - return ((bitField1_ & 0x00020000) != 0); - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - * @return The nobleInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo getNobleInfo() { - if (nobleInfoBuilder_ == null) { - return nobleInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance() : nobleInfo_; - } else { - return nobleInfoBuilder_.getMessage(); - } - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - public Builder setNobleInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo value) { - if (nobleInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nobleInfo_ = value; - } else { - nobleInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - public Builder setNobleInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder builderForValue) { - if (nobleInfoBuilder_ == null) { - nobleInfo_ = builderForValue.build(); - } else { - nobleInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - public Builder mergeNobleInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo value) { - if (nobleInfoBuilder_ == null) { - if (((bitField1_ & 0x00020000) != 0) && - nobleInfo_ != null && - nobleInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance()) { - getNobleInfoBuilder().mergeFrom(value); - } else { - nobleInfo_ = value; - } - } else { - nobleInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00020000; - onChanged(); - return this; - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - public Builder clearNobleInfo() { - bitField1_ = (bitField1_ & ~0x00020000); - nobleInfo_ = null; - if (nobleInfoBuilder_ != null) { - nobleInfoBuilder_.dispose(); - nobleInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder getNobleInfoBuilder() { - bitField1_ |= 0x00020000; - onChanged(); - return getNobleInfoFieldBuilder().getBuilder(); - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder getNobleInfoOrBuilder() { - if (nobleInfoBuilder_ != null) { - return nobleInfoBuilder_.getMessageOrBuilder(); - } else { - return nobleInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.getDefaultInstance() : nobleInfo_; - } - } - /** - * .User.NobleLevelInfo nobleInfo = 50; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder> - getNobleInfoFieldBuilder() { - if (nobleInfoBuilder_ == null) { - nobleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.NobleLevelInfoOrBuilder>( - getNobleInfo(), - getParentForChildren(), - isClean()); - nobleInfo_ = null; - } - return nobleInfoBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo brotherhoodInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder> brotherhoodInfoBuilder_; - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - * @return Whether the brotherhoodInfo field is set. - */ - public boolean hasBrotherhoodInfo() { - return ((bitField1_ & 0x00040000) != 0); - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - * @return The brotherhoodInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo getBrotherhoodInfo() { - if (brotherhoodInfoBuilder_ == null) { - return brotherhoodInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance() : brotherhoodInfo_; - } else { - return brotherhoodInfoBuilder_.getMessage(); - } - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - public Builder setBrotherhoodInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo value) { - if (brotherhoodInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - brotherhoodInfo_ = value; - } else { - brotherhoodInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - public Builder setBrotherhoodInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder builderForValue) { - if (brotherhoodInfoBuilder_ == null) { - brotherhoodInfo_ = builderForValue.build(); - } else { - brotherhoodInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - public Builder mergeBrotherhoodInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo value) { - if (brotherhoodInfoBuilder_ == null) { - if (((bitField1_ & 0x00040000) != 0) && - brotherhoodInfo_ != null && - brotherhoodInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance()) { - getBrotherhoodInfoBuilder().mergeFrom(value); - } else { - brotherhoodInfo_ = value; - } - } else { - brotherhoodInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - public Builder clearBrotherhoodInfo() { - bitField1_ = (bitField1_ & ~0x00040000); - brotherhoodInfo_ = null; - if (brotherhoodInfoBuilder_ != null) { - brotherhoodInfoBuilder_.dispose(); - brotherhoodInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder getBrotherhoodInfoBuilder() { - bitField1_ |= 0x00040000; - onChanged(); - return getBrotherhoodInfoFieldBuilder().getBuilder(); - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder getBrotherhoodInfoOrBuilder() { - if (brotherhoodInfoBuilder_ != null) { - return brotherhoodInfoBuilder_.getMessageOrBuilder(); - } else { - return brotherhoodInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.getDefaultInstance() : brotherhoodInfo_; - } - } - /** - * .User.BrotherhoodInfo brotherhoodInfo = 51; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder> - getBrotherhoodInfoFieldBuilder() { - if (brotherhoodInfoBuilder_ == null) { - brotherhoodInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.BrotherhoodInfoOrBuilder>( - getBrotherhoodInfo(), - getParentForChildren(), - isClean()); - brotherhoodInfo_ = null; - } - return brotherhoodInfoBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image personalCard_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> personalCardBuilder_; - /** - * .Image personalCard = 52; - * @return Whether the personalCard field is set. - */ - public boolean hasPersonalCard() { - return ((bitField1_ & 0x00080000) != 0); - } - /** - * .Image personalCard = 52; - * @return The personalCard. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getPersonalCard() { - if (personalCardBuilder_ == null) { - return personalCard_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : personalCard_; - } else { - return personalCardBuilder_.getMessage(); - } - } - /** - * .Image personalCard = 52; - */ - public Builder setPersonalCard(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (personalCardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - personalCard_ = value; - } else { - personalCardBuilder_.setMessage(value); - } - bitField1_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image personalCard = 52; - */ - public Builder setPersonalCard( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (personalCardBuilder_ == null) { - personalCard_ = builderForValue.build(); - } else { - personalCardBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image personalCard = 52; - */ - public Builder mergePersonalCard(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (personalCardBuilder_ == null) { - if (((bitField1_ & 0x00080000) != 0) && - personalCard_ != null && - personalCard_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getPersonalCardBuilder().mergeFrom(value); - } else { - personalCard_ = value; - } - } else { - personalCardBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00080000; - onChanged(); - return this; - } - /** - * .Image personalCard = 52; - */ - public Builder clearPersonalCard() { - bitField1_ = (bitField1_ & ~0x00080000); - personalCard_ = null; - if (personalCardBuilder_ != null) { - personalCardBuilder_.dispose(); - personalCardBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image personalCard = 52; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getPersonalCardBuilder() { - bitField1_ |= 0x00080000; - onChanged(); - return getPersonalCardFieldBuilder().getBuilder(); - } - /** - * .Image personalCard = 52; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getPersonalCardOrBuilder() { - if (personalCardBuilder_ != null) { - return personalCardBuilder_.getMessageOrBuilder(); - } else { - return personalCard_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : personalCard_; - } - } - /** - * .Image personalCard = 52; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getPersonalCardFieldBuilder() { - if (personalCardBuilder_ == null) { - personalCardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getPersonalCard(), - getParentForChildren(), - isClean()); - personalCard_ = null; - } - return personalCardBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo authenticationInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder> authenticationInfoBuilder_; - /** - * .User.AuthenticationInfo authenticationInfo = 53; - * @return Whether the authenticationInfo field is set. - */ - public boolean hasAuthenticationInfo() { - return ((bitField1_ & 0x00100000) != 0); - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - * @return The authenticationInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo getAuthenticationInfo() { - if (authenticationInfoBuilder_ == null) { - return authenticationInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; - } else { - return authenticationInfoBuilder_.getMessage(); - } - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - public Builder setAuthenticationInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo value) { - if (authenticationInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authenticationInfo_ = value; - } else { - authenticationInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - public Builder setAuthenticationInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder builderForValue) { - if (authenticationInfoBuilder_ == null) { - authenticationInfo_ = builderForValue.build(); - } else { - authenticationInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - public Builder mergeAuthenticationInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo value) { - if (authenticationInfoBuilder_ == null) { - if (((bitField1_ & 0x00100000) != 0) && - authenticationInfo_ != null && - authenticationInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance()) { - getAuthenticationInfoBuilder().mergeFrom(value); - } else { - authenticationInfo_ = value; - } - } else { - authenticationInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - public Builder clearAuthenticationInfo() { - bitField1_ = (bitField1_ & ~0x00100000); - authenticationInfo_ = null; - if (authenticationInfoBuilder_ != null) { - authenticationInfoBuilder_.dispose(); - authenticationInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder getAuthenticationInfoBuilder() { - bitField1_ |= 0x00100000; - onChanged(); - return getAuthenticationInfoFieldBuilder().getBuilder(); - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() { - if (authenticationInfoBuilder_ != null) { - return authenticationInfoBuilder_.getMessageOrBuilder(); - } else { - return authenticationInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.getDefaultInstance() : authenticationInfo_; - } - } - /** - * .User.AuthenticationInfo authenticationInfo = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder> - getAuthenticationInfoFieldBuilder() { - if (authenticationInfoBuilder_ == null) { - authenticationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AuthenticationInfoOrBuilder>( - getAuthenticationInfo(), - getParentForChildren(), - isClean()); - authenticationInfo_ = null; - } - return authenticationInfoBuilder_; - } - - private int authorizationInfo_ ; - /** - * int32 authorizationInfo = 54; - * @return The authorizationInfo. - */ - @java.lang.Override - public int getAuthorizationInfo() { - return authorizationInfo_; - } - /** - * int32 authorizationInfo = 54; - * @param value The authorizationInfo to set. - * @return This builder for chaining. - */ - public Builder setAuthorizationInfo(int value) { - - authorizationInfo_ = value; - bitField1_ |= 0x00200000; - onChanged(); - return this; - } - /** - * int32 authorizationInfo = 54; - * @return This builder for chaining. - */ - public Builder clearAuthorizationInfo() { - bitField1_ = (bitField1_ & ~0x00200000); - authorizationInfo_ = 0; - onChanged(); - return this; - } - - private int adversaryAuthorizationInfo_ ; - /** - * int32 adversaryAuthorizationInfo = 55; - * @return The adversaryAuthorizationInfo. - */ - @java.lang.Override - public int getAdversaryAuthorizationInfo() { - return adversaryAuthorizationInfo_; - } - /** - * int32 adversaryAuthorizationInfo = 55; - * @param value The adversaryAuthorizationInfo to set. - * @return This builder for chaining. - */ - public Builder setAdversaryAuthorizationInfo(int value) { - - adversaryAuthorizationInfo_ = value; - bitField1_ |= 0x00400000; - onChanged(); - return this; - } - /** - * int32 adversaryAuthorizationInfo = 55; - * @return This builder for chaining. - */ - public Builder clearAdversaryAuthorizationInfo() { - bitField1_ = (bitField1_ & ~0x00400000); - adversaryAuthorizationInfo_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo poiInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder> poiInfoBuilder_; - /** - * .User.PoiInfo poiInfo = 56; - * @return Whether the poiInfo field is set. - */ - public boolean hasPoiInfo() { - return ((bitField1_ & 0x00800000) != 0); - } - /** - * .User.PoiInfo poiInfo = 56; - * @return The poiInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo getPoiInfo() { - if (poiInfoBuilder_ == null) { - return poiInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance() : poiInfo_; - } else { - return poiInfoBuilder_.getMessage(); - } - } - /** - * .User.PoiInfo poiInfo = 56; - */ - public Builder setPoiInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo value) { - if (poiInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - poiInfo_ = value; - } else { - poiInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .User.PoiInfo poiInfo = 56; - */ - public Builder setPoiInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder builderForValue) { - if (poiInfoBuilder_ == null) { - poiInfo_ = builderForValue.build(); - } else { - poiInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .User.PoiInfo poiInfo = 56; - */ - public Builder mergePoiInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo value) { - if (poiInfoBuilder_ == null) { - if (((bitField1_ & 0x00800000) != 0) && - poiInfo_ != null && - poiInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance()) { - getPoiInfoBuilder().mergeFrom(value); - } else { - poiInfo_ = value; - } - } else { - poiInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x00800000; - onChanged(); - return this; - } - /** - * .User.PoiInfo poiInfo = 56; - */ - public Builder clearPoiInfo() { - bitField1_ = (bitField1_ & ~0x00800000); - poiInfo_ = null; - if (poiInfoBuilder_ != null) { - poiInfoBuilder_.dispose(); - poiInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.PoiInfo poiInfo = 56; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder getPoiInfoBuilder() { - bitField1_ |= 0x00800000; - onChanged(); - return getPoiInfoFieldBuilder().getBuilder(); - } - /** - * .User.PoiInfo poiInfo = 56; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder getPoiInfoOrBuilder() { - if (poiInfoBuilder_ != null) { - return poiInfoBuilder_.getMessageOrBuilder(); - } else { - return poiInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.getDefaultInstance() : poiInfo_; - } - } - /** - * .User.PoiInfo poiInfo = 56; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder> - getPoiInfoFieldBuilder() { - if (poiInfoBuilder_ == null) { - poiInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.PoiInfoOrBuilder>( - getPoiInfo(), - getParentForChildren(), - isClean()); - poiInfo_ = null; - } - return poiInfoBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image mediaBadgeImageListList_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> mediaBadgeImageListListBuilder_; - /** - * .Image mediaBadgeImageListList = 57; - * @return Whether the mediaBadgeImageListList field is set. - */ - public boolean hasMediaBadgeImageListList() { - return ((bitField1_ & 0x01000000) != 0); - } - /** - * .Image mediaBadgeImageListList = 57; - * @return The mediaBadgeImageListList. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getMediaBadgeImageListList() { - if (mediaBadgeImageListListBuilder_ == null) { - return mediaBadgeImageListList_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : mediaBadgeImageListList_; - } else { - return mediaBadgeImageListListBuilder_.getMessage(); - } - } - /** - * .Image mediaBadgeImageListList = 57; - */ - public Builder setMediaBadgeImageListList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (mediaBadgeImageListListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - mediaBadgeImageListList_ = value; - } else { - mediaBadgeImageListListBuilder_.setMessage(value); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * .Image mediaBadgeImageListList = 57; - */ - public Builder setMediaBadgeImageListList( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (mediaBadgeImageListListBuilder_ == null) { - mediaBadgeImageListList_ = builderForValue.build(); - } else { - mediaBadgeImageListListBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * .Image mediaBadgeImageListList = 57; - */ - public Builder mergeMediaBadgeImageListList(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (mediaBadgeImageListListBuilder_ == null) { - if (((bitField1_ & 0x01000000) != 0) && - mediaBadgeImageListList_ != null && - mediaBadgeImageListList_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getMediaBadgeImageListListBuilder().mergeFrom(value); - } else { - mediaBadgeImageListList_ = value; - } - } else { - mediaBadgeImageListListBuilder_.mergeFrom(value); - } - bitField1_ |= 0x01000000; - onChanged(); - return this; - } - /** - * .Image mediaBadgeImageListList = 57; - */ - public Builder clearMediaBadgeImageListList() { - bitField1_ = (bitField1_ & ~0x01000000); - mediaBadgeImageListList_ = null; - if (mediaBadgeImageListListBuilder_ != null) { - mediaBadgeImageListListBuilder_.dispose(); - mediaBadgeImageListListBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image mediaBadgeImageListList = 57; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getMediaBadgeImageListListBuilder() { - bitField1_ |= 0x01000000; - onChanged(); - return getMediaBadgeImageListListFieldBuilder().getBuilder(); - } - /** - * .Image mediaBadgeImageListList = 57; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getMediaBadgeImageListListOrBuilder() { - if (mediaBadgeImageListListBuilder_ != null) { - return mediaBadgeImageListListBuilder_.getMessageOrBuilder(); - } else { - return mediaBadgeImageListList_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : mediaBadgeImageListList_; - } - } - /** - * .Image mediaBadgeImageListList = 57; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getMediaBadgeImageListListFieldBuilder() { - if (mediaBadgeImageListListBuilder_ == null) { - mediaBadgeImageListListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getMediaBadgeImageListList(), - getParentForChildren(), - isClean()); - mediaBadgeImageListList_ = null; - } - return mediaBadgeImageListListBuilder_; - } - - private int adversaryUserStatus_ ; - /** - * int32 adversaryUserStatus = 58; - * @return The adversaryUserStatus. - */ - @java.lang.Override - public int getAdversaryUserStatus() { - return adversaryUserStatus_; - } - /** - * int32 adversaryUserStatus = 58; - * @param value The adversaryUserStatus to set. - * @return This builder for chaining. - */ - public Builder setAdversaryUserStatus(int value) { - - adversaryUserStatus_ = value; - bitField1_ |= 0x02000000; - onChanged(); - return this; - } - /** - * int32 adversaryUserStatus = 58; - * @return This builder for chaining. - */ - public Builder clearAdversaryUserStatus() { - bitField1_ = (bitField1_ & ~0x02000000); - adversaryUserStatus_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo userVipInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder> userVipInfoBuilder_; - /** - * .User.UserVIPInfo userVipInfo = 59; - * @return Whether the userVipInfo field is set. - */ - public boolean hasUserVipInfo() { - return ((bitField1_ & 0x04000000) != 0); - } - /** - * .User.UserVIPInfo userVipInfo = 59; - * @return The userVipInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo getUserVipInfo() { - if (userVipInfoBuilder_ == null) { - return userVipInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance() : userVipInfo_; - } else { - return userVipInfoBuilder_.getMessage(); - } - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - public Builder setUserVipInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo value) { - if (userVipInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userVipInfo_ = value; - } else { - userVipInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - public Builder setUserVipInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder builderForValue) { - if (userVipInfoBuilder_ == null) { - userVipInfo_ = builderForValue.build(); - } else { - userVipInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - public Builder mergeUserVipInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo value) { - if (userVipInfoBuilder_ == null) { - if (((bitField1_ & 0x04000000) != 0) && - userVipInfo_ != null && - userVipInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance()) { - getUserVipInfoBuilder().mergeFrom(value); - } else { - userVipInfo_ = value; - } - } else { - userVipInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x04000000; - onChanged(); - return this; - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - public Builder clearUserVipInfo() { - bitField1_ = (bitField1_ & ~0x04000000); - userVipInfo_ = null; - if (userVipInfoBuilder_ != null) { - userVipInfoBuilder_.dispose(); - userVipInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder getUserVipInfoBuilder() { - bitField1_ |= 0x04000000; - onChanged(); - return getUserVipInfoFieldBuilder().getBuilder(); - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder getUserVipInfoOrBuilder() { - if (userVipInfoBuilder_ != null) { - return userVipInfoBuilder_.getMessageOrBuilder(); - } else { - return userVipInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.getDefaultInstance() : userVipInfo_; - } - } - /** - * .User.UserVIPInfo userVipInfo = 59; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder> - getUserVipInfoFieldBuilder() { - if (userVipInfoBuilder_ == null) { - userVipInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserVIPInfoOrBuilder>( - getUserVipInfo(), - getParentForChildren(), - isClean()); - userVipInfo_ = null; - } - return userVipInfoBuilder_; - } - - private com.google.protobuf.Internal.LongList commerceWebcastConfigIdsList_ = emptyLongList(); - private void ensureCommerceWebcastConfigIdsListIsMutable() { - if (!((bitField1_ & 0x08000000) != 0)) { - commerceWebcastConfigIdsList_ = mutableCopy(commerceWebcastConfigIdsList_); - bitField1_ |= 0x08000000; - } - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return A list containing the commerceWebcastConfigIdsList. - */ - public java.util.List - getCommerceWebcastConfigIdsListList() { - return ((bitField1_ & 0x08000000) != 0) ? - java.util.Collections.unmodifiableList(commerceWebcastConfigIdsList_) : commerceWebcastConfigIdsList_; - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return The count of commerceWebcastConfigIdsList. - */ - public int getCommerceWebcastConfigIdsListCount() { - return commerceWebcastConfigIdsList_.size(); - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @param index The index of the element to return. - * @return The commerceWebcastConfigIdsList at the given index. - */ - public long getCommerceWebcastConfigIdsList(int index) { - return commerceWebcastConfigIdsList_.getLong(index); - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @param index The index to set the value at. - * @param value The commerceWebcastConfigIdsList to set. - * @return This builder for chaining. - */ - public Builder setCommerceWebcastConfigIdsList( - int index, long value) { - - ensureCommerceWebcastConfigIdsListIsMutable(); - commerceWebcastConfigIdsList_.setLong(index, value); - onChanged(); - return this; - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @param value The commerceWebcastConfigIdsList to add. - * @return This builder for chaining. - */ - public Builder addCommerceWebcastConfigIdsList(long value) { - - ensureCommerceWebcastConfigIdsListIsMutable(); - commerceWebcastConfigIdsList_.addLong(value); - onChanged(); - return this; - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @param values The commerceWebcastConfigIdsList to add. - * @return This builder for chaining. - */ - public Builder addAllCommerceWebcastConfigIdsList( - java.lang.Iterable values) { - ensureCommerceWebcastConfigIdsListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, commerceWebcastConfigIdsList_); - onChanged(); - return this; - } - /** - * repeated int64 commerceWebcastConfigIdsList = 60; - * @return This builder for chaining. - */ - public Builder clearCommerceWebcastConfigIdsList() { - commerceWebcastConfigIdsList_ = emptyLongList(); - bitField1_ = (bitField1_ & ~0x08000000); - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image badgeImageListV2List_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> badgeImageListV2ListBuilder_; - /** - * .Image badgeImageListV2List = 61; - * @return Whether the badgeImageListV2List field is set. - */ - public boolean hasBadgeImageListV2List() { - return ((bitField1_ & 0x10000000) != 0); - } - /** - * .Image badgeImageListV2List = 61; - * @return The badgeImageListV2List. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getBadgeImageListV2List() { - if (badgeImageListV2ListBuilder_ == null) { - return badgeImageListV2List_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListV2List_; - } else { - return badgeImageListV2ListBuilder_.getMessage(); - } - } - /** - * .Image badgeImageListV2List = 61; - */ - public Builder setBadgeImageListV2List(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (badgeImageListV2ListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - badgeImageListV2List_ = value; - } else { - badgeImageListV2ListBuilder_.setMessage(value); - } - bitField1_ |= 0x10000000; - onChanged(); - return this; - } - /** - * .Image badgeImageListV2List = 61; - */ - public Builder setBadgeImageListV2List( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (badgeImageListV2ListBuilder_ == null) { - badgeImageListV2List_ = builderForValue.build(); - } else { - badgeImageListV2ListBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x10000000; - onChanged(); - return this; - } - /** - * .Image badgeImageListV2List = 61; - */ - public Builder mergeBadgeImageListV2List(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (badgeImageListV2ListBuilder_ == null) { - if (((bitField1_ & 0x10000000) != 0) && - badgeImageListV2List_ != null && - badgeImageListV2List_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getBadgeImageListV2ListBuilder().mergeFrom(value); - } else { - badgeImageListV2List_ = value; - } - } else { - badgeImageListV2ListBuilder_.mergeFrom(value); - } - bitField1_ |= 0x10000000; - onChanged(); - return this; - } - /** - * .Image badgeImageListV2List = 61; - */ - public Builder clearBadgeImageListV2List() { - bitField1_ = (bitField1_ & ~0x10000000); - badgeImageListV2List_ = null; - if (badgeImageListV2ListBuilder_ != null) { - badgeImageListV2ListBuilder_.dispose(); - badgeImageListV2ListBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image badgeImageListV2List = 61; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getBadgeImageListV2ListBuilder() { - bitField1_ |= 0x10000000; - onChanged(); - return getBadgeImageListV2ListFieldBuilder().getBuilder(); - } - /** - * .Image badgeImageListV2List = 61; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getBadgeImageListV2ListOrBuilder() { - if (badgeImageListV2ListBuilder_ != null) { - return badgeImageListV2ListBuilder_.getMessageOrBuilder(); - } else { - return badgeImageListV2List_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : badgeImageListV2List_; - } - } - /** - * .Image badgeImageListV2List = 61; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getBadgeImageListV2ListFieldBuilder() { - if (badgeImageListV2ListBuilder_ == null) { - badgeImageListV2ListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getBadgeImageListV2List(), - getParentForChildren(), - isClean()); - badgeImageListV2List_ = null; - } - return badgeImageListV2ListBuilder_; - } - - private java.lang.Object locationCity_ = ""; - /** - *
-       * IndustryCertification  industryCertification = 62;
-       * 
- * - * string locationCity = 63; - * @return The locationCity. - */ - public java.lang.String getLocationCity() { - java.lang.Object ref = locationCity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationCity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * IndustryCertification  industryCertification = 62;
-       * 
- * - * string locationCity = 63; - * @return The bytes for locationCity. - */ - public com.google.protobuf.ByteString - getLocationCityBytes() { - java.lang.Object ref = locationCity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - locationCity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * IndustryCertification  industryCertification = 62;
-       * 
- * - * string locationCity = 63; - * @param value The locationCity to set. - * @return This builder for chaining. - */ - public Builder setLocationCity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - locationCity_ = value; - bitField1_ |= 0x20000000; - onChanged(); - return this; - } - /** - *
-       * IndustryCertification  industryCertification = 62;
-       * 
- * - * string locationCity = 63; - * @return This builder for chaining. - */ - public Builder clearLocationCity() { - locationCity_ = getDefaultInstance().getLocationCity(); - bitField1_ = (bitField1_ & ~0x20000000); - onChanged(); - return this; - } - /** - *
-       * IndustryCertification  industryCertification = 62;
-       * 
- * - * string locationCity = 63; - * @param value The bytes for locationCity to set. - * @return This builder for chaining. - */ - public Builder setLocationCityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - locationCity_ = value; - bitField1_ |= 0x20000000; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo fansGroupInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder> fansGroupInfoBuilder_; - /** - * .User.FansGroupInfo fansGroupInfo = 64; - * @return Whether the fansGroupInfo field is set. - */ - public boolean hasFansGroupInfo() { - return ((bitField1_ & 0x40000000) != 0); - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - * @return The fansGroupInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo getFansGroupInfo() { - if (fansGroupInfoBuilder_ == null) { - return fansGroupInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance() : fansGroupInfo_; - } else { - return fansGroupInfoBuilder_.getMessage(); - } - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - public Builder setFansGroupInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo value) { - if (fansGroupInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fansGroupInfo_ = value; - } else { - fansGroupInfoBuilder_.setMessage(value); - } - bitField1_ |= 0x40000000; - onChanged(); - return this; - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - public Builder setFansGroupInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder builderForValue) { - if (fansGroupInfoBuilder_ == null) { - fansGroupInfo_ = builderForValue.build(); - } else { - fansGroupInfoBuilder_.setMessage(builderForValue.build()); - } - bitField1_ |= 0x40000000; - onChanged(); - return this; - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - public Builder mergeFansGroupInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo value) { - if (fansGroupInfoBuilder_ == null) { - if (((bitField1_ & 0x40000000) != 0) && - fansGroupInfo_ != null && - fansGroupInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance()) { - getFansGroupInfoBuilder().mergeFrom(value); - } else { - fansGroupInfo_ = value; - } - } else { - fansGroupInfoBuilder_.mergeFrom(value); - } - bitField1_ |= 0x40000000; - onChanged(); - return this; - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - public Builder clearFansGroupInfo() { - bitField1_ = (bitField1_ & ~0x40000000); - fansGroupInfo_ = null; - if (fansGroupInfoBuilder_ != null) { - fansGroupInfoBuilder_.dispose(); - fansGroupInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder getFansGroupInfoBuilder() { - bitField1_ |= 0x40000000; - onChanged(); - return getFansGroupInfoFieldBuilder().getBuilder(); - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder getFansGroupInfoOrBuilder() { - if (fansGroupInfoBuilder_ != null) { - return fansGroupInfoBuilder_.getMessageOrBuilder(); - } else { - return fansGroupInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.getDefaultInstance() : fansGroupInfo_; - } - } - /** - * .User.FansGroupInfo fansGroupInfo = 64; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder> - getFansGroupInfoFieldBuilder() { - if (fansGroupInfoBuilder_ == null) { - fansGroupInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.FansGroupInfoOrBuilder>( - getFansGroupInfo(), - getParentForChildren(), - isClean()); - fansGroupInfo_ = null; - } - return fansGroupInfoBuilder_; - } - - private java.lang.Object remarkName_ = ""; - /** - * string remarkName = 65; - * @return The remarkName. - */ - public java.lang.String getRemarkName() { - java.lang.Object ref = remarkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - remarkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string remarkName = 65; - * @return The bytes for remarkName. - */ - public com.google.protobuf.ByteString - getRemarkNameBytes() { - java.lang.Object ref = remarkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - remarkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string remarkName = 65; - * @param value The remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - remarkName_ = value; - bitField1_ |= 0x80000000; - onChanged(); - return this; - } - /** - * string remarkName = 65; - * @return This builder for chaining. - */ - public Builder clearRemarkName() { - remarkName_ = getDefaultInstance().getRemarkName(); - bitField1_ = (bitField1_ & ~0x80000000); - onChanged(); - return this; - } - /** - * string remarkName = 65; - * @param value The bytes for remarkName to set. - * @return This builder for chaining. - */ - public Builder setRemarkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - remarkName_ = value; - bitField1_ |= 0x80000000; - onChanged(); - return this; - } - - private int mysteryMan_ ; - /** - * int32 mysteryMan = 66; - * @return The mysteryMan. - */ - @java.lang.Override - public int getMysteryMan() { - return mysteryMan_; - } - /** - * int32 mysteryMan = 66; - * @param value The mysteryMan to set. - * @return This builder for chaining. - */ - public Builder setMysteryMan(int value) { - - mysteryMan_ = value; - bitField2_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int32 mysteryMan = 66; - * @return This builder for chaining. - */ - public Builder clearMysteryMan() { - bitField2_ = (bitField2_ & ~0x00000001); - mysteryMan_ = 0; - onChanged(); - return this; - } - - private java.lang.Object webRid_ = ""; - /** - * string webRid = 67; - * @return The webRid. - */ - public java.lang.String getWebRid() { - java.lang.Object ref = webRid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - webRid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string webRid = 67; - * @return The bytes for webRid. - */ - public com.google.protobuf.ByteString - getWebRidBytes() { - java.lang.Object ref = webRid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - webRid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string webRid = 67; - * @param value The webRid to set. - * @return This builder for chaining. - */ - public Builder setWebRid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - webRid_ = value; - bitField2_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string webRid = 67; - * @return This builder for chaining. - */ - public Builder clearWebRid() { - webRid_ = getDefaultInstance().getWebRid(); - bitField2_ = (bitField2_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string webRid = 67; - * @param value The bytes for webRid to set. - * @return This builder for chaining. - */ - public Builder setWebRidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - webRid_ = value; - bitField2_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object desensitizedNickname_ = ""; - /** - * string desensitizedNickname = 68; - * @return The desensitizedNickname. - */ - public java.lang.String getDesensitizedNickname() { - java.lang.Object ref = desensitizedNickname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desensitizedNickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string desensitizedNickname = 68; - * @return The bytes for desensitizedNickname. - */ - public com.google.protobuf.ByteString - getDesensitizedNicknameBytes() { - java.lang.Object ref = desensitizedNickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desensitizedNickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string desensitizedNickname = 68; - * @param value The desensitizedNickname to set. - * @return This builder for chaining. - */ - public Builder setDesensitizedNickname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - desensitizedNickname_ = value; - bitField2_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string desensitizedNickname = 68; - * @return This builder for chaining. - */ - public Builder clearDesensitizedNickname() { - desensitizedNickname_ = getDefaultInstance().getDesensitizedNickname(); - bitField2_ = (bitField2_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string desensitizedNickname = 68; - * @param value The bytes for desensitizedNickname to set. - * @return This builder for chaining. - */ - public Builder setDesensitizedNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - desensitizedNickname_ = value; - bitField2_ |= 0x00000004; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo jAccreditInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder> jAccreditInfoBuilder_; - /** - * .User.JAccreditInfo jAccreditInfo = 69; - * @return Whether the jAccreditInfo field is set. - */ - public boolean hasJAccreditInfo() { - return ((bitField2_ & 0x00000008) != 0); - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - * @return The jAccreditInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo getJAccreditInfo() { - if (jAccreditInfoBuilder_ == null) { - return jAccreditInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance() : jAccreditInfo_; - } else { - return jAccreditInfoBuilder_.getMessage(); - } - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - public Builder setJAccreditInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo value) { - if (jAccreditInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - jAccreditInfo_ = value; - } else { - jAccreditInfoBuilder_.setMessage(value); - } - bitField2_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - public Builder setJAccreditInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder builderForValue) { - if (jAccreditInfoBuilder_ == null) { - jAccreditInfo_ = builderForValue.build(); - } else { - jAccreditInfoBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - public Builder mergeJAccreditInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo value) { - if (jAccreditInfoBuilder_ == null) { - if (((bitField2_ & 0x00000008) != 0) && - jAccreditInfo_ != null && - jAccreditInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance()) { - getJAccreditInfoBuilder().mergeFrom(value); - } else { - jAccreditInfo_ = value; - } - } else { - jAccreditInfoBuilder_.mergeFrom(value); - } - bitField2_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - public Builder clearJAccreditInfo() { - bitField2_ = (bitField2_ & ~0x00000008); - jAccreditInfo_ = null; - if (jAccreditInfoBuilder_ != null) { - jAccreditInfoBuilder_.dispose(); - jAccreditInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder getJAccreditInfoBuilder() { - bitField2_ |= 0x00000008; - onChanged(); - return getJAccreditInfoFieldBuilder().getBuilder(); - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder getJAccreditInfoOrBuilder() { - if (jAccreditInfoBuilder_ != null) { - return jAccreditInfoBuilder_.getMessageOrBuilder(); - } else { - return jAccreditInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.getDefaultInstance() : jAccreditInfo_; - } - } - /** - * .User.JAccreditInfo jAccreditInfo = 69; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder> - getJAccreditInfoFieldBuilder() { - if (jAccreditInfoBuilder_ == null) { - jAccreditInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.JAccreditInfoOrBuilder>( - getJAccreditInfo(), - getParentForChildren(), - isClean()); - jAccreditInfo_ = null; - } - return jAccreditInfoBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe subscribe_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder> subscribeBuilder_; - /** - * .User.Subscribe subscribe = 70; - * @return Whether the subscribe field is set. - */ - public boolean hasSubscribe() { - return ((bitField2_ & 0x00000010) != 0); - } - /** - * .User.Subscribe subscribe = 70; - * @return The subscribe. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe getSubscribe() { - if (subscribeBuilder_ == null) { - return subscribe_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance() : subscribe_; - } else { - return subscribeBuilder_.getMessage(); - } - } - /** - * .User.Subscribe subscribe = 70; - */ - public Builder setSubscribe(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe value) { - if (subscribeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subscribe_ = value; - } else { - subscribeBuilder_.setMessage(value); - } - bitField2_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .User.Subscribe subscribe = 70; - */ - public Builder setSubscribe( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder builderForValue) { - if (subscribeBuilder_ == null) { - subscribe_ = builderForValue.build(); - } else { - subscribeBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .User.Subscribe subscribe = 70; - */ - public Builder mergeSubscribe(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe value) { - if (subscribeBuilder_ == null) { - if (((bitField2_ & 0x00000010) != 0) && - subscribe_ != null && - subscribe_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance()) { - getSubscribeBuilder().mergeFrom(value); - } else { - subscribe_ = value; - } - } else { - subscribeBuilder_.mergeFrom(value); - } - bitField2_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .User.Subscribe subscribe = 70; - */ - public Builder clearSubscribe() { - bitField2_ = (bitField2_ & ~0x00000010); - subscribe_ = null; - if (subscribeBuilder_ != null) { - subscribeBuilder_.dispose(); - subscribeBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.Subscribe subscribe = 70; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder getSubscribeBuilder() { - bitField2_ |= 0x00000010; - onChanged(); - return getSubscribeFieldBuilder().getBuilder(); - } - /** - * .User.Subscribe subscribe = 70; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder getSubscribeOrBuilder() { - if (subscribeBuilder_ != null) { - return subscribeBuilder_.getMessageOrBuilder(); - } else { - return subscribe_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.getDefaultInstance() : subscribe_; - } - } - /** - * .User.Subscribe subscribe = 70; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder> - getSubscribeFieldBuilder() { - if (subscribeBuilder_ == null) { - subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.Subscribe.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.SubscribeOrBuilder>( - getSubscribe(), - getParentForChildren(), - isClean()); - subscribe_ = null; - } - return subscribeBuilder_; - } - - private boolean isAnonymous_ ; - /** - * bool isAnonymous = 71; - * @return The isAnonymous. - */ - @java.lang.Override - public boolean getIsAnonymous() { - return isAnonymous_; - } - /** - * bool isAnonymous = 71; - * @param value The isAnonymous to set. - * @return This builder for chaining. - */ - public Builder setIsAnonymous(boolean value) { - - isAnonymous_ = value; - bitField2_ |= 0x00000020; - onChanged(); - return this; - } - /** - * bool isAnonymous = 71; - * @return This builder for chaining. - */ - public Builder clearIsAnonymous() { - bitField2_ = (bitField2_ & ~0x00000020); - isAnonymous_ = false; - onChanged(); - return this; - } - - private int consumeDiamondLevel_ ; - /** - * int32 consumeDiamondLevel = 72; - * @return The consumeDiamondLevel. - */ - @java.lang.Override - public int getConsumeDiamondLevel() { - return consumeDiamondLevel_; - } - /** - * int32 consumeDiamondLevel = 72; - * @param value The consumeDiamondLevel to set. - * @return This builder for chaining. - */ - public Builder setConsumeDiamondLevel(int value) { - - consumeDiamondLevel_ = value; - bitField2_ |= 0x00000040; - onChanged(); - return this; - } - /** - * int32 consumeDiamondLevel = 72; - * @return This builder for chaining. - */ - public Builder clearConsumeDiamondLevel() { - bitField2_ = (bitField2_ & ~0x00000040); - consumeDiamondLevel_ = 0; - onChanged(); - return this; - } - - private java.lang.Object webcastUid_ = ""; - /** - * string webcastUid = 73; - * @return The webcastUid. - */ - public java.lang.String getWebcastUid() { - java.lang.Object ref = webcastUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - webcastUid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string webcastUid = 73; - * @return The bytes for webcastUid. - */ - public com.google.protobuf.ByteString - getWebcastUidBytes() { - java.lang.Object ref = webcastUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - webcastUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string webcastUid = 73; - * @param value The webcastUid to set. - * @return This builder for chaining. - */ - public Builder setWebcastUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - webcastUid_ = value; - bitField2_ |= 0x00000080; - onChanged(); - return this; - } - /** - * string webcastUid = 73; - * @return This builder for chaining. - */ - public Builder clearWebcastUid() { - webcastUid_ = getDefaultInstance().getWebcastUid(); - bitField2_ = (bitField2_ & ~0x00000080); - onChanged(); - return this; - } - /** - * string webcastUid = 73; - * @param value The bytes for webcastUid to set. - * @return This builder for chaining. - */ - public Builder setWebcastUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - webcastUid_ = value; - bitField2_ |= 0x00000080; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams profileStyleParams_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder> profileStyleParamsBuilder_; - /** - * .User.ProfileStyleParams profileStyleParams = 74; - * @return Whether the profileStyleParams field is set. - */ - public boolean hasProfileStyleParams() { - return ((bitField2_ & 0x00000100) != 0); - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - * @return The profileStyleParams. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams getProfileStyleParams() { - if (profileStyleParamsBuilder_ == null) { - return profileStyleParams_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance() : profileStyleParams_; - } else { - return profileStyleParamsBuilder_.getMessage(); - } - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - public Builder setProfileStyleParams(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams value) { - if (profileStyleParamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profileStyleParams_ = value; - } else { - profileStyleParamsBuilder_.setMessage(value); - } - bitField2_ |= 0x00000100; - onChanged(); - return this; - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - public Builder setProfileStyleParams( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder builderForValue) { - if (profileStyleParamsBuilder_ == null) { - profileStyleParams_ = builderForValue.build(); - } else { - profileStyleParamsBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000100; - onChanged(); - return this; - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - public Builder mergeProfileStyleParams(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams value) { - if (profileStyleParamsBuilder_ == null) { - if (((bitField2_ & 0x00000100) != 0) && - profileStyleParams_ != null && - profileStyleParams_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance()) { - getProfileStyleParamsBuilder().mergeFrom(value); - } else { - profileStyleParams_ = value; - } - } else { - profileStyleParamsBuilder_.mergeFrom(value); - } - bitField2_ |= 0x00000100; - onChanged(); - return this; - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - public Builder clearProfileStyleParams() { - bitField2_ = (bitField2_ & ~0x00000100); - profileStyleParams_ = null; - if (profileStyleParamsBuilder_ != null) { - profileStyleParamsBuilder_.dispose(); - profileStyleParamsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder getProfileStyleParamsBuilder() { - bitField2_ |= 0x00000100; - onChanged(); - return getProfileStyleParamsFieldBuilder().getBuilder(); - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder getProfileStyleParamsOrBuilder() { - if (profileStyleParamsBuilder_ != null) { - return profileStyleParamsBuilder_.getMessageOrBuilder(); - } else { - return profileStyleParams_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.getDefaultInstance() : profileStyleParams_; - } - } - /** - * .User.ProfileStyleParams profileStyleParams = 74; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder> - getProfileStyleParamsFieldBuilder() { - if (profileStyleParamsBuilder_ == null) { - profileStyleParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParams.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.ProfileStyleParamsOrBuilder>( - getProfileStyleParams(), - getParentForChildren(), - isClean()); - profileStyleParams_ = null; - } - return profileStyleParamsBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo userDressInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder> userDressInfoBuilder_; - /** - * .User.UserDressInfo userDressInfo = 75; - * @return Whether the userDressInfo field is set. - */ - public boolean hasUserDressInfo() { - return ((bitField2_ & 0x00000200) != 0); - } - /** - * .User.UserDressInfo userDressInfo = 75; - * @return The userDressInfo. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo getUserDressInfo() { - if (userDressInfoBuilder_ == null) { - return userDressInfo_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance() : userDressInfo_; - } else { - return userDressInfoBuilder_.getMessage(); - } - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - public Builder setUserDressInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo value) { - if (userDressInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userDressInfo_ = value; - } else { - userDressInfoBuilder_.setMessage(value); - } - bitField2_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - public Builder setUserDressInfo( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder builderForValue) { - if (userDressInfoBuilder_ == null) { - userDressInfo_ = builderForValue.build(); - } else { - userDressInfoBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - public Builder mergeUserDressInfo(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo value) { - if (userDressInfoBuilder_ == null) { - if (((bitField2_ & 0x00000200) != 0) && - userDressInfo_ != null && - userDressInfo_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance()) { - getUserDressInfoBuilder().mergeFrom(value); - } else { - userDressInfo_ = value; - } - } else { - userDressInfoBuilder_.mergeFrom(value); - } - bitField2_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - public Builder clearUserDressInfo() { - bitField2_ = (bitField2_ & ~0x00000200); - userDressInfo_ = null; - if (userDressInfoBuilder_ != null) { - userDressInfoBuilder_.dispose(); - userDressInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder getUserDressInfoBuilder() { - bitField2_ |= 0x00000200; - onChanged(); - return getUserDressInfoFieldBuilder().getBuilder(); - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder getUserDressInfoOrBuilder() { - if (userDressInfoBuilder_ != null) { - return userDressInfoBuilder_.getMessageOrBuilder(); - } else { - return userDressInfo_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.getDefaultInstance() : userDressInfo_; - } - } - /** - * .User.UserDressInfo userDressInfo = 75; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder> - getUserDressInfoFieldBuilder() { - if (userDressInfoBuilder_ == null) { - userDressInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfo.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserDressInfoOrBuilder>( - getUserDressInfo(), - getParentForChildren(), - isClean()); - userDressInfo_ = null; - } - return userDressInfoBuilder_; - } - - private boolean allowBeLocated_ ; - /** - * bool allowBeLocated = 1001; - * @return The allowBeLocated. - */ - @java.lang.Override - public boolean getAllowBeLocated() { - return allowBeLocated_; - } - /** - * bool allowBeLocated = 1001; - * @param value The allowBeLocated to set. - * @return This builder for chaining. - */ - public Builder setAllowBeLocated(boolean value) { - - allowBeLocated_ = value; - bitField2_ |= 0x00000400; - onChanged(); - return this; - } - /** - * bool allowBeLocated = 1001; - * @return This builder for chaining. - */ - public Builder clearAllowBeLocated() { - bitField2_ = (bitField2_ & ~0x00000400); - allowBeLocated_ = false; - onChanged(); - return this; - } - - private boolean allowFindByContacts_ ; - /** - * bool allowFindByContacts = 1002; - * @return The allowFindByContacts. - */ - @java.lang.Override - public boolean getAllowFindByContacts() { - return allowFindByContacts_; - } - /** - * bool allowFindByContacts = 1002; - * @param value The allowFindByContacts to set. - * @return This builder for chaining. - */ - public Builder setAllowFindByContacts(boolean value) { - - allowFindByContacts_ = value; - bitField2_ |= 0x00000800; - onChanged(); - return this; - } - /** - * bool allowFindByContacts = 1002; - * @return This builder for chaining. - */ - public Builder clearAllowFindByContacts() { - bitField2_ = (bitField2_ & ~0x00000800); - allowFindByContacts_ = false; - onChanged(); - return this; - } - - private boolean allowOthersDownloadVideo_ ; - /** - * bool allowOthersDownloadVideo = 1003; - * @return The allowOthersDownloadVideo. - */ - @java.lang.Override - public boolean getAllowOthersDownloadVideo() { - return allowOthersDownloadVideo_; - } - /** - * bool allowOthersDownloadVideo = 1003; - * @param value The allowOthersDownloadVideo to set. - * @return This builder for chaining. - */ - public Builder setAllowOthersDownloadVideo(boolean value) { - - allowOthersDownloadVideo_ = value; - bitField2_ |= 0x00001000; - onChanged(); - return this; - } - /** - * bool allowOthersDownloadVideo = 1003; - * @return This builder for chaining. - */ - public Builder clearAllowOthersDownloadVideo() { - bitField2_ = (bitField2_ & ~0x00001000); - allowOthersDownloadVideo_ = false; - onChanged(); - return this; - } - - private boolean allowOthersDownloadWhenSharingVideo_ ; - /** - * bool allowOthersDownloadWhenSharingVideo = 1004; - * @return The allowOthersDownloadWhenSharingVideo. - */ - @java.lang.Override - public boolean getAllowOthersDownloadWhenSharingVideo() { - return allowOthersDownloadWhenSharingVideo_; - } - /** - * bool allowOthersDownloadWhenSharingVideo = 1004; - * @param value The allowOthersDownloadWhenSharingVideo to set. - * @return This builder for chaining. - */ - public Builder setAllowOthersDownloadWhenSharingVideo(boolean value) { - - allowOthersDownloadWhenSharingVideo_ = value; - bitField2_ |= 0x00002000; - onChanged(); - return this; - } - /** - * bool allowOthersDownloadWhenSharingVideo = 1004; - * @return This builder for chaining. - */ - public Builder clearAllowOthersDownloadWhenSharingVideo() { - bitField2_ = (bitField2_ & ~0x00002000); - allowOthersDownloadWhenSharingVideo_ = false; - onChanged(); - return this; - } - - private boolean allowShareShowProfile_ ; - /** - * bool allowShareShowProfile = 1005; - * @return The allowShareShowProfile. - */ - @java.lang.Override - public boolean getAllowShareShowProfile() { - return allowShareShowProfile_; - } - /** - * bool allowShareShowProfile = 1005; - * @param value The allowShareShowProfile to set. - * @return This builder for chaining. - */ - public Builder setAllowShareShowProfile(boolean value) { - - allowShareShowProfile_ = value; - bitField2_ |= 0x00004000; - onChanged(); - return this; - } - /** - * bool allowShareShowProfile = 1005; - * @return This builder for chaining. - */ - public Builder clearAllowShareShowProfile() { - bitField2_ = (bitField2_ & ~0x00004000); - allowShareShowProfile_ = false; - onChanged(); - return this; - } - - private boolean allowShowInGossip_ ; - /** - * bool allowShowInGossip = 1006; - * @return The allowShowInGossip. - */ - @java.lang.Override - public boolean getAllowShowInGossip() { - return allowShowInGossip_; - } - /** - * bool allowShowInGossip = 1006; - * @param value The allowShowInGossip to set. - * @return This builder for chaining. - */ - public Builder setAllowShowInGossip(boolean value) { - - allowShowInGossip_ = value; - bitField2_ |= 0x00008000; - onChanged(); - return this; - } - /** - * bool allowShowInGossip = 1006; - * @return This builder for chaining. - */ - public Builder clearAllowShowInGossip() { - bitField2_ = (bitField2_ & ~0x00008000); - allowShowInGossip_ = false; - onChanged(); - return this; - } - - private boolean allowShowMyAction_ ; - /** - * bool allowShowMyAction = 1007; - * @return The allowShowMyAction. - */ - @java.lang.Override - public boolean getAllowShowMyAction() { - return allowShowMyAction_; - } - /** - * bool allowShowMyAction = 1007; - * @param value The allowShowMyAction to set. - * @return This builder for chaining. - */ - public Builder setAllowShowMyAction(boolean value) { - - allowShowMyAction_ = value; - bitField2_ |= 0x00010000; - onChanged(); - return this; - } - /** - * bool allowShowMyAction = 1007; - * @return This builder for chaining. - */ - public Builder clearAllowShowMyAction() { - bitField2_ = (bitField2_ & ~0x00010000); - allowShowMyAction_ = false; - onChanged(); - return this; - } - - private boolean allowStrangeComment_ ; - /** - * bool allowStrangeComment = 1008; - * @return The allowStrangeComment. - */ - @java.lang.Override - public boolean getAllowStrangeComment() { - return allowStrangeComment_; - } - /** - * bool allowStrangeComment = 1008; - * @param value The allowStrangeComment to set. - * @return This builder for chaining. - */ - public Builder setAllowStrangeComment(boolean value) { - - allowStrangeComment_ = value; - bitField2_ |= 0x00020000; - onChanged(); - return this; - } - /** - * bool allowStrangeComment = 1008; - * @return This builder for chaining. - */ - public Builder clearAllowStrangeComment() { - bitField2_ = (bitField2_ & ~0x00020000); - allowStrangeComment_ = false; - onChanged(); - return this; - } - - private boolean allowUnfollowerComment_ ; - /** - * bool allowUnfollowerComment = 1009; - * @return The allowUnfollowerComment. - */ - @java.lang.Override - public boolean getAllowUnfollowerComment() { - return allowUnfollowerComment_; - } - /** - * bool allowUnfollowerComment = 1009; - * @param value The allowUnfollowerComment to set. - * @return This builder for chaining. - */ - public Builder setAllowUnfollowerComment(boolean value) { - - allowUnfollowerComment_ = value; - bitField2_ |= 0x00040000; - onChanged(); - return this; - } - /** - * bool allowUnfollowerComment = 1009; - * @return This builder for chaining. - */ - public Builder clearAllowUnfollowerComment() { - bitField2_ = (bitField2_ & ~0x00040000); - allowUnfollowerComment_ = false; - onChanged(); - return this; - } - - private boolean allowUseLinkmic_ ; - /** - * bool allowUseLinkmic = 1010; - * @return The allowUseLinkmic. - */ - @java.lang.Override - public boolean getAllowUseLinkmic() { - return allowUseLinkmic_; - } - /** - * bool allowUseLinkmic = 1010; - * @param value The allowUseLinkmic to set. - * @return This builder for chaining. - */ - public Builder setAllowUseLinkmic(boolean value) { - - allowUseLinkmic_ = value; - bitField2_ |= 0x00080000; - onChanged(); - return this; - } - /** - * bool allowUseLinkmic = 1010; - * @return This builder for chaining. - */ - public Builder clearAllowUseLinkmic() { - bitField2_ = (bitField2_ & ~0x00080000); - allowUseLinkmic_ = false; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel anchorLevel_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder> anchorLevelBuilder_; - /** - * .User.AnchorLevel anchorLevel = 1011; - * @return Whether the anchorLevel field is set. - */ - public boolean hasAnchorLevel() { - return ((bitField2_ & 0x00100000) != 0); - } - /** - * .User.AnchorLevel anchorLevel = 1011; - * @return The anchorLevel. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel getAnchorLevel() { - if (anchorLevelBuilder_ == null) { - return anchorLevel_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : anchorLevel_; - } else { - return anchorLevelBuilder_.getMessage(); - } - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - public Builder setAnchorLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel value) { - if (anchorLevelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - anchorLevel_ = value; - } else { - anchorLevelBuilder_.setMessage(value); - } - bitField2_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - public Builder setAnchorLevel( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder builderForValue) { - if (anchorLevelBuilder_ == null) { - anchorLevel_ = builderForValue.build(); - } else { - anchorLevelBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - public Builder mergeAnchorLevel(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel value) { - if (anchorLevelBuilder_ == null) { - if (((bitField2_ & 0x00100000) != 0) && - anchorLevel_ != null && - anchorLevel_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance()) { - getAnchorLevelBuilder().mergeFrom(value); - } else { - anchorLevel_ = value; - } - } else { - anchorLevelBuilder_.mergeFrom(value); - } - bitField2_ |= 0x00100000; - onChanged(); - return this; - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - public Builder clearAnchorLevel() { - bitField2_ = (bitField2_ & ~0x00100000); - anchorLevel_ = null; - if (anchorLevelBuilder_ != null) { - anchorLevelBuilder_.dispose(); - anchorLevelBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder getAnchorLevelBuilder() { - bitField2_ |= 0x00100000; - onChanged(); - return getAnchorLevelFieldBuilder().getBuilder(); - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder getAnchorLevelOrBuilder() { - if (anchorLevelBuilder_ != null) { - return anchorLevelBuilder_.getMessageOrBuilder(); - } else { - return anchorLevel_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.getDefaultInstance() : anchorLevel_; - } - } - /** - * .User.AnchorLevel anchorLevel = 1011; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder> - getAnchorLevelFieldBuilder() { - if (anchorLevelBuilder_ == null) { - anchorLevelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevel.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.AnchorLevelOrBuilder>( - getAnchorLevel(), - getParentForChildren(), - isClean()); - anchorLevel_ = null; - } - return anchorLevelBuilder_; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image avatarJpg_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> avatarJpgBuilder_; - /** - * .Image avatarJpg = 1012; - * @return Whether the avatarJpg field is set. - */ - public boolean hasAvatarJpg() { - return ((bitField2_ & 0x00200000) != 0); - } - /** - * .Image avatarJpg = 1012; - * @return The avatarJpg. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image getAvatarJpg() { - if (avatarJpgBuilder_ == null) { - return avatarJpg_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarJpg_; - } else { - return avatarJpgBuilder_.getMessage(); - } - } - /** - * .Image avatarJpg = 1012; - */ - public Builder setAvatarJpg(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarJpgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatarJpg_ = value; - } else { - avatarJpgBuilder_.setMessage(value); - } - bitField2_ |= 0x00200000; - onChanged(); - return this; - } - /** - * .Image avatarJpg = 1012; - */ - public Builder setAvatarJpg( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder builderForValue) { - if (avatarJpgBuilder_ == null) { - avatarJpg_ = builderForValue.build(); - } else { - avatarJpgBuilder_.setMessage(builderForValue.build()); - } - bitField2_ |= 0x00200000; - onChanged(); - return this; - } - /** - * .Image avatarJpg = 1012; - */ - public Builder mergeAvatarJpg(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image value) { - if (avatarJpgBuilder_ == null) { - if (((bitField2_ & 0x00200000) != 0) && - avatarJpg_ != null && - avatarJpg_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance()) { - getAvatarJpgBuilder().mergeFrom(value); - } else { - avatarJpg_ = value; - } - } else { - avatarJpgBuilder_.mergeFrom(value); - } - bitField2_ |= 0x00200000; - onChanged(); - return this; - } - /** - * .Image avatarJpg = 1012; - */ - public Builder clearAvatarJpg() { - bitField2_ = (bitField2_ & ~0x00200000); - avatarJpg_ = null; - if (avatarJpgBuilder_ != null) { - avatarJpgBuilder_.dispose(); - avatarJpgBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .Image avatarJpg = 1012; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder getAvatarJpgBuilder() { - bitField2_ |= 0x00200000; - onChanged(); - return getAvatarJpgFieldBuilder().getBuilder(); - } - /** - * .Image avatarJpg = 1012; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder getAvatarJpgOrBuilder() { - if (avatarJpgBuilder_ != null) { - return avatarJpgBuilder_.getMessageOrBuilder(); - } else { - return avatarJpg_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.getDefaultInstance() : avatarJpg_; - } - } - /** - * .Image avatarJpg = 1012; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder> - getAvatarJpgFieldBuilder() { - if (avatarJpgBuilder_ == null) { - avatarJpgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.Image.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.ImageOrBuilder>( - getAvatarJpg(), - getParentForChildren(), - isClean()); - avatarJpg_ = null; - } - return avatarJpgBuilder_; - } - - private java.lang.Object bgImgUrl_ = ""; - /** - * string bgImgUrl = 1013; - * @return The bgImgUrl. - */ - public java.lang.String getBgImgUrl() { - java.lang.Object ref = bgImgUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bgImgUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string bgImgUrl = 1013; - * @return The bytes for bgImgUrl. - */ - public com.google.protobuf.ByteString - getBgImgUrlBytes() { - java.lang.Object ref = bgImgUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bgImgUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string bgImgUrl = 1013; - * @param value The bgImgUrl to set. - * @return This builder for chaining. - */ - public Builder setBgImgUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - bgImgUrl_ = value; - bitField2_ |= 0x00400000; - onChanged(); - return this; - } - /** - * string bgImgUrl = 1013; - * @return This builder for chaining. - */ - public Builder clearBgImgUrl() { - bgImgUrl_ = getDefaultInstance().getBgImgUrl(); - bitField2_ = (bitField2_ & ~0x00400000); - onChanged(); - return this; - } - /** - * string bgImgUrl = 1013; - * @param value The bytes for bgImgUrl to set. - * @return This builder for chaining. - */ - public Builder setBgImgUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - bgImgUrl_ = value; - bitField2_ |= 0x00400000; - onChanged(); - return this; - } - - private java.lang.Object birthdayDescription_ = ""; - /** - * string birthdayDescription = 1014; - * @return The birthdayDescription. - */ - public java.lang.String getBirthdayDescription() { - java.lang.Object ref = birthdayDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - birthdayDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string birthdayDescription = 1014; - * @return The bytes for birthdayDescription. - */ - public com.google.protobuf.ByteString - getBirthdayDescriptionBytes() { - java.lang.Object ref = birthdayDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - birthdayDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string birthdayDescription = 1014; - * @param value The birthdayDescription to set. - * @return This builder for chaining. - */ - public Builder setBirthdayDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - birthdayDescription_ = value; - bitField2_ |= 0x00800000; - onChanged(); - return this; - } - /** - * string birthdayDescription = 1014; - * @return This builder for chaining. - */ - public Builder clearBirthdayDescription() { - birthdayDescription_ = getDefaultInstance().getBirthdayDescription(); - bitField2_ = (bitField2_ & ~0x00800000); - onChanged(); - return this; - } - /** - * string birthdayDescription = 1014; - * @param value The bytes for birthdayDescription to set. - * @return This builder for chaining. - */ - public Builder setBirthdayDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - birthdayDescription_ = value; - bitField2_ |= 0x00800000; - onChanged(); - return this; - } - - private boolean birthdayValid_ ; - /** - * bool birthdayValid = 1015; - * @return The birthdayValid. - */ - @java.lang.Override - public boolean getBirthdayValid() { - return birthdayValid_; - } - /** - * bool birthdayValid = 1015; - * @param value The birthdayValid to set. - * @return This builder for chaining. - */ - public Builder setBirthdayValid(boolean value) { - - birthdayValid_ = value; - bitField2_ |= 0x01000000; - onChanged(); - return this; - } - /** - * bool birthdayValid = 1015; - * @return This builder for chaining. - */ - public Builder clearBirthdayValid() { - bitField2_ = (bitField2_ & ~0x01000000); - birthdayValid_ = false; - onChanged(); - return this; - } - - private int blockStatus_ ; - /** - * int32 blockStatus = 1016; - * @return The blockStatus. - */ - @java.lang.Override - public int getBlockStatus() { - return blockStatus_; - } - /** - * int32 blockStatus = 1016; - * @param value The blockStatus to set. - * @return This builder for chaining. - */ - public Builder setBlockStatus(int value) { - - blockStatus_ = value; - bitField2_ |= 0x02000000; - onChanged(); - return this; - } - /** - * int32 blockStatus = 1016; - * @return This builder for chaining. - */ - public Builder clearBlockStatus() { - bitField2_ = (bitField2_ & ~0x02000000); - blockStatus_ = 0; - onChanged(); - return this; - } - - private int commentRestrict_ ; - /** - * int32 commentRestrict = 1017; - * @return The commentRestrict. - */ - @java.lang.Override - public int getCommentRestrict() { - return commentRestrict_; - } - /** - * int32 commentRestrict = 1017; - * @param value The commentRestrict to set. - * @return This builder for chaining. - */ - public Builder setCommentRestrict(int value) { - - commentRestrict_ = value; - bitField2_ |= 0x04000000; - onChanged(); - return this; - } - /** - * int32 commentRestrict = 1017; - * @return This builder for chaining. - */ - public Builder clearCommentRestrict() { - bitField2_ = (bitField2_ & ~0x04000000); - commentRestrict_ = 0; - onChanged(); - return this; - } - - private java.lang.Object constellation_ = ""; - /** - * string constellation = 1018; - * @return The constellation. - */ - public java.lang.String getConstellation() { - java.lang.Object ref = constellation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constellation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string constellation = 1018; - * @return The bytes for constellation. - */ - public com.google.protobuf.ByteString - getConstellationBytes() { - java.lang.Object ref = constellation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - constellation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string constellation = 1018; - * @param value The constellation to set. - * @return This builder for chaining. - */ - public Builder setConstellation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - constellation_ = value; - bitField2_ |= 0x08000000; - onChanged(); - return this; - } - /** - * string constellation = 1018; - * @return This builder for chaining. - */ - public Builder clearConstellation() { - constellation_ = getDefaultInstance().getConstellation(); - bitField2_ = (bitField2_ & ~0x08000000); - onChanged(); - return this; - } - /** - * string constellation = 1018; - * @param value The bytes for constellation to set. - * @return This builder for chaining. - */ - public Builder setConstellationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - constellation_ = value; - bitField2_ |= 0x08000000; - onChanged(); - return this; - } - - private int disableIchat_ ; - /** - * int32 disableIchat = 1019; - * @return The disableIchat. - */ - @java.lang.Override - public int getDisableIchat() { - return disableIchat_; - } - /** - * int32 disableIchat = 1019; - * @param value The disableIchat to set. - * @return This builder for chaining. - */ - public Builder setDisableIchat(int value) { - - disableIchat_ = value; - bitField2_ |= 0x10000000; - onChanged(); - return this; - } - /** - * int32 disableIchat = 1019; - * @return This builder for chaining. - */ - public Builder clearDisableIchat() { - bitField2_ = (bitField2_ & ~0x10000000); - disableIchat_ = 0; - onChanged(); - return this; - } - - private long enableIchatImg_ ; - /** - * int64 enableIchatImg = 1020; - * @return The enableIchatImg. - */ - @java.lang.Override - public long getEnableIchatImg() { - return enableIchatImg_; - } - /** - * int64 enableIchatImg = 1020; - * @param value The enableIchatImg to set. - * @return This builder for chaining. - */ - public Builder setEnableIchatImg(long value) { - - enableIchatImg_ = value; - bitField2_ |= 0x20000000; - onChanged(); - return this; - } - /** - * int64 enableIchatImg = 1020; - * @return This builder for chaining. - */ - public Builder clearEnableIchatImg() { - bitField2_ = (bitField2_ & ~0x20000000); - enableIchatImg_ = 0L; - onChanged(); - return this; - } - - private int exp_ ; - /** - * int32 exp = 1021; - * @return The exp. - */ - @java.lang.Override - public int getExp() { - return exp_; - } - /** - * int32 exp = 1021; - * @param value The exp to set. - * @return This builder for chaining. - */ - public Builder setExp(int value) { - - exp_ = value; - bitField2_ |= 0x40000000; - onChanged(); - return this; - } - /** - * int32 exp = 1021; - * @return This builder for chaining. - */ - public Builder clearExp() { - bitField2_ = (bitField2_ & ~0x40000000); - exp_ = 0; - onChanged(); - return this; - } - - private long fanTicketCount_ ; - /** - * int64 fanTicketCount = 1022; - * @return The fanTicketCount. - */ - @java.lang.Override - public long getFanTicketCount() { - return fanTicketCount_; - } - /** - * int64 fanTicketCount = 1022; - * @param value The fanTicketCount to set. - * @return This builder for chaining. - */ - public Builder setFanTicketCount(long value) { - - fanTicketCount_ = value; - bitField2_ |= 0x80000000; - onChanged(); - return this; - } - /** - * int64 fanTicketCount = 1022; - * @return This builder for chaining. - */ - public Builder clearFanTicketCount() { - bitField2_ = (bitField2_ & ~0x80000000); - fanTicketCount_ = 0L; - onChanged(); - return this; - } - - private boolean foldStrangerChat_ ; - /** - * bool foldStrangerChat = 1023; - * @return The foldStrangerChat. - */ - @java.lang.Override - public boolean getFoldStrangerChat() { - return foldStrangerChat_; - } - /** - * bool foldStrangerChat = 1023; - * @param value The foldStrangerChat to set. - * @return This builder for chaining. - */ - public Builder setFoldStrangerChat(boolean value) { - - foldStrangerChat_ = value; - bitField3_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool foldStrangerChat = 1023; - * @return This builder for chaining. - */ - public Builder clearFoldStrangerChat() { - bitField3_ = (bitField3_ & ~0x00000001); - foldStrangerChat_ = false; - onChanged(); - return this; - } - - private long followStatus_ ; - /** - * int64 followStatus = 1024; - * @return The followStatus. - */ - @java.lang.Override - public long getFollowStatus() { - return followStatus_; - } - /** - * int64 followStatus = 1024; - * @param value The followStatus to set. - * @return This builder for chaining. - */ - public Builder setFollowStatus(long value) { - - followStatus_ = value; - bitField3_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int64 followStatus = 1024; - * @return This builder for chaining. - */ - public Builder clearFollowStatus() { - bitField3_ = (bitField3_ & ~0x00000002); - followStatus_ = 0L; - onChanged(); - return this; - } - - private boolean hotsoonVerified_ ; - /** - * bool hotsoonVerified = 1025; - * @return The hotsoonVerified. - */ - @java.lang.Override - public boolean getHotsoonVerified() { - return hotsoonVerified_; - } - /** - * bool hotsoonVerified = 1025; - * @param value The hotsoonVerified to set. - * @return This builder for chaining. - */ - public Builder setHotsoonVerified(boolean value) { - - hotsoonVerified_ = value; - bitField3_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool hotsoonVerified = 1025; - * @return This builder for chaining. - */ - public Builder clearHotsoonVerified() { - bitField3_ = (bitField3_ & ~0x00000004); - hotsoonVerified_ = false; - onChanged(); - return this; - } - - private java.lang.Object hotsoonVerifiedReason_ = ""; - /** - * string hotsoonVerifiedReason = 1026; - * @return The hotsoonVerifiedReason. - */ - public java.lang.String getHotsoonVerifiedReason() { - java.lang.Object ref = hotsoonVerifiedReason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hotsoonVerifiedReason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string hotsoonVerifiedReason = 1026; - * @return The bytes for hotsoonVerifiedReason. - */ - public com.google.protobuf.ByteString - getHotsoonVerifiedReasonBytes() { - java.lang.Object ref = hotsoonVerifiedReason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hotsoonVerifiedReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string hotsoonVerifiedReason = 1026; - * @param value The hotsoonVerifiedReason to set. - * @return This builder for chaining. - */ - public Builder setHotsoonVerifiedReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - hotsoonVerifiedReason_ = value; - bitField3_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string hotsoonVerifiedReason = 1026; - * @return This builder for chaining. - */ - public Builder clearHotsoonVerifiedReason() { - hotsoonVerifiedReason_ = getDefaultInstance().getHotsoonVerifiedReason(); - bitField3_ = (bitField3_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string hotsoonVerifiedReason = 1026; - * @param value The bytes for hotsoonVerifiedReason to set. - * @return This builder for chaining. - */ - public Builder setHotsoonVerifiedReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - hotsoonVerifiedReason_ = value; - bitField3_ |= 0x00000008; - onChanged(); - return this; - } - - private int ichatRestrictType_ ; - /** - * int32 ichatRestrictType = 1027; - * @return The ichatRestrictType. - */ - @java.lang.Override - public int getIchatRestrictType() { - return ichatRestrictType_; - } - /** - * int32 ichatRestrictType = 1027; - * @param value The ichatRestrictType to set. - * @return This builder for chaining. - */ - public Builder setIchatRestrictType(int value) { - - ichatRestrictType_ = value; - bitField3_ |= 0x00000010; - onChanged(); - return this; - } - /** - * int32 ichatRestrictType = 1027; - * @return This builder for chaining. - */ - public Builder clearIchatRestrictType() { - bitField3_ = (bitField3_ & ~0x00000010); - ichatRestrictType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object idStr_ = ""; - /** - * string idStr = 1028; - * @return The idStr. - */ - public java.lang.String getIdStr() { - java.lang.Object ref = idStr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - idStr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string idStr = 1028; - * @return The bytes for idStr. - */ - public com.google.protobuf.ByteString - getIdStrBytes() { - java.lang.Object ref = idStr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - idStr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string idStr = 1028; - * @param value The idStr to set. - * @return This builder for chaining. - */ - public Builder setIdStr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - idStr_ = value; - bitField3_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string idStr = 1028; - * @return This builder for chaining. - */ - public Builder clearIdStr() { - idStr_ = getDefaultInstance().getIdStr(); - bitField3_ = (bitField3_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string idStr = 1028; - * @param value The bytes for idStr to set. - * @return This builder for chaining. - */ - public Builder setIdStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - idStr_ = value; - bitField3_ |= 0x00000020; - onChanged(); - return this; - } - - private boolean isFollower_ ; - /** - * bool isFollower = 1029; - * @return The isFollower. - */ - @java.lang.Override - public boolean getIsFollower() { - return isFollower_; - } - /** - * bool isFollower = 1029; - * @param value The isFollower to set. - * @return This builder for chaining. - */ - public Builder setIsFollower(boolean value) { - - isFollower_ = value; - bitField3_ |= 0x00000040; - onChanged(); - return this; - } - /** - * bool isFollower = 1029; - * @return This builder for chaining. - */ - public Builder clearIsFollower() { - bitField3_ = (bitField3_ & ~0x00000040); - isFollower_ = false; - onChanged(); - return this; - } - - private boolean isFollowing_ ; - /** - * bool isFollowing = 1030; - * @return The isFollowing. - */ - @java.lang.Override - public boolean getIsFollowing() { - return isFollowing_; - } - /** - * bool isFollowing = 1030; - * @param value The isFollowing to set. - * @return This builder for chaining. - */ - public Builder setIsFollowing(boolean value) { - - isFollowing_ = value; - bitField3_ |= 0x00000080; - onChanged(); - return this; - } - /** - * bool isFollowing = 1030; - * @return This builder for chaining. - */ - public Builder clearIsFollowing() { - bitField3_ = (bitField3_ & ~0x00000080); - isFollowing_ = false; - onChanged(); - return this; - } - - private boolean needProfileGuide_ ; - /** - * bool needProfileGuide = 1031; - * @return The needProfileGuide. - */ - @java.lang.Override - public boolean getNeedProfileGuide() { - return needProfileGuide_; - } - /** - * bool needProfileGuide = 1031; - * @param value The needProfileGuide to set. - * @return This builder for chaining. - */ - public Builder setNeedProfileGuide(boolean value) { - - needProfileGuide_ = value; - bitField3_ |= 0x00000100; - onChanged(); - return this; - } - /** - * bool needProfileGuide = 1031; - * @return This builder for chaining. - */ - public Builder clearNeedProfileGuide() { - bitField3_ = (bitField3_ & ~0x00000100); - needProfileGuide_ = false; - onChanged(); - return this; - } - - private long payScores_ ; - /** - * int64 payScores = 1032; - * @return The payScores. - */ - @java.lang.Override - public long getPayScores() { - return payScores_; - } - /** - * int64 payScores = 1032; - * @param value The payScores to set. - * @return This builder for chaining. - */ - public Builder setPayScores(long value) { - - payScores_ = value; - bitField3_ |= 0x00000200; - onChanged(); - return this; - } - /** - * int64 payScores = 1032; - * @return This builder for chaining. - */ - public Builder clearPayScores() { - bitField3_ = (bitField3_ & ~0x00000200); - payScores_ = 0L; - onChanged(); - return this; - } - - private boolean pushCommentStatus_ ; - /** - * bool pushCommentStatus = 1033; - * @return The pushCommentStatus. - */ - @java.lang.Override - public boolean getPushCommentStatus() { - return pushCommentStatus_; - } - /** - * bool pushCommentStatus = 1033; - * @param value The pushCommentStatus to set. - * @return This builder for chaining. - */ - public Builder setPushCommentStatus(boolean value) { - - pushCommentStatus_ = value; - bitField3_ |= 0x00000400; - onChanged(); - return this; - } - /** - * bool pushCommentStatus = 1033; - * @return This builder for chaining. - */ - public Builder clearPushCommentStatus() { - bitField3_ = (bitField3_ & ~0x00000400); - pushCommentStatus_ = false; - onChanged(); - return this; - } - - private boolean pushDigg_ ; - /** - * bool pushDigg = 1034; - * @return The pushDigg. - */ - @java.lang.Override - public boolean getPushDigg() { - return pushDigg_; - } - /** - * bool pushDigg = 1034; - * @param value The pushDigg to set. - * @return This builder for chaining. - */ - public Builder setPushDigg(boolean value) { - - pushDigg_ = value; - bitField3_ |= 0x00000800; - onChanged(); - return this; - } - /** - * bool pushDigg = 1034; - * @return This builder for chaining. - */ - public Builder clearPushDigg() { - bitField3_ = (bitField3_ & ~0x00000800); - pushDigg_ = false; - onChanged(); - return this; - } - - private boolean pushFollow_ ; - /** - * bool pushFollow = 1035; - * @return The pushFollow. - */ - @java.lang.Override - public boolean getPushFollow() { - return pushFollow_; - } - /** - * bool pushFollow = 1035; - * @param value The pushFollow to set. - * @return This builder for chaining. - */ - public Builder setPushFollow(boolean value) { - - pushFollow_ = value; - bitField3_ |= 0x00001000; - onChanged(); - return this; - } - /** - * bool pushFollow = 1035; - * @return This builder for chaining. - */ - public Builder clearPushFollow() { - bitField3_ = (bitField3_ & ~0x00001000); - pushFollow_ = false; - onChanged(); - return this; - } - - private boolean pushFriendAction_ ; - /** - * bool pushFriendAction = 1036; - * @return The pushFriendAction. - */ - @java.lang.Override - public boolean getPushFriendAction() { - return pushFriendAction_; - } - /** - * bool pushFriendAction = 1036; - * @param value The pushFriendAction to set. - * @return This builder for chaining. - */ - public Builder setPushFriendAction(boolean value) { - - pushFriendAction_ = value; - bitField3_ |= 0x00002000; - onChanged(); - return this; - } - /** - * bool pushFriendAction = 1036; - * @return This builder for chaining. - */ - public Builder clearPushFriendAction() { - bitField3_ = (bitField3_ & ~0x00002000); - pushFriendAction_ = false; - onChanged(); - return this; - } - - private boolean pushIchat_ ; - /** - * bool pushIchat = 1037; - * @return The pushIchat. - */ - @java.lang.Override - public boolean getPushIchat() { - return pushIchat_; - } - /** - * bool pushIchat = 1037; - * @param value The pushIchat to set. - * @return This builder for chaining. - */ - public Builder setPushIchat(boolean value) { - - pushIchat_ = value; - bitField3_ |= 0x00004000; - onChanged(); - return this; - } - /** - * bool pushIchat = 1037; - * @return This builder for chaining. - */ - public Builder clearPushIchat() { - bitField3_ = (bitField3_ & ~0x00004000); - pushIchat_ = false; - onChanged(); - return this; - } - - private boolean pushStatus_ ; - /** - * bool pushStatus = 1038; - * @return The pushStatus. - */ - @java.lang.Override - public boolean getPushStatus() { - return pushStatus_; - } - /** - * bool pushStatus = 1038; - * @param value The pushStatus to set. - * @return This builder for chaining. - */ - public Builder setPushStatus(boolean value) { - - pushStatus_ = value; - bitField3_ |= 0x00008000; - onChanged(); - return this; - } - /** - * bool pushStatus = 1038; - * @return This builder for chaining. - */ - public Builder clearPushStatus() { - bitField3_ = (bitField3_ & ~0x00008000); - pushStatus_ = false; - onChanged(); - return this; - } - - private boolean pushVideoPost_ ; - /** - * bool pushVideoPost = 1039; - * @return The pushVideoPost. - */ - @java.lang.Override - public boolean getPushVideoPost() { - return pushVideoPost_; - } - /** - * bool pushVideoPost = 1039; - * @param value The pushVideoPost to set. - * @return This builder for chaining. - */ - public Builder setPushVideoPost(boolean value) { - - pushVideoPost_ = value; - bitField3_ |= 0x00010000; - onChanged(); - return this; - } - /** - * bool pushVideoPost = 1039; - * @return This builder for chaining. - */ - public Builder clearPushVideoPost() { - bitField3_ = (bitField3_ & ~0x00010000); - pushVideoPost_ = false; - onChanged(); - return this; - } - - private boolean pushVideoRecommend_ ; - /** - * bool pushVideoRecommend = 1040; - * @return The pushVideoRecommend. - */ - @java.lang.Override - public boolean getPushVideoRecommend() { - return pushVideoRecommend_; - } - /** - * bool pushVideoRecommend = 1040; - * @param value The pushVideoRecommend to set. - * @return This builder for chaining. - */ - public Builder setPushVideoRecommend(boolean value) { - - pushVideoRecommend_ = value; - bitField3_ |= 0x00020000; - onChanged(); - return this; - } - /** - * bool pushVideoRecommend = 1040; - * @return This builder for chaining. - */ - public Builder clearPushVideoRecommend() { - bitField3_ = (bitField3_ & ~0x00020000); - pushVideoRecommend_ = false; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats stats_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder> statsBuilder_; - /** - * .User.UserStats stats = 1041; - * @return Whether the stats field is set. - */ - public boolean hasStats() { - return ((bitField3_ & 0x00040000) != 0); - } - /** - * .User.UserStats stats = 1041; - * @return The stats. - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats getStats() { - if (statsBuilder_ == null) { - return stats_ == null ? tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance() : stats_; - } else { - return statsBuilder_.getMessage(); - } - } - /** - * .User.UserStats stats = 1041; - */ - public Builder setStats(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats value) { - if (statsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stats_ = value; - } else { - statsBuilder_.setMessage(value); - } - bitField3_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .User.UserStats stats = 1041; - */ - public Builder setStats( - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder builderForValue) { - if (statsBuilder_ == null) { - stats_ = builderForValue.build(); - } else { - statsBuilder_.setMessage(builderForValue.build()); - } - bitField3_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .User.UserStats stats = 1041; - */ - public Builder mergeStats(tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats value) { - if (statsBuilder_ == null) { - if (((bitField3_ & 0x00040000) != 0) && - stats_ != null && - stats_ != tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance()) { - getStatsBuilder().mergeFrom(value); - } else { - stats_ = value; - } - } else { - statsBuilder_.mergeFrom(value); - } - bitField3_ |= 0x00040000; - onChanged(); - return this; - } - /** - * .User.UserStats stats = 1041; - */ - public Builder clearStats() { - bitField3_ = (bitField3_ & ~0x00040000); - stats_ = null; - if (statsBuilder_ != null) { - statsBuilder_.dispose(); - statsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .User.UserStats stats = 1041; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder getStatsBuilder() { - bitField3_ |= 0x00040000; - onChanged(); - return getStatsFieldBuilder().getBuilder(); - } - /** - * .User.UserStats stats = 1041; - */ - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder getStatsOrBuilder() { - if (statsBuilder_ != null) { - return statsBuilder_.getMessageOrBuilder(); - } else { - return stats_ == null ? - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.getDefaultInstance() : stats_; - } - } - /** - * .User.UserStats stats = 1041; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder> - getStatsFieldBuilder() { - if (statsBuilder_ == null) { - statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStats.Builder, tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User.UserStatsOrBuilder>( - getStats(), - getParentForChildren(), - isClean()); - stats_ = null; - } - return statsBuilder_; - } - - private boolean verifiedMobile_ ; - /** - * bool verifiedMobile = 1042; - * @return The verifiedMobile. - */ - @java.lang.Override - public boolean getVerifiedMobile() { - return verifiedMobile_; - } - /** - * bool verifiedMobile = 1042; - * @param value The verifiedMobile to set. - * @return This builder for chaining. - */ - public Builder setVerifiedMobile(boolean value) { - - verifiedMobile_ = value; - bitField3_ |= 0x00080000; - onChanged(); - return this; - } - /** - * bool verifiedMobile = 1042; - * @return This builder for chaining. - */ - public Builder clearVerifiedMobile() { - bitField3_ = (bitField3_ & ~0x00080000); - verifiedMobile_ = false; - onChanged(); - return this; - } - - private java.lang.Object verifiedReason_ = ""; - /** - * string verifiedReason = 1043; - * @return The verifiedReason. - */ - public java.lang.String getVerifiedReason() { - java.lang.Object ref = verifiedReason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verifiedReason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string verifiedReason = 1043; - * @return The bytes for verifiedReason. - */ - public com.google.protobuf.ByteString - getVerifiedReasonBytes() { - java.lang.Object ref = verifiedReason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verifiedReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string verifiedReason = 1043; - * @param value The verifiedReason to set. - * @return This builder for chaining. - */ - public Builder setVerifiedReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - verifiedReason_ = value; - bitField3_ |= 0x00100000; - onChanged(); - return this; - } - /** - * string verifiedReason = 1043; - * @return This builder for chaining. - */ - public Builder clearVerifiedReason() { - verifiedReason_ = getDefaultInstance().getVerifiedReason(); - bitField3_ = (bitField3_ & ~0x00100000); - onChanged(); - return this; - } - /** - * string verifiedReason = 1043; - * @param value The bytes for verifiedReason to set. - * @return This builder for chaining. - */ - public Builder setVerifiedReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - verifiedReason_ = value; - bitField3_ |= 0x00100000; - onChanged(); - return this; - } - - private boolean withCarManagementPermission_ ; - /** - * bool withCarManagementPermission = 1044; - * @return The withCarManagementPermission. - */ - @java.lang.Override - public boolean getWithCarManagementPermission() { - return withCarManagementPermission_; - } - /** - * bool withCarManagementPermission = 1044; - * @param value The withCarManagementPermission to set. - * @return This builder for chaining. - */ - public Builder setWithCarManagementPermission(boolean value) { - - withCarManagementPermission_ = value; - bitField3_ |= 0x00200000; - onChanged(); - return this; - } - /** - * bool withCarManagementPermission = 1044; - * @return This builder for chaining. - */ - public Builder clearWithCarManagementPermission() { - bitField3_ = (bitField3_ & ~0x00200000); - withCarManagementPermission_ = false; - onChanged(); - return this; - } - - private int ageRange_ ; - /** - * int32 ageRange = 1045; - * @return The ageRange. - */ - @java.lang.Override - public int getAgeRange() { - return ageRange_; - } - /** - * int32 ageRange = 1045; - * @param value The ageRange to set. - * @return This builder for chaining. - */ - public Builder setAgeRange(int value) { - - ageRange_ = value; - bitField3_ |= 0x00400000; - onChanged(); - return this; - } - /** - * int32 ageRange = 1045; - * @return This builder for chaining. - */ - public Builder clearAgeRange() { - bitField3_ = (bitField3_ & ~0x00400000); - ageRange_ = 0; - onChanged(); - return this; - } - - private long watchDurationMonth_ ; - /** - * int64 watchDurationMonth = 1046; - * @return The watchDurationMonth. - */ - @java.lang.Override - public long getWatchDurationMonth() { - return watchDurationMonth_; - } - /** - * int64 watchDurationMonth = 1046; - * @param value The watchDurationMonth to set. - * @return This builder for chaining. - */ - public Builder setWatchDurationMonth(long value) { - - watchDurationMonth_ = value; - bitField3_ |= 0x00800000; - onChanged(); - return this; - } - /** - * int64 watchDurationMonth = 1046; - * @return This builder for chaining. - */ - public Builder clearWatchDurationMonth() { - bitField3_ = (bitField3_ & ~0x00800000); - watchDurationMonth_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:User) - } - - // @@protoc_insertion_point(class_scope:User) - private static final tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User(); - } - - public static tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.UserOuterClass.User getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_ActivityInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_ActivityInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_AnchorInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_AnchorInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_AnchorLevel_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_AnchorLevel_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_AuthenticationInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_AuthenticationInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_AuthorStats_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_AuthorStats_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_Border_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_Border_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_BrotherhoodInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_BrotherhoodInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FansClub_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FansClub_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FansClub_PreferDataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FansClub_PreferDataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FansClub_FansClubData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FansClub_FansClubData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FansClub_FansClubData_UserBadge_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FansClub_FansClubData_UserBadge_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FansClub_FansClubData_UserBadge_IconsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FansClub_FansClubData_UserBadge_IconsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FansGroupInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FansGroupInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_FollowInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_FollowInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_JAccreditInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_JAccreditInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_NobleLevelInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_NobleLevelInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_OwnRoom_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_OwnRoom_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_PayGrade_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_PayGrade_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_PayGrade_GradeIcon_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_PayGrade_GradeIcon_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_PoiInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_PoiInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_ProfileStyleParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_ProfileStyleParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_Subscribe_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_Subscribe_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_UserAttr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_UserAttr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_UserDressInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_UserDressInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_UserVIPInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_UserVIPInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_UserStats_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_UserStats_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_User_XiguaParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_User_XiguaParams_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\nUser.proto\032\013Image.proto\"\366\'\n\004User\022\n\n\002id" + - "\030\001 \001(\004\022\017\n\007shortId\030\002 \001(\004\022\020\n\010nickname\030\003 \001(" + - "\t\022\016\n\006gender\030\004 \001(\r\022\021\n\tsignature\030\005 \001(\t\022\r\n\005" + - "level\030\006 \001(\r\022\020\n\010birthday\030\007 \001(\004\022\021\n\ttelepho" + - "ne\030\010 \001(\t\022\033\n\013avatarThumb\030\t \001(\0132\006.Image\022\034\n" + - "\014avatarMedium\030\n \001(\0132\006.Image\022\033\n\013avatarLar" + - "ge\030\013 \001(\0132\006.Image\022\020\n\010verified\030\014 \001(\010\022\022\n\nex" + - "perience\030\r \001(\005\022\014\n\004city\030\016 \001(\t\022\016\n\006status\030\017" + - " \001(\005\022\022\n\ncreateTime\030\020 \001(\003\022\022\n\nmodifyTime\030\021" + - " \001(\003\022\016\n\006secret\030\022 \001(\005\022\026\n\016shareQrcodeUri\030\023" + - " \001(\t\022\032\n\022incomeSharePercent\030\024 \001(\005\022\"\n\022badg" + - "eImageListList\030\025 \001(\0132\006.Image\022$\n\nfollowIn" + - "fo\030\026 \001(\0132\020.User.FollowInfo\022 \n\010payGrade\030\027" + - " \001(\0132\016.User.PayGrade\022 \n\010fansClub\030\030 \001(\0132\016" + - ".User.FansClub\022\034\n\006border\030\031 \001(\0132\014.User.Bo" + - "rder\022\021\n\tspecialId\030\032 \001(\t\022\034\n\014avatarBorder\030" + - "\033 \001(\0132\006.Image\022\025\n\005medal\030\034 \001(\0132\006.Image\022!\n\021" + - "realTimeIconsList\030\035 \003(\0132\006.Image\022$\n\024newRe" + - "alTimeIconsList\030\036 \003(\0132\006.Image\022\020\n\010topVipN" + - "o\030\037 \001(\003\022 \n\010userAttr\030 \001(\0132\016.User.UserAtt" + - "r\022\036\n\007ownRoom\030! \001(\0132\r.User.OwnRoom\022\020\n\010pay" + - "Score\030\" \001(\003\022\023\n\013ticketCount\030# \001(\003\022$\n\nanch" + - "orInfo\030$ \001(\0132\020.User.AnchorInfo\022\024\n\014linkMi" + - "cStats\030% \001(\005\022\021\n\tdisplayId\030& \001(\t\022\036\n\026withC" + - "ommercePermission\030\' \001(\010\022\033\n\023withFusionSho" + - "pEntry\030( \001(\010\022!\n\031totalRechargeDiamondCoun" + - "t\030) \001(\003\022-\n\022webcastAnchorLevel\030* \001(\0132\021.Us" + - "er.AnchorLevel\022\027\n\017verifiedContent\030+ \001(\t\022" + - "&\n\013authorStats\030, \001(\0132\021.User.AuthorStats\022" + - "\032\n\013topFansList\030- \003(\0132\005.User\022\016\n\006secUid\030. " + - "\001(\t\022\020\n\010userRole\030/ \001(\005\022$\n\txiguaInfo\0300 \001(\013" + - "2\021.User.XiguaParams\022*\n\016activityReward\0301 " + - "\001(\0132\022.User.ActivityInfo\022\'\n\tnobleInfo\0302 \001" + - "(\0132\024.User.NobleLevelInfo\022.\n\017brotherhoodI" + - "nfo\0303 \001(\0132\025.User.BrotherhoodInfo\022\034\n\014pers" + - "onalCard\0304 \001(\0132\006.Image\0224\n\022authentication" + - "Info\0305 \001(\0132\030.User.AuthenticationInfo\022\031\n\021" + - "authorizationInfo\0306 \001(\005\022\"\n\032adversaryAuth" + - "orizationInfo\0307 \001(\005\022\036\n\007poiInfo\0308 \001(\0132\r.U" + - "ser.PoiInfo\022\'\n\027mediaBadgeImageListList\0309" + - " \001(\0132\006.Image\022\033\n\023adversaryUserStatus\030: \001(" + - "\005\022&\n\013userVipInfo\030; \001(\0132\021.User.UserVIPInf" + - "o\022$\n\034commerceWebcastConfigIdsList\030< \003(\003\022" + - "$\n\024badgeImageListV2List\030= \001(\0132\006.Image\022\024\n" + - "\014locationCity\030? \001(\t\022*\n\rfansGroupInfo\030@ \001" + - "(\0132\023.User.FansGroupInfo\022\022\n\nremarkName\030A " + - "\001(\t\022\022\n\nmysteryMan\030B \001(\005\022\016\n\006webRid\030C \001(\t\022" + - "\034\n\024desensitizedNickname\030D \001(\t\022*\n\rjAccred" + - "itInfo\030E \001(\0132\023.User.JAccreditInfo\022\"\n\tsub" + - "scribe\030F \001(\0132\017.User.Subscribe\022\023\n\013isAnony" + - "mous\030G \001(\010\022\033\n\023consumeDiamondLevel\030H \001(\005\022" + - "\022\n\nwebcastUid\030I \001(\t\0224\n\022profileStyleParam" + - "s\030J \001(\0132\030.User.ProfileStyleParams\022*\n\ruse" + - "rDressInfo\030K \001(\0132\023.User.UserDressInfo\022\027\n" + - "\016allowBeLocated\030\351\007 \001(\010\022\034\n\023allowFindByCon" + - "tacts\030\352\007 \001(\010\022!\n\030allowOthersDownloadVideo" + - "\030\353\007 \001(\010\022,\n#allowOthersDownloadWhenSharin" + - "gVideo\030\354\007 \001(\010\022\036\n\025allowShareShowProfile\030\355" + - "\007 \001(\010\022\032\n\021allowShowInGossip\030\356\007 \001(\010\022\032\n\021all" + - "owShowMyAction\030\357\007 \001(\010\022\034\n\023allowStrangeCom" + - "ment\030\360\007 \001(\010\022\037\n\026allowUnfollowerComment\030\361\007" + - " \001(\010\022\030\n\017allowUseLinkmic\030\362\007 \001(\010\022\'\n\013anchor" + - "Level\030\363\007 \001(\0132\021.User.AnchorLevel\022\032\n\tavata" + - "rJpg\030\364\007 \001(\0132\006.Image\022\021\n\010bgImgUrl\030\365\007 \001(\t\022\034" + - "\n\023birthdayDescription\030\366\007 \001(\t\022\026\n\rbirthday" + - "Valid\030\367\007 \001(\010\022\024\n\013blockStatus\030\370\007 \001(\005\022\030\n\017co" + - "mmentRestrict\030\371\007 \001(\005\022\026\n\rconstellation\030\372\007" + - " \001(\t\022\025\n\014disableIchat\030\373\007 \001(\005\022\027\n\016enableIch" + - "atImg\030\374\007 \001(\003\022\014\n\003exp\030\375\007 \001(\005\022\027\n\016fanTicketC" + - "ount\030\376\007 \001(\003\022\031\n\020foldStrangerChat\030\377\007 \001(\010\022\025" + - "\n\014followStatus\030\200\010 \001(\003\022\030\n\017hotsoonVerified" + - "\030\201\010 \001(\010\022\036\n\025hotsoonVerifiedReason\030\202\010 \001(\t\022" + - "\032\n\021ichatRestrictType\030\203\010 \001(\005\022\016\n\005idStr\030\204\010 " + - "\001(\t\022\023\n\nisFollower\030\205\010 \001(\010\022\024\n\013isFollowing\030" + - "\206\010 \001(\010\022\031\n\020needProfileGuide\030\207\010 \001(\010\022\022\n\tpay" + - "Scores\030\210\010 \001(\003\022\032\n\021pushCommentStatus\030\211\010 \001(" + - "\010\022\021\n\010pushDigg\030\212\010 \001(\010\022\023\n\npushFollow\030\213\010 \001(" + - "\010\022\031\n\020pushFriendAction\030\214\010 \001(\010\022\022\n\tpushIcha" + - "t\030\215\010 \001(\010\022\023\n\npushStatus\030\216\010 \001(\010\022\026\n\rpushVid" + - "eoPost\030\217\010 \001(\010\022\033\n\022pushVideoRecommend\030\220\010 \001" + - "(\010\022\037\n\005stats\030\221\010 \001(\0132\017.User.UserStats\022\027\n\016v" + - "erifiedMobile\030\222\010 \001(\010\022\027\n\016verifiedReason\030\223" + - "\010 \001(\t\022$\n\033withCarManagementPermission\030\224\010 " + - "\001(\010\022\021\n\010ageRange\030\225\010 \001(\005\022\033\n\022watchDurationM" + - "onth\030\226\010 \001(\003\032\016\n\014ActivityInfo\032\014\n\nAnchorInf" + - "o\032\r\n\013AnchorLevel\032\024\n\022AuthenticationInfo\032\r" + - "\n\013AuthorStats\032\010\n\006Border\032\021\n\017BrotherhoodIn" + - "fo\032\375\003\n\010FansClub\022)\n\004data\030\001 \001(\0132\033.User.Fan" + - "sClub.FansClubData\0222\n\npreferData\030\002 \003(\0132\036" + - ".User.FansClub.PreferDataEntry\032N\n\017Prefer" + - "DataEntry\022\013\n\003key\030\001 \001(\005\022*\n\005value\030\002 \001(\0132\033." + - "User.FansClub.FansClubData:\0028\001\032\301\002\n\014FansC" + - "lubData\022\020\n\010clubName\030\001 \001(\t\022\r\n\005level\030\002 \001(\005" + - "\022\032\n\022userFansClubStatus\030\003 \001(\005\0224\n\005badge\030\004 " + - "\001(\0132%.User.FansClub.FansClubData.UserBad" + - "ge\022\030\n\020availableGiftIds\030\005 \003(\003\022\020\n\010anchorId" + - "\030\006 \001(\003\032\221\001\n\tUserBadge\022?\n\005icons\030\001 \003(\01320.Us" + - "er.FansClub.FansClubData.UserBadge.Icons" + - "Entry\022\r\n\005title\030\002 \001(\t\0324\n\nIconsEntry\022\013\n\003ke" + - "y\030\001 \001(\005\022\025\n\005value\030\002 \001(\0132\006.Image:\0028\001\032\017\n\rFa" + - "nsGroupInfo\032y\n\nFollowInfo\022\026\n\016followingCo" + - "unt\030\001 \001(\003\022\025\n\rfollowerCount\030\002 \001(\003\022\024\n\014foll" + - "owStatus\030\003 \001(\003\022\022\n\npushStatus\030\004 \001(\003\022\022\n\nre" + - "markName\030\005 \001(\t\032\017\n\rJAccreditInfo\032\020\n\016Noble" + - "LevelInfo\032\t\n\007OwnRoom\032\305\006\n\010PayGrade\022\031\n\021tot" + - "alDiamondCount\030\001 \001(\003\022\033\n\013diamondIcon\030\002 \001(" + - "\0132\006.Image\022\014\n\004name\030\003 \001(\t\022\024\n\004icon\030\004 \001(\0132\006." + - "Image\022\020\n\010nextName\030\005 \001(\t\022\r\n\005level\030\006 \001(\003\022\030" + - "\n\010nextIcon\030\007 \001(\0132\006.Image\022\023\n\013nextDiamond\030" + - "\010 \001(\003\022\022\n\nnowDiamond\030\t \001(\003\022\033\n\023thisGradeMi" + - "nDiamond\030\n \001(\003\022\033\n\023thisGradeMaxDiamond\030\013 " + - "\001(\003\022\025\n\rpayDiamondBak\030\014 \001(\003\022\025\n\rgradeDescr" + - "ibe\030\r \001(\t\022/\n\rgradeIconList\030\016 \003(\0132\030.User." + - "PayGrade.GradeIcon\022\026\n\016screenChatType\030\017 \001" + - "(\003\022\026\n\006imIcon\030\020 \001(\0132\006.Image\022\037\n\017imIconWith" + - "Level\030\021 \001(\0132\006.Image\022\030\n\010liveIcon\030\022 \001(\0132\006." + - "Image\022\"\n\022newImIconWithLevel\030\023 \001(\0132\006.Imag" + - "e\022\033\n\013newLiveIcon\030\024 \001(\0132\006.Image\022\032\n\022upgrad" + - "eNeedConsume\030\025 \001(\003\022\026\n\016nextPrivileges\030\026 \001" + - "(\t\022\032\n\nbackground\030\027 \001(\0132\006.Image\022\036\n\016backgr" + - "oundBack\030\030 \001(\0132\006.Image\022\r\n\005score\030\031 \001(\003\022\024\n" + - "\013gradeBanner\030\351\007 \001(\t\022 \n\017profileDialogBg\030\352" + - "\007 \001(\0132\006.Image\022$\n\023profileDialogBgBack\030\353\007 " + - "\001(\0132\006.Image\032W\n\tGradeIcon\022\024\n\004icon\030\001 \001(\0132\006" + - ".Image\022\023\n\013iconDiamond\030\002 \001(\003\022\r\n\005level\030\003 \001" + - "(\003\022\020\n\010levelStr\030\004 \001(\t\032\t\n\007PoiInfo\032\024\n\022Profi" + - "leStyleParams\032\013\n\tSubscribe\032\n\n\010UserAttr\032\017" + - "\n\rUserDressInfo\032\r\n\013UserVIPInfo\032\013\n\tUserSt" + - "ats\032\r\n\013XiguaParamsB8\n6tech.ordinaryroad." + - "live.chat.client.douyin.protobuf.dtob\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(), - }); - internal_static_User_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_descriptor, - new java.lang.String[] { "Id", "ShortId", "Nickname", "Gender", "Signature", "Level", "Birthday", "Telephone", "AvatarThumb", "AvatarMedium", "AvatarLarge", "Verified", "Experience", "City", "Status", "CreateTime", "ModifyTime", "Secret", "ShareQrcodeUri", "IncomeSharePercent", "BadgeImageListList", "FollowInfo", "PayGrade", "FansClub", "Border", "SpecialId", "AvatarBorder", "Medal", "RealTimeIconsList", "NewRealTimeIconsList", "TopVipNo", "UserAttr", "OwnRoom", "PayScore", "TicketCount", "AnchorInfo", "LinkMicStats", "DisplayId", "WithCommercePermission", "WithFusionShopEntry", "TotalRechargeDiamondCount", "WebcastAnchorLevel", "VerifiedContent", "AuthorStats", "TopFansList", "SecUid", "UserRole", "XiguaInfo", "ActivityReward", "NobleInfo", "BrotherhoodInfo", "PersonalCard", "AuthenticationInfo", "AuthorizationInfo", "AdversaryAuthorizationInfo", "PoiInfo", "MediaBadgeImageListList", "AdversaryUserStatus", "UserVipInfo", "CommerceWebcastConfigIdsList", "BadgeImageListV2List", "LocationCity", "FansGroupInfo", "RemarkName", "MysteryMan", "WebRid", "DesensitizedNickname", "JAccreditInfo", "Subscribe", "IsAnonymous", "ConsumeDiamondLevel", "WebcastUid", "ProfileStyleParams", "UserDressInfo", "AllowBeLocated", "AllowFindByContacts", "AllowOthersDownloadVideo", "AllowOthersDownloadWhenSharingVideo", "AllowShareShowProfile", "AllowShowInGossip", "AllowShowMyAction", "AllowStrangeComment", "AllowUnfollowerComment", "AllowUseLinkmic", "AnchorLevel", "AvatarJpg", "BgImgUrl", "BirthdayDescription", "BirthdayValid", "BlockStatus", "CommentRestrict", "Constellation", "DisableIchat", "EnableIchatImg", "Exp", "FanTicketCount", "FoldStrangerChat", "FollowStatus", "HotsoonVerified", "HotsoonVerifiedReason", "IchatRestrictType", "IdStr", "IsFollower", "IsFollowing", "NeedProfileGuide", "PayScores", "PushCommentStatus", "PushDigg", "PushFollow", "PushFriendAction", "PushIchat", "PushStatus", "PushVideoPost", "PushVideoRecommend", "Stats", "VerifiedMobile", "VerifiedReason", "WithCarManagementPermission", "AgeRange", "WatchDurationMonth", }); - internal_static_User_ActivityInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(0); - internal_static_User_ActivityInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_ActivityInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_AnchorInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(1); - internal_static_User_AnchorInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_AnchorInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_AnchorLevel_descriptor = - internal_static_User_descriptor.getNestedTypes().get(2); - internal_static_User_AnchorLevel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_AnchorLevel_descriptor, - new java.lang.String[] { }); - internal_static_User_AuthenticationInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(3); - internal_static_User_AuthenticationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_AuthenticationInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_AuthorStats_descriptor = - internal_static_User_descriptor.getNestedTypes().get(4); - internal_static_User_AuthorStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_AuthorStats_descriptor, - new java.lang.String[] { }); - internal_static_User_Border_descriptor = - internal_static_User_descriptor.getNestedTypes().get(5); - internal_static_User_Border_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_Border_descriptor, - new java.lang.String[] { }); - internal_static_User_BrotherhoodInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(6); - internal_static_User_BrotherhoodInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_BrotherhoodInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_FansClub_descriptor = - internal_static_User_descriptor.getNestedTypes().get(7); - internal_static_User_FansClub_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FansClub_descriptor, - new java.lang.String[] { "Data", "PreferData", }); - internal_static_User_FansClub_PreferDataEntry_descriptor = - internal_static_User_FansClub_descriptor.getNestedTypes().get(0); - internal_static_User_FansClub_PreferDataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FansClub_PreferDataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_User_FansClub_FansClubData_descriptor = - internal_static_User_FansClub_descriptor.getNestedTypes().get(1); - internal_static_User_FansClub_FansClubData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FansClub_FansClubData_descriptor, - new java.lang.String[] { "ClubName", "Level", "UserFansClubStatus", "Badge", "AvailableGiftIds", "AnchorId", }); - internal_static_User_FansClub_FansClubData_UserBadge_descriptor = - internal_static_User_FansClub_FansClubData_descriptor.getNestedTypes().get(0); - internal_static_User_FansClub_FansClubData_UserBadge_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FansClub_FansClubData_UserBadge_descriptor, - new java.lang.String[] { "Icons", "Title", }); - internal_static_User_FansClub_FansClubData_UserBadge_IconsEntry_descriptor = - internal_static_User_FansClub_FansClubData_UserBadge_descriptor.getNestedTypes().get(0); - internal_static_User_FansClub_FansClubData_UserBadge_IconsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FansClub_FansClubData_UserBadge_IconsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_User_FansGroupInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(8); - internal_static_User_FansGroupInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FansGroupInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_FollowInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(9); - internal_static_User_FollowInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_FollowInfo_descriptor, - new java.lang.String[] { "FollowingCount", "FollowerCount", "FollowStatus", "PushStatus", "RemarkName", }); - internal_static_User_JAccreditInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(10); - internal_static_User_JAccreditInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_JAccreditInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_NobleLevelInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(11); - internal_static_User_NobleLevelInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_NobleLevelInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_OwnRoom_descriptor = - internal_static_User_descriptor.getNestedTypes().get(12); - internal_static_User_OwnRoom_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_OwnRoom_descriptor, - new java.lang.String[] { }); - internal_static_User_PayGrade_descriptor = - internal_static_User_descriptor.getNestedTypes().get(13); - internal_static_User_PayGrade_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_PayGrade_descriptor, - new java.lang.String[] { "TotalDiamondCount", "DiamondIcon", "Name", "Icon", "NextName", "Level", "NextIcon", "NextDiamond", "NowDiamond", "ThisGradeMinDiamond", "ThisGradeMaxDiamond", "PayDiamondBak", "GradeDescribe", "GradeIconList", "ScreenChatType", "ImIcon", "ImIconWithLevel", "LiveIcon", "NewImIconWithLevel", "NewLiveIcon", "UpgradeNeedConsume", "NextPrivileges", "Background", "BackgroundBack", "Score", "GradeBanner", "ProfileDialogBg", "ProfileDialogBgBack", }); - internal_static_User_PayGrade_GradeIcon_descriptor = - internal_static_User_PayGrade_descriptor.getNestedTypes().get(0); - internal_static_User_PayGrade_GradeIcon_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_PayGrade_GradeIcon_descriptor, - new java.lang.String[] { "Icon", "IconDiamond", "Level", "LevelStr", }); - internal_static_User_PoiInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(14); - internal_static_User_PoiInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_PoiInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_ProfileStyleParams_descriptor = - internal_static_User_descriptor.getNestedTypes().get(15); - internal_static_User_ProfileStyleParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_ProfileStyleParams_descriptor, - new java.lang.String[] { }); - internal_static_User_Subscribe_descriptor = - internal_static_User_descriptor.getNestedTypes().get(16); - internal_static_User_Subscribe_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_Subscribe_descriptor, - new java.lang.String[] { }); - internal_static_User_UserAttr_descriptor = - internal_static_User_descriptor.getNestedTypes().get(17); - internal_static_User_UserAttr_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_UserAttr_descriptor, - new java.lang.String[] { }); - internal_static_User_UserDressInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(18); - internal_static_User_UserDressInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_UserDressInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_UserVIPInfo_descriptor = - internal_static_User_descriptor.getNestedTypes().get(19); - internal_static_User_UserVIPInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_UserVIPInfo_descriptor, - new java.lang.String[] { }); - internal_static_User_UserStats_descriptor = - internal_static_User_descriptor.getNestedTypes().get(20); - internal_static_User_UserStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_UserStats_descriptor, - new java.lang.String[] { }); - internal_static_User_XiguaParams_descriptor = - internal_static_User_descriptor.getNestedTypes().get(21); - internal_static_User_XiguaParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_User_XiguaParams_descriptor, - new java.lang.String[] { }); - tech.ordinaryroad.live.chat.client.douyin.protobuf.dto.ImageOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Common.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Common.proto deleted file mode 100644 index a09a395b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Common.proto +++ /dev/null @@ -1,30 +0,0 @@ -syntax = "proto3"; -import "User.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message Common { - string method = 1; - uint64 msgId = 2; - uint64 roomId = 3; - uint64 createTime = 4; - uint32 monitor = 5; - bool isShowMsg = 6; - string describe = 7; - // DisplayText displayText = 8; - uint64 foldType = 9; - uint64 anchorFoldType = 10; - uint64 priorityScore = 11; - string logId = 12; - string msgProcessFilterK = 13; - string msgProcessFilterV = 14; - User user = 15; - // Room room = 16; - uint64 anchorFoldTypeV2 = 17; - uint64 processAtSeiTimeMs = 18; - uint64 randomDispatchMs = 19; - bool isDispatch = 20; - uint32 channelId = 21; - uint64 diffSei2absSecond = 22; - uint64 anchorFoldDuration = 23; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/DoubleLikeDetail.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/DoubleLikeDetail.proto deleted file mode 100644 index de0b28a5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/DoubleLikeDetail.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message DoubleLikeDetail { - bool doubleFlag = 1; - uint32 seqId = 2; - uint32 renewalsNum = 3; - uint32 triggersNum = 4; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/GiftIMPriority.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/GiftIMPriority.proto deleted file mode 100644 index 3b8db33a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/GiftIMPriority.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message GiftIMPriority { - repeated uint64 queue_sizes_list = 1; - uint64 self_queue_priority = 2; - uint64 priority = 3; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/GiftStruct.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/GiftStruct.proto deleted file mode 100644 index 3031acca..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/GiftStruct.proto +++ /dev/null @@ -1,66 +0,0 @@ -syntax = "proto3"; -import "Image.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message GiftStruct { - Image image = 1; - string describe = 2; - bool notify = 3; - uint64 duration = 4; - uint64 id = 5; - // GiftStructFansClubInfo fansclubInfo = 6; - bool for_linkmic = 7; - bool doodle = 8; - bool for_fansclub = 9; - bool combo = 10; - uint32 type = 11; - uint32 diamond_count = 12; - bool is_displayed_on_panel = 13; - uint64 primary_effect_id = 14; - Image gift_label_icon = 15; - string name = 16; - string region = 17; - string manual = 18; - bool for_custom = 19; - map specialEffectsMap = 20; - Image icon = 21; - uint32 action_type = 22; - int32 watermelonSeeds = 23; - string goldEffect = 24; - // repeated LuckyMoneyGiftMeta subs = 25; - int64 goldenBeans = 26; - int64 honorLevel = 27; - int32 itemType = 28; - string schemeUrl = 29; - // GiftPanelOperation giftOperation = 30; - string eventName = 31; - int64 nobleLevel = 32; - string guideUrl = 33; - bool punishMedicine = 34; - bool forPortal = 35; - string businessText = 36; - bool cnyGift = 37; - int64 appId = 38; - int64 vipLevel = 39; - bool isGray = 40; - string graySchemeUrl = 41; - int64 giftScene = 42; - // GiftBanner giftBanner = 43; - repeated string triggerWords = 44; - // repeated GiftBuffInfo giftBuffInfos = 45; - bool forFirstRecharge = 46; - Image dynamicImgForSelected = 47; - int32 afterSendAction = 48; - int64 giftOfflineTime = 49; - string topBarText = 50; - Image topRightAvatar = 51; - string bannerSchemeUrl = 52; - bool isLocked = 53; - int64 reqExtraType = 54; - repeated int64 assetIds = 55; - // GiftPreviewInfo giftPreviewInfo = 56; - // GiftTip giftTip = 57; - int32 needSweepLightCount = 58; - // repeated GiftGroupInfo groupInfo = 59; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Image.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Image.proto deleted file mode 100644 index 1f487296..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Image.proto +++ /dev/null @@ -1,29 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message Image { - repeated string urlListList = 1; - string uri = 2; - int64 height = 3; - int64 width = 4; - string avgColor = 5; - int32 imageType = 6; - string openWebUrl = 7; - Content content = 8; - bool isAnimated = 9; - repeated NinePatchSetting flexSettingListList = 10; - repeated NinePatchSetting textSettingListList = 11; - - message Content { - string name = 1; - string fontColor = 2; - int64 level = 3; - string alternativeText = 4; - } - - message NinePatchSetting{ - - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/PatternRef.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/PatternRef.proto deleted file mode 100644 index 5caa0e47..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/PatternRef.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message PatternRef { - string key = 1; - string default_pattern = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/PublicAreaCommon.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/PublicAreaCommon.proto deleted file mode 100644 index 01358fd1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/PublicAreaCommon.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -import "Image.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message PublicAreaCommon { - Image user_label = 1; - uint64 user_consume_in_room = 2; - uint64 user_send_gift_cnt_in_room = 3; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Text.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Text.proto deleted file mode 100644 index 60f985cf..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/Text.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; -import "TextFormat.proto"; -import "TextPiece.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message Text { - string key = 1; - string default_patter = 2; - TextFormat default_format = 3; - TextPiece pieces_list = 4; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextEffect.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextEffect.proto deleted file mode 100644 index 662e1682..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextEffect.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -import "TextEffectDetail.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextEffect { - TextEffectDetail portrait = 1; - TextEffectDetail landscape = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextEffectDetail.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextEffectDetail.proto deleted file mode 100644 index 6d1146a4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextEffectDetail.proto +++ /dev/null @@ -1,23 +0,0 @@ -syntax = "proto3"; -import "Image.proto"; -import "Text.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextEffectDetail { - Text text = 1; - uint32 text_font_size = 2; - Image background = 3; - uint32 start = 4; - uint32 duration = 5; - uint32 x = 6; - uint32 y = 7; - uint32 width = 8; - uint32 height = 9; - uint32 shadow_dx = 10; - uint32 shadow_dy = 11; - uint32 shadow_radius = 12; - string shadow_color = 13; - string stroke_color = 14; - uint32 stroke_width = 15; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextFormat.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextFormat.proto deleted file mode 100644 index 8ca8ab55..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextFormat.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextFormat { - string color = 1; - bool bold = 2; - bool italic = 3; - uint32 weight = 4; - uint32 italic_angle = 5; - uint32 font_size = 6; - bool use_heigh_light_color = 7; - bool use_remote_clor = 8; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPiece.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPiece.proto deleted file mode 100644 index e76d1ce4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPiece.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; -import "TextFormat.proto"; -import "TextPieceImage.proto"; -import "TextPiecePatternRef.proto"; -import "TextPieceHeart.proto"; -import "TextPieceGift.proto"; -import "TextPieceUser.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextPiece { - bool type = 1; - TextFormat format = 2; - string string_value = 3; - TextPieceUser user_value = 4; - TextPieceGift gift_value = 5; - TextPieceHeart heart_value = 6; - TextPiecePatternRef pattern_ref_value = 7; - TextPieceImage image_value = 8; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceGift.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceGift.proto deleted file mode 100644 index 5ed59e23..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceGift.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -import "PatternRef.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextPieceGift { - uint64 gift_id = 1; - PatternRef name_ref = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceHeart.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceHeart.proto deleted file mode 100644 index 6528fd14..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceHeart.proto +++ /dev/null @@ -1,7 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextPieceHeart { - string color = 1; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceImage.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceImage.proto deleted file mode 100644 index 6f507145..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceImage.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -import "Image.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextPieceImage { - Image image = 1; - float scaling_rate = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPiecePatternRef.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPiecePatternRef.proto deleted file mode 100644 index c3a51aa9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPiecePatternRef.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextPiecePatternRef { - string key = 1; - string default_pattern = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceUser.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceUser.proto deleted file mode 100644 index c46ae9ad..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/TextPieceUser.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -import "User.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message TextPieceUser { - User user = 1; - bool with_colon = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/User.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/User.proto deleted file mode 100644 index 4a296841..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/User.proto +++ /dev/null @@ -1,272 +0,0 @@ -syntax = "proto3"; -import "Image.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf.dto"; - -message User { - uint64 id = 1; - uint64 shortId = 2; - string nickname = 3; - uint32 gender = 4; - string signature = 5; - uint32 level = 6; - uint64 birthday = 7; - string telephone = 8; - Image avatarThumb = 9; - Image avatarMedium = 10; - Image avatarLarge = 11; - bool verified = 12; - int32 experience = 13; - string city = 14; - int32 status = 15; - int64 createTime = 16; - int64 modifyTime = 17; - int32 secret = 18; - string shareQrcodeUri = 19; - int32 incomeSharePercent = 20; - Image badgeImageListList = 21; - FollowInfo followInfo = 22; - PayGrade payGrade = 23; - FansClub fansClub = 24; - Border border = 25; - string specialId = 26; - Image avatarBorder = 27; - Image medal = 28; - repeated Image realTimeIconsList = 29; - repeated Image newRealTimeIconsList = 30; - int64 topVipNo = 31; - UserAttr userAttr = 32; - OwnRoom ownRoom = 33; - int64 payScore = 34; - int64 ticketCount = 35; - AnchorInfo anchorInfo = 36; - int32 linkMicStats = 37; - string displayId = 38; - bool withCommercePermission = 39; - bool withFusionShopEntry = 40; - int64 totalRechargeDiamondCount = 41; - AnchorLevel webcastAnchorLevel = 42; - string verifiedContent = 43; - AuthorStats authorStats = 44; - repeated User topFansList = 45; - string secUid = 46; - int32 userRole = 47; - XiguaParams xiguaInfo = 48; - ActivityInfo activityReward = 49; - NobleLevelInfo nobleInfo = 50; - BrotherhoodInfo brotherhoodInfo = 51; - Image personalCard = 52; - AuthenticationInfo authenticationInfo = 53; - int32 authorizationInfo = 54; - int32 adversaryAuthorizationInfo = 55; - PoiInfo poiInfo = 56; - Image mediaBadgeImageListList = 57; - int32 adversaryUserStatus = 58; - UserVIPInfo userVipInfo = 59; - repeated int64 commerceWebcastConfigIdsList = 60; - Image badgeImageListV2List = 61; - // IndustryCertification industryCertification = 62; - string locationCity = 63; - FansGroupInfo fansGroupInfo = 64; - string remarkName = 65; - int32 mysteryMan = 66; - string webRid = 67; - string desensitizedNickname = 68; - JAccreditInfo jAccreditInfo = 69; - Subscribe subscribe = 70; - bool isAnonymous = 71; - int32 consumeDiamondLevel = 72; - string webcastUid = 73; - ProfileStyleParams profileStyleParams = 74; - UserDressInfo userDressInfo = 75; - bool allowBeLocated = 1001; - bool allowFindByContacts = 1002; - bool allowOthersDownloadVideo = 1003; - bool allowOthersDownloadWhenSharingVideo = 1004; - bool allowShareShowProfile = 1005; - bool allowShowInGossip = 1006; - bool allowShowMyAction = 1007; - bool allowStrangeComment = 1008; - bool allowUnfollowerComment = 1009; - bool allowUseLinkmic = 1010; - AnchorLevel anchorLevel = 1011; - Image avatarJpg = 1012; - string bgImgUrl = 1013; - string birthdayDescription = 1014; - bool birthdayValid = 1015; - int32 blockStatus = 1016; - int32 commentRestrict = 1017; - string constellation = 1018; - int32 disableIchat = 1019; - int64 enableIchatImg = 1020; - int32 exp = 1021; - int64 fanTicketCount = 1022; - bool foldStrangerChat = 1023; - int64 followStatus = 1024; - bool hotsoonVerified = 1025; - string hotsoonVerifiedReason = 1026; - int32 ichatRestrictType = 1027; - string idStr = 1028; - bool isFollower = 1029; - bool isFollowing = 1030; - bool needProfileGuide = 1031; - int64 payScores = 1032; - bool pushCommentStatus = 1033; - bool pushDigg = 1034; - bool pushFollow = 1035; - bool pushFriendAction = 1036; - bool pushIchat = 1037; - bool pushStatus = 1038; - bool pushVideoPost = 1039; - bool pushVideoRecommend = 1040; - UserStats stats = 1041; - bool verifiedMobile = 1042; - string verifiedReason = 1043; - bool withCarManagementPermission = 1044; - int32 ageRange = 1045; - int64 watchDurationMonth = 1046; - - message ActivityInfo{ - - } - - message AnchorInfo { - - } - - message AnchorLevel{ - - } - - message AuthenticationInfo{ - - } - - message AuthorStats{ - - } - - message Border{ - - } - - message BrotherhoodInfo{ - - } - - message FansClub { - FansClubData data = 1; - map preferData = 2; - - message FansClubData { - string clubName = 1; - int32 level = 2; - int32 userFansClubStatus = 3; - UserBadge badge = 4; - repeated int64 availableGiftIds = 5; - int64 anchorId = 6; - - message UserBadge { - map icons = 1; - string title = 2; - } - - } - } - - message FansGroupInfo{ - - } - - message FollowInfo { - int64 followingCount = 1; - int64 followerCount = 2; - int64 followStatus = 3; - int64 pushStatus = 4; - string remarkName = 5; - } - - message JAccreditInfo{ - - } - - message NobleLevelInfo{ - - } - - message OwnRoom { - - } - - message PayGrade { - int64 totalDiamondCount = 1; - Image diamondIcon = 2; - string name = 3; - Image icon = 4; - string nextName = 5; - int64 level = 6; - Image nextIcon = 7; - int64 nextDiamond = 8; - int64 nowDiamond = 9; - int64 thisGradeMinDiamond = 10; - int64 thisGradeMaxDiamond = 11; - int64 payDiamondBak = 12; - string gradeDescribe = 13; - repeated GradeIcon gradeIconList = 14; - int64 screenChatType = 15; - Image imIcon = 16; - Image imIconWithLevel = 17; - Image liveIcon = 18; - Image newImIconWithLevel = 19; - Image newLiveIcon = 20; - int64 upgradeNeedConsume = 21; - string nextPrivileges = 22; - Image background = 23; - Image backgroundBack = 24; - int64 score = 25; - // GradeBuffInfo buffInfo = 26; - string gradeBanner = 1001; - Image profileDialogBg = 1002; - Image profileDialogBgBack = 1003; - - message GradeIcon{ - Image icon = 1; - int64 iconDiamond = 2; - int64 level = 3; - string levelStr = 4; - } - - } - - message PoiInfo{ - - } - - message ProfileStyleParams{ - - } - - message Subscribe{ - - } - - message UserAttr{ - - } - - message UserDressInfo{ - - } - - message UserVIPInfo { - - } - - message UserStats{ - - } - - message XiguaParams{ - - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_cmd_msg.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_cmd_msg.proto deleted file mode 100644 index 41a71eb4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_cmd_msg.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "Douyin_cmd_msgProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message douyin_cmd_msg { - string method = 1; - bytes payload = 2; - int64 msg_id = 3; - int32 msg_type = 4; - int64 offset = 5; - bool need_wrds_store = 6; - int64 wrds_version = 7; - string wrds_sub_key = 8; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_chat_message_msg.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_chat_message_msg.proto deleted file mode 100644 index 4866a3b4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_chat_message_msg.proto +++ /dev/null @@ -1,34 +0,0 @@ -syntax = "proto3"; -import "Common.proto"; -import "User.proto"; -import "Image.proto"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "Douyin_webcast_chat_message_msgProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message douyin_webcast_chat_message_msg { - Common common = 1; - User user = 2; - string content = 3; - bool visible_to_sender = 4; - Image background_image = 5; - string full_screen_text_color = 6; - Image background_image_v2 = 7; - // PublicAreaCommon public_area_common = 9; - Image gift_image = 10; - uint64 agree_msg_id = 11; - uint32 priority_level = 12; - // LandscapeAreaCommon landscape_area_common = 13; - uint64 event_time = 15; - bool send_review = 16; - bool from_intercom = 17; - bool intercom_hide_user_card = 18; - // repeated string chatTagsList = 19; - string chat_by = 20; - uint32 individual_chat_priority = 21; - // Text rtf_content = 22 ; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_gift_message_msg.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_gift_message_msg.proto deleted file mode 100644 index fcd1d786..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_gift_message_msg.proto +++ /dev/null @@ -1,52 +0,0 @@ -syntax = "proto3"; -import "Common.proto"; -import "User.proto"; -import "TextEffect.proto"; -import "Text.proto"; -import "GiftIMPriority.proto"; -import "GiftStruct.proto"; -import "PublicAreaCommon.proto"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "Douyin_webcast_gift_message_msgProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message douyin_webcast_gift_message_msg { - Common common = 1; - uint64 long_gift_id = 2; - uint64 fan_ticket_count = 3; - uint64 group_count = 4; - uint64 repeat_count = 5; - uint64 combo_count = 6; - User user = 7; - User to_user = 8 ; - uint32 repeat_end = 9 ; - TextEffect text_effect = 10 ; - uint64 group_id = 11 ; - uint64 income_taskgifts = 12 ; - uint64 room_fan_ticket_count = 13 ; - GiftIMPriority priority = 14 ; - GiftStruct gift = 15 ; - string log_id = 16 ; - uint64 send_type = 17 ; - PublicAreaCommon public_area_common = 18 ; - Text tray_display_text = 19 ; - uint64 banned_display_effects = 20 ; - // GiftTrayInfo trayInfo = 21; - // AssetEffectMixInfo assetEffectMixInfo = 22; - bool display_for_self = 25; - string interact_gift_info = 26; - string diy_item_info = 27; - repeated uint64 min_asset_set_list = 28; - uint64 total_count = 29; - uint32 client_gift_source = 30; - // AnchorGiftData anchorGift = 31; - repeated uint64 to_user_ids_list = 32; - uint64 send_timet = 33; - uint64 force_display_effectst = 34; - string trace_id = 35; - uint64 effect_display_ts = 36; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_like_message_msg.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_like_message_msg.proto deleted file mode 100644 index 2a617397..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_like_message_msg.proto +++ /dev/null @@ -1,26 +0,0 @@ -syntax = "proto3"; -import "Common.proto"; -import "User.proto"; -import "DoubleLikeDetail.proto"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "douyin_webcast_like_message_msgProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message douyin_webcast_like_message_msg { - Common common = 1; - uint64 count = 2; - uint64 total = 3; - uint64 color = 4; - User user = 5; - string icon = 6; - DoubleLikeDetail doubleLikeDetail = 7; - // DisplayControlInfo displayControlInfo = 8; - uint64 linkmicGuestUid = 9; - string scene = 10; - // PicoDisplayInfo picoDisplayInfo = 11; - // = 12; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_member_message_msg.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_member_message_msg.proto deleted file mode 100644 index f892a74c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_webcast_member_message_msg.proto +++ /dev/null @@ -1,37 +0,0 @@ -syntax = "proto3"; -import "Common.proto"; -import "User.proto"; -import "Image.proto"; -import "Text.proto"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "Douyin_webcast_member_message_msgProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message douyin_webcast_member_message_msg { - Common common = 1; - User user = 2; - uint64 memberCount = 3; - User operator = 4; - bool isSetToAdmin = 5; - bool isTopUser = 6; - int64 rankScore = 7; - int64 topUserNo = 8; - int64 enterType = 9; - int64 action = 10; - string actionDescription = 11; - int64 userId = 12; - // EffectConfig effectConfig = 13; - string popStr = 14; - // EffectConfig enterEffectConfig = 15; - Image backgroundImage = 16; - Image backgroundImageV2 = 17; - Text anchorDisplayText = 18; - // PublicAreaCommon publicAreaCommon = 19; - int64 userEnterTipType = 20; - int64 anchorEnterTipType = 21; - map buriedPointMap = 22; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_websocket_frame.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_websocket_frame.proto deleted file mode 100644 index fe01e9ab..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_websocket_frame.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "Douyin_websocket_frameProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -message douyin_websocket_frame { - uint64 seq_id = 1; - uint64 log_id = 2; - uint64 service = 3; - uint64 method = 4; - map headers_list = 5; - string payload_encoding = 6; - string payload_type = 7; - bytes payload = 8; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_websocket_frame_msg.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_websocket_frame_msg.proto deleted file mode 100644 index 808bb2fb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/main/resources/proto/douyin_websocket_frame_msg.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; - -package tech.ordinaryroad.live.chat.client.douyin.protobuf; - -option java_package = "tech.ordinaryroad.live.chat.client.douyin.protobuf"; -option java_outer_classname = "douyin_websocket_frame_msgProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -import "douyin_cmd_msg.proto"; - -message douyin_websocket_frame_msg { - repeated douyin_cmd_msg messages_list = 1; - string cursor = 2; - uint64 fetch_interval = 3; - uint64 now = 4; - string internal_ext = 5; - uint32 fetch_type = 6; - map route_params = 7; - uint64 heartbeat_duration = 8; - bool need_ack = 9; - string push_server = 10; - string live_cursor = 11; - bool history_no_more = 12; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/test/java/tech/ordinaryroad/live/chat/client/douyin/api/DouyinApisTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/test/java/tech/ordinaryroad/live/chat/client/douyin/api/DouyinApisTest.java deleted file mode 100644 index fe217bcc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/test/java/tech/ordinaryroad/live/chat/client/douyin/api/DouyinApisTest.java +++ /dev/null @@ -1,15 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyin.api; - -import org.junit.jupiter.api.Test; - -/** - * @author mjz - * @date 2024/1/3 - */ -class DouyinApisTest { - - @Test - void roomInit() { - DouyinApis.roomInit("886419461662"); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/test/java/tech/ordinaryroad/live/chat/client/douyin/client/DouyinLiveChatClientTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/test/java/tech/ordinaryroad/live/chat/client/douyin/client/DouyinLiveChatClientTest.java deleted file mode 100644 index a80ec93d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyin/src/test/java/tech/ordinaryroad/live/chat/client/douyin/client/DouyinLiveChatClientTest.java +++ /dev/null @@ -1,93 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyin.client; - -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.douyin.config.DouyinLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyin.constant.DouyinCmdEnum; -import tech.ordinaryroad.live.chat.client.douyin.listener.IDouyinMsgListener; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinDanmuMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinEnterRoomMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinGiftMsg; -import tech.ordinaryroad.live.chat.client.douyin.msg.DouyinLikeMsg; -import tech.ordinaryroad.live.chat.client.douyin.netty.handler.DouyinBinaryFrameHandler; - -/** - * @author mjz - * @date 2024/1/2 - */ -@Slf4j -class DouyinLiveChatClientTest { - - static Object lock = new Object(); - DouyinLiveChatClient client; - - @Test - void example() throws InterruptedException { - String cookie = System.getenv("cookie"); - log.error("cookie: {}", cookie); - DouyinLiveChatClientConfig config = DouyinLiveChatClientConfig.builder() - // TODO 浏览器Cookie - .cookie(cookie) - .roomId("renyixu1989") - .roomId("567789235524") - .roomId("166163409118") - .roomId("722266687616") - .roomId("o333") - .roomId("qilongmusic") - .roomId("yimei20210922") - .build(); - - client = new DouyinLiveChatClient(config, new IDouyinMsgListener() { - @Override - public void onMsg(IMsg msg) { - // log.debug("收到{}消息 {}", msg.getClass(), msg); - } - - @Override - public void onCmdMsg(DouyinCmdEnum cmd, ICmdMsg cmdMsg) { - // log.debug("收到CMD消息{} {}", cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(DouyinCmdEnum cmd, ICmdMsg cmdMsg) { - log.debug("收到其他CMD消息 {}", cmd); - } - - @Override - public void onUnknownCmd(String cmdString, IMsg msg) { - log.debug("收到未知CMD消息 {}", cmdString); - } - - @Override - public void onDanmuMsg(DouyinBinaryFrameHandler binaryFrameHandler, DouyinDanmuMsg msg) { - log.info("{} 收到弹幕 {} {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(DouyinBinaryFrameHandler binaryFrameHandler, DouyinGiftMsg msg) { - log.info("{} 收到礼物 {} {}({}) {} {}({})x{}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), "赠送", msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice()); - } - - @Override - public void onLikeMsg(DouyinBinaryFrameHandler binaryFrameHandler, DouyinLikeMsg msg) { - log.info("{} 收到点赞 [{}] {}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - - @Override - public void onEnterRoomMsg(DouyinBinaryFrameHandler binaryFrameHandler, DouyinEnterRoomMsg msg) { - log.info("{} {}({}) 进入直播间", msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - }); - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/README.md b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/README.md deleted file mode 100644 index 0b71bda0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/README.md +++ /dev/null @@ -1,52 +0,0 @@ -### 序列化 - -#### 序列化基本数据类型 - -1. escape(key) -2. escape(value) -3. key@=value/ - -#### 序列化Map - -1. escape(key) -2. value for each - 1. escape(key) - 2. escape(value) - 3. escape(key@=value/) -3. escape(value) -4. key@=value/ - -### 反序列化 - -#### 反序列化基本数据类型 - -1. spilt("/"): - type@=chatmsg - -2. split("@="): - 1. key: unescape(key) = el - 2. unescape(value).endsWith("/") = false - 2.1 value = chatmsg - -#### 反序列化Map - -1. spilt("/"): - el@=eid@AA=1@ASetp@AA=1@ASsc@AA=1@AS - -2. split("@="): - 1. key: unescape = el - 2. unescape(value).endsWith("/") = true - eid@A=1/etp@A=1/sc@A=1/ - 1. split("/") - eid@A=1 - etp@A=1 - sc@A=1 - 2. unescape: - eid@=1 - etp@=1 - sc@=1 - 3. for each - 1. split("@=") - 2. unescape(key) - 3. unescape(value) - 4. value: map \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/pom.xml deleted file mode 100644 index d051f935..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - live-chat-clients - ${revision} - ../pom.xml - - jar - - live-chat-client-douyu - live-chat-client-douyu - - - UTF-8 - - - - - org.ruoyi - live-chat-client-servers-netty-client - - - - ch.qos.logback - logback-classic - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/api/DouyuApis.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/api/DouyuApis.java deleted file mode 100644 index 32c53664..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/api/DouyuApis.java +++ /dev/null @@ -1,196 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.api; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.NumberUtil; -import cn.hutool.core.util.RandomUtil; -import cn.hutool.core.util.ReUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.crypto.digest.MD5; -import cn.hutool.http.*; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import lombok.Cleanup; -import lombok.SneakyThrows; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.commons.util.OrLocalDateTimeUtil; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftPropSingle; - -import java.util.List; -import java.util.Map; - -/** - * API简易版 - * - * @author mjz - * @date 2023/5/5 - */ -@Slf4j -public class DouyuApis { - - public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); - public static final String PATTERN_BODY_ROOM_ID = "\\$ROOM\\.room_id\\D+(\\d+)"; - public static final String KEY_REDIRECT_LOCATION_RID = "rid"; - public static final String KEY_COOKIE_DY_DID = "dy_did"; - public static final String KEY_COOKIE_ACF_UID = "acf_uid"; - public static final String KEY_COOKIE_ACF_STK = "acf_stk"; - public static final String KEY_COOKIE_ACF_LTKID = "acf_ltkid"; - public static final String API_AVATAR = "https://apic.douyucdn.cn/upload/"; - // https://webconf.douyucdn.cn/resource/common/gift/flash/gift_effect.json - // https://webconf.douyucdn.cn/resource/common/gift/common_config_v2.json - // https://webconf.douyucdn.cn/resource/common/prop_gift_list/prop_gift_config.json - // 用PID查询礼物信息:https://gift.douyucdn.cn/api/prop/v1/web/single?pid= - // 查询房间礼物列表:https://gift.douyucdn.cn/api/gift/v3/web/list?rid= - public static final String API_GIFT_LIST = "https://gift.douyucdn.cn/api/gift/v3/web/list?rid="; - public static final String API_PROP_SINGLE = "https://gift.douyucdn.cn/api/prop/v1/web/single?pid="; - public static final String API_AVATAR_PREFIX_SMALL = "_small.jpg"; - public static final String API_AVATAR_PREFIX_MIDDLE = "_middle.jpg"; - public static final String API_AVATAR_PREFIX_BIG = "_big.jpg"; - - public static String getAvatarUrl(List list, String prefix) { - if (CollUtil.isEmpty(list) || list.size() < 3) { - return StrUtil.EMPTY; - } - return API_AVATAR + CollUtil.join(list, "/") + prefix; - } - - public static String getSmallAvatarUrl(List list) { - return getAvatarUrl(list, API_AVATAR_PREFIX_SMALL); - } - - public static long getRealRoomId(long roomId, String cookie) { - String realRoomIdString = null; - @Cleanup - HttpResponse execute = createGetRequest("https://www.douyu.com/" + roomId, cookie).execute(); - if (execute.getStatus() == HttpStatus.HTTP_NOT_FOUND) { - throw new BaseException("获取" + roomId + "真实房间ID失败"); - } - if (HttpStatus.isRedirected(execute.getStatus())) { - String location = execute.header(Header.LOCATION); - Map paramMap = HttpUtil.decodeParamMap(location, null); - if (paramMap.containsKey(KEY_REDIRECT_LOCATION_RID)) { - realRoomIdString = paramMap.get(KEY_REDIRECT_LOCATION_RID); - } - } - if (StrUtil.isBlank(realRoomIdString)) { - String body = execute.body(); - String matchString = ReUtil.get(PATTERN_BODY_ROOM_ID, body, 1); - if (StrUtil.isNotBlank(matchString)) { - realRoomIdString = matchString; - } - } - long realRoomId = roomId; - if (!StrUtil.isBlank(realRoomIdString)) { - try { - realRoomId = NumberUtil.parseLong(realRoomIdString); - } catch (Exception e) { - throw new BaseException("获取" + roomId + "真实房间ID失败"); - } - } - return realRoomId; - } - - public static long getRealRoomId(long roomId) { - return getRealRoomId(roomId, null); - } - - public static JsonNode getServerInfo(long roomId, String cookie) { - @Cleanup - HttpResponse execute = createPostRequest("https://www.douyu.com/lapi/live/gateway/web/" + roomId + "?isH5=1", cookie).execute(); - return responseInterceptor(execute.body()); - } - - public static JsonNode getServerInfo(long roomId) { - return getServerInfo(roomId, null); - } - - public static String getRandomWssUri(long roomId) { - JsonNode serverInfo = getServerInfo(roomId); - JsonNode wss = serverInfo.get("wss"); - JsonNode jsonNode = wss.get(RandomUtil.randomInt(0, wss.size())); - return "wss://" + jsonNode.get("domain").asText() + ":" + jsonNode.get("port").asInt(); - } - - public static JsonNode getGiftList(long roomId) { - @Cleanup - HttpResponse execute = createGetRequest(API_GIFT_LIST + roomId, null).execute(); - return responseInterceptor(execute.body()); - } - - @SneakyThrows - public static GiftPropSingle getGiftPropSingleByPid(String pid) { - @Cleanup - HttpResponse execute = createGetRequest(API_PROP_SINGLE + pid, null).execute(); - JsonNode jsonNode = responseInterceptor(execute.body()); - return BaseMsg.OBJECT_MAPPER.readValue(jsonNode.toString(), GiftPropSingle.class); - } - - public static final String vk_secret = "r5*^5;}2#${XF[h+;'./.Q'1;,-]f'p["; - - /** - * 参考: 斗鱼关注人数爬取 ── 字体反爬的攻与防 - * - * @param currentTimeSecs - * @param did - * @return - */ - public static String generateVk(long currentTimeSecs, String did) { - return MD5.create().digestHex(currentTimeSecs + vk_secret + did); - } - - public static String generateVk(String did) { - return generateVk(OrLocalDateTimeUtil.zonedCurrentTimeSecs(), did); - } - - public static HttpRequest createGetRequest(String url, String cookie) { - return HttpUtil.createGet(url) - .cookie(cookie); - } - - public static HttpRequest createPostRequest(String url, String cookie) { - return HttpUtil.createPost(url) - .cookie(cookie); - } - - private static JsonNode responseInterceptor(String responseString) { - try { - JsonNode jsonNode = OBJECT_MAPPER.readTree(responseString); - int code = jsonNode.get("error").asInt(); - if (code == 0) { - // 成功 - return jsonNode.get("data"); - } else { - throw new BaseException(jsonNode.get("msg").asText()); - } - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuDanmuLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuDanmuLiveChatClient.java deleted file mode 100644 index a780acaf..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuDanmuLiveChatClient.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.client; - -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.DefaultHttpHeaders; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.douyu.client.base.BaseDouyuLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuClientModeEnum; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.msg.LoginresMsg; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuConnectionHandler; - -import java.util.List; - -/** - * 直播间弹幕客户端{@link DouyuClientModeEnum#DANMU} - * - * @author mjz - * @date 2023/8/20 - */ -@Slf4j -public class DouyuDanmuLiveChatClient extends BaseDouyuLiveChatClient implements IDouyuMsgListener { - - public DouyuDanmuLiveChatClient(DouyuLiveChatClientConfig config, List msgListeners, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(DouyuClientModeEnum.DANMU, config, msgListeners, connectionListener, workerGroup); - addMsgListener(DouyuDanmuLiveChatClient.this); - } - - public DouyuDanmuLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(DouyuClientModeEnum.DANMU, config, msgListener, connectionListener, workerGroup); - addMsgListener(DouyuDanmuLiveChatClient.this); - } - - public DouyuDanmuLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public DouyuDanmuLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener) { - this(config, msgListener, null); - } - - public DouyuDanmuLiveChatClient(DouyuLiveChatClientConfig config) { - this(config, null); - } - - @Override - public DouyuConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - return new DouyuConnectionHandler(DouyuClientModeEnum.DANMU, - WebSocketClientHandshakerFactory.newHandshaker(getWebsocketUri(), WebSocketVersion.V13, null, true, new DefaultHttpHeaders(), getConfig().getMaxFramePayloadLength()), - DouyuDanmuLiveChatClient.this, clientConnectionListener - ); - } - - @Override - public DouyuBinaryFrameHandler initBinaryFrameHandler() { - return new DouyuBinaryFrameHandler(msgListeners, DouyuDanmuLiveChatClient.this); - } - - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - if (msg instanceof LoginresMsg) { - // 1 type@=joingroup/rid@=4615502/gid@=1/ - send(getWebSocketFrameFactory(getConfig().getRoomId()).createJoingroup(), () -> { - // 2 type@=mrkl/ - send(getWebSocketFrameFactory(getConfig().getRoomId()).createHeartbeat(), () -> { - // 3 type@=sub/mt@=dayrk/ - send(getWebSocketFrameFactory(getConfig().getRoomId()).createSub()); - }); - }); - } - } - - @Override - public boolean removeMsgListener(IDouyuMsgListener msgListener) { - if (msgListener == DouyuDanmuLiveChatClient.this) { - return false; - } - return super.removeMsgListener(msgListener); - } - - @Override - public void removeAllMsgListeners() { - super.removeAllMsgListeners(); - addMsgListener(DouyuDanmuLiveChatClient.this); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuLiveChatClient.java deleted file mode 100644 index 4e183a14..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuLiveChatClient.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.client; - -import cn.hutool.cache.impl.TimedCache; -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.bean.copier.CopyOptions; -import cn.hutool.core.util.RandomUtil; -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseCmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.msg.ChatmsgMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.DgbMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.MsgrepeaterproxylistMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.UenterMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftListInfo; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftPropSingle; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuConnectionHandler; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; - -/** - * 直播间弹幕客户端 - * - * @author mjz - * @date 2023/8/20 - */ -@Slf4j -public class DouyuLiveChatClient extends DouyuWsLiveChatClient implements IDouyuMsgListener { - - /** - * 通用礼物缓存,过期时间1天 - * pid,Info - */ - public static final TimedCache giftMap = new TimedCache<>(TimeUnit.DAYS.toMillis(1)); - /** - * 房间礼物缓存,过期时间1天 - * realRoomId,(giftId,Info) - */ - public static final TimedCache> roomGiftMap = new TimedCache<>(TimeUnit.DAYS.toMillis(1), new HashMap<>()); - private final DouyuWsLiveChatClient proxyClient = this; - private DouyuDanmuLiveChatClient danmuClient = null; - private DouyuConnectionHandler connectionHandler; - /** - * 统一管理Ws、Danmu的连接状态 - */ - private final IDouyuConnectionListener connectionListener; - - public DouyuLiveChatClient(DouyuLiveChatClientConfig config, List msgListeners, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, msgListeners, null, workerGroup); - this.connectionListener = connectionListener; - } - - public DouyuLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, msgListener, null, workerGroup); - this.connectionListener = connectionListener; - } - - public DouyuLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public DouyuLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener) { - this(config, msgListener, null); - } - - public DouyuLiveChatClient(DouyuLiveChatClientConfig config) { - this(config, null); - } - - @Override - public void init() { - super.init(); - - // 初始化房间礼物列表 - Map map = new HashMap<>(); - DouyuApis.getGiftList(getConfig().getRoomId()) - .get("giftList") - .forEach(jsonNode -> { - try { - GiftListInfo giftListInfo = BaseMsg.OBJECT_MAPPER.readValue(jsonNode.toString(), GiftListInfo.class); - map.put(String.valueOf(giftListInfo.getId()), giftListInfo); - } catch (Exception e) { - if (log.isDebugEnabled()) { - log.debug("获取房间礼物列表异常", e); - } - // ignore - } - }); - roomGiftMap.put(String.valueOf(DouyuApis.getRealRoomId(getConfig().getRoomId())), map); - } - - @Override - public DouyuConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - this.connectionHandler = super.initConnectionHandler(super.clientConnectionListener); - return connectionHandler; - } - - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - super.onMsg(binaryFrameHandler, msg); - if (msg instanceof MsgrepeaterproxylistMsg) { - MsgrepeaterproxylistMsg msgrepeaterproxylistMsg = (MsgrepeaterproxylistMsg) msg; - List> list = msgrepeaterproxylistMsg.getList(); - if (list.isEmpty()) { - log.error("弹幕服务器列表为空"); - if (connectionListener != null) { - connectionListener.onConnectFailed(connectionHandler); - } - disconnect(); - } else { - // 初始化danmuClient - int randomIndex = RandomUtil.randomInt(0, list.size()); - Map randomMap = list.get(randomIndex); - DouyuLiveChatClientConfig danmuClientConfig = BeanUtil.toBean(getConfig(), DouyuLiveChatClientConfig.class, CopyOptions.create().ignoreNullValue()); - danmuClientConfig.setWebsocketUri(String.format("wss://%s:%s/", randomMap.get("ip"), randomMap.get("port"))); - destroyDanmuClient(); - this.danmuClient = new DouyuDanmuLiveChatClient(danmuClientConfig, new IDouyuMsgListener() { - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onMsg(binaryFrameHandler, msg)); - } - - @Override - public void onDanmuMsg(DouyuBinaryFrameHandler binaryFrameHandler, ChatmsgMsg msg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onDanmuMsg(binaryFrameHandler, msg)); - } - - @Override - public void onGiftMsg(DouyuBinaryFrameHandler binaryFrameHandler, DgbMsg msg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onGiftMsg(binaryFrameHandler, msg)); - } - - @Override - public void onEnterRoomMsg(DouyuBinaryFrameHandler binaryFrameHandler, UenterMsg uenterMsg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onEnterRoomMsg(binaryFrameHandler, uenterMsg)); - } - - @Override - public void onCmdMsg(DouyuBinaryFrameHandler binaryFrameHandler, DouyuCmdEnum cmd, ICmdMsg cmdMsg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onCmdMsg(binaryFrameHandler, cmd, cmdMsg)); - } - - @Override - public void onOtherCmdMsg(DouyuBinaryFrameHandler binaryFrameHandler, DouyuCmdEnum cmd, ICmdMsg cmdMsg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(binaryFrameHandler, cmd, cmdMsg)); - } - - @Override - public void onUnknownCmd(DouyuBinaryFrameHandler binaryFrameHandler, String cmdString, IMsg msg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onUnknownCmd(binaryFrameHandler, cmdString, msg)); - } - - @Override - public void onCmdMsg(DouyuBinaryFrameHandler binaryFrameHandler, DouyuCmdEnum cmd, BaseCmdMsg cmdMsg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onCmdMsg(binaryFrameHandler, cmd, cmdMsg)); - } - - @Override - public void onOtherCmdMsg(DouyuBinaryFrameHandler binaryFrameHandler, DouyuCmdEnum cmd, BaseCmdMsg cmdMsg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(binaryFrameHandler, cmd, cmdMsg)); - } - - @Override - public void onUnknownCmd(DouyuBinaryFrameHandler binaryFrameHandler, String cmdString, BaseMsg msg) { - proxyClient.iteratorMsgListeners(msgListener -> msgListener.onUnknownCmd(binaryFrameHandler, cmdString, msg)); - } - }, new IDouyuConnectionListener() { - @Override - public void onConnected(DouyuConnectionHandler connectionHandler) { - if (connectionListener != null) { - connectionListener.onConnected(connectionHandler); - } - } - - @Override - public void onConnectFailed(DouyuConnectionHandler connectionHandler) { - if (connectionListener != null) { - connectionListener.onConnectFailed(connectionHandler); - } - } - - @Override - public void onDisconnected(DouyuConnectionHandler connectionHandler) { - if (connectionListener != null) { - connectionListener.onDisconnected(connectionHandler); - } - } - }); - this.danmuClient.addStatusChangeListener(evt -> { - ClientStatusEnums newStatus = (ClientStatusEnums) evt.getNewValue(); - switch (newStatus) { - case CONNECTED: - case RECONNECTING: - case CONNECT_FAILED: - case DISCONNECTED: - case CONNECTING: { - super.setStatus(newStatus); - break; - } - default: { - // ignore - } - } - - }); - this.danmuClient.connect(); - } - } - } - - @Override - protected void setStatus(ClientStatusEnums status) { - if (status == ClientStatusEnums.CONNECTED) { - return; - } - super.setStatus(status); - } - - @Override - public void destroy() { - destroyDanmuClient(); - super.destroy(); - } - - private void destroyDanmuClient() { - if (danmuClient != null) { - danmuClient.destroy(); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuWsLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuWsLiveChatClient.java deleted file mode 100644 index e6d50621..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuWsLiveChatClient.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.client; - -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.DefaultHttpHeaders; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.client.base.BaseDouyuLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuClientModeEnum; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.msg.LoginresMsg; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuConnectionHandler; - -import java.util.List; - -/** - * 直播间弹幕客户端{@link DouyuClientModeEnum#WS} - * - * @author mjz - * @date 2023/8/20 - */ -@Slf4j -public class DouyuWsLiveChatClient extends BaseDouyuLiveChatClient implements IDouyuMsgListener { - - public DouyuWsLiveChatClient(DouyuLiveChatClientConfig config, List msgListeners, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(DouyuClientModeEnum.WS, config, msgListeners, connectionListener, workerGroup); - addMsgListener(DouyuWsLiveChatClient.this); - } - - public DouyuWsLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(DouyuClientModeEnum.WS, config, msgListener, connectionListener, workerGroup); - addMsgListener(DouyuWsLiveChatClient.this); - } - - public DouyuWsLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public DouyuWsLiveChatClient(DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener) { - this(config, msgListener, null); - } - - public DouyuWsLiveChatClient(DouyuLiveChatClientConfig config) { - this(config, null); - } - - @Override - protected String getWebSocketUriString() { - return DouyuApis.getRandomWssUri(getConfig().getRoomId()); - } - - @Override - public DouyuConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - return new DouyuConnectionHandler(DouyuClientModeEnum.WS, - WebSocketClientHandshakerFactory.newHandshaker(getWebsocketUri(), WebSocketVersion.V13, null, true, new DefaultHttpHeaders(), getConfig().getMaxFramePayloadLength()), - DouyuWsLiveChatClient.this, clientConnectionListener - ); - } - - @Override - public DouyuBinaryFrameHandler initBinaryFrameHandler() { - return new DouyuBinaryFrameHandler(msgListeners, DouyuWsLiveChatClient.this); - } - - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - if (msg instanceof LoginresMsg) { - send(getWebSocketFrameFactory(getConfig().getRoomId()).createKeeplive(getConfig().getCookie())); - } - } - - @Override - public boolean removeMsgListener(IDouyuMsgListener msgListener) { - if (msgListener == DouyuWsLiveChatClient.this) { - return false; - } - return super.removeMsgListener(msgListener); - } - - @Override - public void removeAllMsgListeners() { - super.removeAllMsgListeners(); - addMsgListener(DouyuWsLiveChatClient.this); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/base/BaseDouyuLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/base/BaseDouyuLiveChatClient.java deleted file mode 100644 index 799eab2f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/client/base/BaseDouyuLiveChatClient.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.client.base; - -import cn.hutool.core.collection.CollUtil; -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.websocketx.WebSocketFrame; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuClientModeEnum; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.IDouyuMsg; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.factory.DouyuWebSocketFrameFactory; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuConnectionHandler; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; - -import java.util.List; -import java.util.function.Consumer; - -/** - * @author mjz - * @date 2023/9/15 - */ -@Slf4j -public abstract class BaseDouyuLiveChatClient extends BaseNettyClient< - DouyuLiveChatClientConfig, - DouyuCmdEnum, - IDouyuMsg, - IDouyuMsgListener, - DouyuConnectionHandler, - DouyuBinaryFrameHandler - > { - - private final DouyuClientModeEnum mode; - - public BaseDouyuLiveChatClient(DouyuClientModeEnum mode, DouyuLiveChatClientConfig config, List msgListeners, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - this.mode = mode; - addMsgListeners(msgListeners); - - // 初始化 - this.init(); - } - - public BaseDouyuLiveChatClient(DouyuClientModeEnum mode, DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - this.mode = mode; - addMsgListener(msgListener); - - // 初始化 - this.init(); - } - - public BaseDouyuLiveChatClient(DouyuClientModeEnum mode, DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener, IDouyuConnectionListener connectionListener) { - this(mode, config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public BaseDouyuLiveChatClient(DouyuClientModeEnum mode, DouyuLiveChatClientConfig config, IDouyuMsgListener msgListener) { - this(mode, config, msgListener, null, new NioEventLoopGroup()); - } - - public BaseDouyuLiveChatClient(DouyuClientModeEnum mode, DouyuLiveChatClientConfig config) { - this(mode, config, CollUtil.newArrayList(), null, new NioEventLoopGroup()); - } - - @Override - public void sendDanmu(Object danmu, Runnable success, Consumer failed) { - if (!checkCanSendDanmu()) { - return; - } - if (mode == DouyuClientModeEnum.WS && danmu instanceof String) { - String msg = (String) danmu; - if (log.isDebugEnabled()) { - log.debug("{} douyu发送弹幕 {}", getConfig().getRoomId(), danmu); - } - - WebSocketFrame webSocketFrame = null; - try { - webSocketFrame = getWebSocketFrameFactory(getConfig().getRoomId()).createDanmu(msg, getConfig().getCookie()); - } catch (Exception e) { - log.error("douyu弹幕包创建失败", e); - if (failed != null) { - failed.accept(e); - } - } - if (webSocketFrame == null) { - return; - } - - send(webSocketFrame, () -> { - if (log.isDebugEnabled()) { - log.debug("douyu弹幕发送成功 {}", danmu); - } - if (success != null) { - success.run(); - } - finishSendDanmu(); - }, throwable -> { - log.error("douyu弹幕发送失败", throwable); - if (failed != null) { - failed.accept(throwable); - } - }); - } else { - super.sendDanmu(danmu); - } - } - - protected static DouyuWebSocketFrameFactory getWebSocketFrameFactory(long roomId) { - return DouyuWebSocketFrameFactory.getInstance(roomId); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/config/DouyuLiveChatClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/config/DouyuLiveChatClientConfig.java deleted file mode 100644 index 685cd8d5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/config/DouyuLiveChatClientConfig.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.config; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatNumberUtil; -import tech.ordinaryroad.live.chat.client.servers.netty.client.config.BaseNettyClientConfig; - -/** - * Douyu直播间弹幕客户端配置 - * - * @author mjz - * @date 2023/8/21 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class DouyuLiveChatClientConfig extends BaseNettyClientConfig { - - @Builder.Default - private String ver = "20220825"; - - @Builder.Default - private String aver = "218101901"; - - @Override - public Long getRoomId() { - return OrLiveChatNumberUtil.parseLong(super.getRoomId()); - } - - public void setVer(String ver) { - String oldValue = this.ver; - this.ver = ver; - super.propertyChangeSupport.firePropertyChange("ver", oldValue, ver); - } - - public void setAver(String aver) { - String oldValue = this.aver; - this.aver = aver; - super.propertyChangeSupport.firePropertyChange("aver", oldValue, aver); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/constant/DouyuClientModeEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/constant/DouyuClientModeEnum.java deleted file mode 100644 index dbdc8b22..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/constant/DouyuClientModeEnum.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.constant; - -/** - * @author mjz - * @date 2023/9/15 - */ -public enum DouyuClientModeEnum { - /** - * 发送弹幕,获取可用的Danmu服务器链接 - */ - WS, - /** - * 接收直播间弹幕 - */ - DANMU, -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/constant/DouyuCmdEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/constant/DouyuCmdEnum.java deleted file mode 100644 index 9078fcda..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/constant/DouyuCmdEnum.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.constant; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import tech.ordinaryroad.live.chat.client.douyu.msg.*; - -/** - * 文档 - * - * @author mjz - * @date 2023/1/6 - */ -@Getter -@AllArgsConstructor -@RequiredArgsConstructor -public enum DouyuCmdEnum { - /** - * 登录请求消息 - *
{@code
-     * type@=loginreq/roomid@=7750753/dfl@=/username@=visitor10424697/uid@=1168052601/ver@=20220825/aver@=218101901/ct@=0/
-     * type@=loginreq/roomid@=58839/aid@=yihanTest/token@=4c8421535f9639d8c1ad35d1fa421f36/time@=1574850339/auth@=45619bb990e6b76db06a66d5a8a446d7/
-     * }
- */ - loginreq(LoginreqMsg.class), - /** - * 登录响应消息 - *
{@code
-     * type@=loginres/userid@=1168052601/roomgroup@=0/pg@=0/sessionid@=0/username@=/nickname@=/live_stat@=0/is_illegal@=0/ill_ct@=/ill_ts@=0/now@=0/ps@=0/es@=0/it@=0/its@=0/npv@=0/best_dlev@=0/cur_lev@=0/nrc@=964715377/ih@=0/sid@=76494/sahf@=0/sceneid@=0/newrg@=0/regts@=0/ip@=112.43.93.229/rn@=0/rct@=0/
-     * type@=loginresp/msg@=ok/rid@=77614265/
-     * }
- */ - loginres(LoginresMsg.class), - /** - * 入组 - * type@=joingroup/rid@=59872/aid@=yourapplicaitonID/token@=4c8421535f9639d8c1ad35d1fa421f36/time@=1574850339/auth@=xxxxxxxxxxxx/ - * Auth 生成方式为 md5({secret}_{aid}_{time}_{token}), secret为aid对应的秘钥 - */ - joingroup(JoingroupMsg.class), - /** - * 客户端旧版心跳、心跳回复 - *
{@code
-     * type@=keeplive/tick@=1439802131/
-     * }
- */ - keeplive(KeepliveMsg.class), - /** - * 客户端新版心跳、心跳回复 - *
{@code
-     * type@=mrkl/
-     * }
- */ - mrkl, - /** - * 订阅贵族排行变动 - * type@=sub/mt@=online_vip_list/ - */ - sub(SubMsg.class), - subres, - noble_num_info, - oni, - postLogin, - /** - * 弹幕 - * type@=chatmsg/rid@=7750753/uid@=549977/nn@=一闪一闪亮品品/txt@=冷门歌手哎,声音独特哎/cid@=044c3bf3074b483275a44e0000000000/ic@=avatar@Sdefault@S08/level@=29/sahf@=0/nl@=7/cst@=1693107871294/bnn@=/bl@=0/brid@=0/hc@=/lk@=/dms@=8/pdg@=26/pdk@=86/ext@=/ - * type@=chatmsg/rid@=58839/ct@=8/hashid@=9LA18ePx4dqW/nn@=test/txt@=666/cid@=1111/ic@=icon/sahf@=0/level@=1/nl@=0/nc@=0/cmt@=0/gt@=0/col@=0/rg@=0/pg@=0/dlv@=0/dc@=0/bdlv@=0/gatin@=0/ chtin@=0/repin@=0/bnn@=test/bl@=0/brid@=58839/hc@=0/ol@=0/rev@=0/hl@=0/ifs@=0/p2p@=0/el@=eid@AA=1@ASetp@AA=1@ASsc@AA=1@AS/ - */ - chatmsg(ChatmsgMsg.class), - pingreq, - /** - * 登出 - * type@=logout/ - */ - logout, - /** - * 登录响应 - * type@=loginresp/msg@=ok/rid@=77614265/ - */ - loginresp, - /** - * 礼物 - * type@=dgb/gfid@=1/gs@=59872/gfcnt@=1/hashid@=1/rid@=1/nn@=someone/level@=1/dw@=1/ - */ - dgb(DgbMsg.class), - /** - * 用户进房通知消息 - * type@=uenter/rid@=1/ uid@=1/nn@=someone/str@=1/level@=1/el@=eid@AA=1@ASetp@AA=1@ASsc@AA=1@AS@S/ - */ - uenter(UenterMsg.class), - /** - * 房间开关播提醒 - * type@=rss/rid@=1/ss@=1/code@=1/rt@=0/notify@=1/endtime@=1/ - */ - rss, - /** - * 超级弹幕消息 - * type@=ssd/rid@=1/trid@=1/content@=test/cli tp@=1/url@=test_url/jmptp@=1/ - */ - ssd, - /** - * 房间内礼物广播 - * type@=spbc/rid@=1/gfid@=1/sn@=name/dn@=name/gn@=1/gc@=1/gb@=1/es@=1/ eid@=1/ - */ - spbc, - /** - * 房间宝箱消息 - * type@=tsgs/rid@=1/gid@=1/gfid@=1/sn@=name/dn@=name/gn@=1/gc@=1/gb@=1/es@=1/gfid@=1/eid@=1/ - */ - tsgs, - /** - * 房间内 top10 变化消息 - * type@=rankup/uid@=1/rn@=3/rid@=1/rkt@=1/gid@=-9999/rt@=0/ nk@=test/sz@=3/drid@=1/bt@=1/ - */ - rankup, - /** - * 主播离开提醒 - * type@=al/rid@=10111/aid@=3044114/ - */ - al, - /** - * 主播回来继续直播提醒 - * type@=ab/rid@=10111/gid@=-9999/aid@=3044114/ - */ - ab, - /** - * 用户等级提升消息 - * type@=upgrade/rid@=1/gid@=-9999/uid@=12001/nn@=test/level@=3/ic@=icon/ - */ - upgrade, - /** - * 主播等级提升广播 - * type@=upbc/rid@=1/gid@=-9999/lev@=20/pu@=0/ - */ - upbc, - /** - * 禁言操作结果 - * type@=newblackres/rid@=1/gid@=-9999/ret@=0/otype@=2/sid@=10002/did@=10003/snic@=stest/dnic@=dtest/endtime@=1501920157/ - */ - newblackres, - /** - * 徽章等级提升通知 - * type@=blab/rid@=1/gid@=-9999/uid@=10002/nn@=test/lbl@=2/bl@=3/ba@=1/bnn@=ttt/ - */ - blab, - /** - * 用户分享了直播间通知 - * type@=srres/rid@=1/gid@=-9999/uid@=12001/nickname@=test/exp@=3/ - */ - srres, - /** - * 栏目排行榜变更通知 - * type@=rri/rid@=1/rn@=cate_rank/cate_id@=5/uid@=10005/sc@=100 00/idx@=10/bcr@=1/ibc@=1/an@=test/rktype@=1/tag_id@=1200/gif t_id@=100/ - */ - rri, - mapkb(MapkbMsg.class), - /** - * 发送弹幕 - */ - chatmessage(ChatmessageMsg.class), - h5ckreq(H5ckreqMsg.class), - h5gkcreq(H5gkcreqMsg.class), - h5cs(H5csMsg.class), - msgrepeaterproxylist(MsgrepeaterproxylistMsg.class), - ; - - private Class tClass; - - public static DouyuCmdEnum getByString(String cmd) { - try { - return DouyuCmdEnum.valueOf(cmd); - } catch (Exception e) { - return null; - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/listener/IDouyuConnectionListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/listener/IDouyuConnectionListener.java deleted file mode 100644 index cc3d33da..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/listener/IDouyuConnectionListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.listener; - - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuConnectionHandler; - -/** - * 连接回调 - * - * @author mjz - * @date 2023/8/21 - */ -public interface IDouyuConnectionListener extends IBaseConnectionListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/listener/IDouyuMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/listener/IDouyuMsgListener.java deleted file mode 100644 index 782c884e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/listener/IDouyuMsgListener.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.listener; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IDanmuMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IEnterRoomMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IGiftMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.ChatmsgMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.DgbMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.UenterMsg; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuBinaryFrameHandler; - -/** - * @author mjz - * @date 2023/1/7 - */ -public interface IDouyuMsgListener extends IBaseMsgListener, - IDanmuMsgListener, - IGiftMsgListener, - IEnterRoomMsgListener { -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/ChatmessageMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/ChatmessageMsg.java deleted file mode 100644 index 1e801cee..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/ChatmessageMsg.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import cn.hutool.core.util.RandomUtil; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.util.OrLocalDateTimeUtil; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/9/7 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ChatmessageMsg extends BaseDouyuCmdMsg { - - private String pe = "0"; - /** - * 弹幕内容 - */ - private String content; - private String col = "0"; - /** - * Cookie中的dy_did - */ - private String dy; - /** - * Cookie中的acf_uid - */ - private String sender; - private String ifs = "0"; - private String nc = "0"; - private String dat = "0"; - private String rev = "0"; - /** - * 当前时间戳(秒) - */ - private String tts; - private String admzq = "0"; - /** - * tts往后加几秒的时间戳(毫秒) - */ - private String cst; - - public ChatmessageMsg(String content, String dy, String sender) { - this.content = content; - this.dy = dy; - this.sender = sender; - this.tts = String.valueOf(OrLocalDateTimeUtil.zonedCurrentTimeSecs()); - this.cst = String.valueOf(OrLocalDateTimeUtil.zonedCurrentTimeMillis() + RandomUtil.randomLong(8000, 10000)); - } - - @Override - public String getType() { - return DouyuCmdEnum.chatmessage.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/ChatmsgMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/ChatmsgMsg.java deleted file mode 100644 index 052954e3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/ChatmsgMsg.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IDanmuMsg; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -import java.util.List; - -/** - *
{@code
- * {
- * 	"type": "chatmsg",
- * 	"cmdEnum": "chatmsg",
- * 	"cmd": "chatmsg",
- * 	"nn": "宋老二929",
- * 	"ext": null,
- * 	"bnn": null,
- * 	"level": "1",
- * 	"cst": "1693213418102",
- * 	"brid": "0",
- * 	"bl": "0",
- * 	"dms": "5",
- * 	"rid": "3168536",
- * 	"uid": "396023456",
- * 	"txt": "666",
- * 	"pdg": "47",
- * 	"pdk": "89",
- * 	"sahf": "0",
- * 	"ic": ["avatar_v3", "202101", "45daf5ceb475414293e3da4559552655"],
- * 	"hb": ["2719"],
- * 	"hc": null,
- * 	"cid": "0b37e26cccd54f7c4d73590000000000",
- * 	"lk": null
- * }
- * }
- * - * @author mjz - * @date 2023/8/28 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ChatmsgMsg extends BaseDouyuCmdMsg implements IDanmuMsg { - - private String nn; - private String ext; - private String bnn; - private String level; - private String cst; - private String brid; - private byte bl; - private String dms; - private long rid; - private String uid; - private String txt; - private String pdg; - private String pdk; - private String sahf; - private List ic; - private List hb; - private String hc; - private String cid; - private JsonNode lk; - - @Override - public String getType() { - return DouyuCmdEnum.chatmsg.name(); - } - - @Override - public String getBadgeName() { - return this.bnn; - } - - @Override - public byte getBadgeLevel() { - return this.bl; - } - - @Override - public String getUsername() { - return this.nn; - } - - @Override - public String getUserAvatar() { - return DouyuApis.getSmallAvatarUrl(ic); - } - - @Override - public String getContent() { - return this.txt; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/DgbMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/DgbMsg.java deleted file mode 100644 index a8c54164..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/DgbMsg.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IGiftMsg; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftListInfo; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftPropSingle; - -import java.util.List; - -/** - * 收到礼物消息 - *
{@code
- * {
- * 	"type": "dgb",
- * 	"nn": "用户名",
- * 	"eid": "0",
- * 	"bst": "32",
- * 	"brid": "0",
- * 	"pma": "186963537",
- * 	"bnid": "1",
- * 	"gfid": "824",
- * 	"bl": "0",
- * 	"pid": "268",
- * 	"rid": "290935",
- * 	"mss": "186963457",
- * 	"bcst": "2",
- * 	"uid": "用户id",
- * 	"receive_uid": "接受用户id",
- * 	"ic": ["avatar_v3", "201912", "d031765fbe764a49887083bcf200da0b"],
- * 	"from": "2",
- * 	"gpf": "1",
- * 	"bnl": "1",
- * 	"ce": "1",
- * 	"bnn": null,
- * 	"receive_nn": "接受用户用户名",
- * 	"level": "43",
- * 	"bcnt": "1",
- * 	"gs": "0",
- * 	"hits": "249",
- * 	"gfcnt": "249",
- * 	"ct": "0",
- * 	"pfm": "27585",
- * 	"sahf": "0",
- * 	"hc": null,
- * 	"fc": "0",
- * 	"eic": "0"
- * }
- * }
- * - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DgbMsg extends BaseDouyuCmdMsg implements IGiftMsg { - - /** - * 用户名 - */ - private String nn; - private String eid; - private String bst; - private String brid; - private String pma; - private String bnid; - private long gfid; - private byte bl; - private String pid; - private String rid; - private String mss; - private String bcst; - /** - * 用户id - */ - private String uid; - /** - * 收礼物用户id - */ - private long receive_uid; - private List ic; - private String from; - private String gpf; - private String bnl; - private String ce; - private String bnn; - /** - * 收礼物用户名 - */ - private String receive_nn; - private String level; - private String bcnt; - private String gs; - /** - * 连击 - */ - private String hits; - /** - * 礼物个数 - */ - private int gfcnt; - private String ct; - private String pfm; - private String sahf; - private String hc; - private String fc; - private String eic; - private String bsfl; - private String skinid; - - // region 额外属性 - private GiftPropSingle giftInfo = GiftPropSingle.DEFAULT_GIFT; - private GiftListInfo roomGiftInfo = GiftListInfo.DEFAULT_GIFT; - // endregion - - @Override - public String getType() { - return DouyuCmdEnum.dgb.name(); - } - - @Override - public String getBadgeName() { - return this.bnn; - } - - @Override - public byte getBadgeLevel() { - return this.bl; - } - - @Override - public String getUsername() { - return this.nn; - } - - @Override - public String getUserAvatar() { - return DouyuApis.getSmallAvatarUrl(ic); - } - - @Override - public String getGiftName() { - if (this.roomGiftInfo != null && this.roomGiftInfo != GiftListInfo.DEFAULT_GIFT) { - return this.roomGiftInfo.getName(); - } - - if (this.giftInfo == null) { - return "未知礼物"; - } - - return this.giftInfo.getName(); - } - - @Override - public String getGiftImg() { - if (this.roomGiftInfo != null && this.roomGiftInfo != GiftListInfo.DEFAULT_GIFT && this.roomGiftInfo.getBasicInfo() != null) { - return this.roomGiftInfo.getPicUrlPrefix() + this.roomGiftInfo.getBasicInfo().getChatPic(); - } - - if (this.giftInfo == null) { - return ""; - } - - return this.giftInfo.getPicUrlPrefix() + this.giftInfo.getChatPic(); - } - - @Override - public String getGiftId() { - return Long.toString(this.gfid); - } - - @Override - public int getGiftCount() { - return this.gfcnt; - } - - /** - * 100 => 1鱼翅 - */ - @Override - public int getGiftPrice() { - if (this.roomGiftInfo != null && this.roomGiftInfo != GiftListInfo.DEFAULT_GIFT && this.roomGiftInfo.getPriceInfo() != null) { - return this.roomGiftInfo.getPriceInfo().getPrice(); - } - - if (this.giftInfo == null) { - return -1; - } - - return this.giftInfo.getPrice(); - } - - @Override - public String getReceiveUid() { - return Long.toString(this.receive_uid); - } - - @Override - public String getReceiveUsername() { - return this.receive_nn; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/DouyuCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/DouyuCmdMsg.java deleted file mode 100644 index dcef8803..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/DouyuCmdMsg.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * type@=chatmsg/rid@=7750753/uid@=549977/nn@=一闪一闪亮品品/txt@=冷门歌手哎,声音独特哎/cid@=044c3bf3074b483275a44e0000000000/ic@=avatar@Sdefault@S08/level@=29/sahf@=0/nl@=7/cst@=1693107871294/bnn@=/bl@=0/brid@=0/hc@=/lk@=/dms@=8/pdg@=26/pdk@=86/ext@=/ - * - * @see tech.ordinaryroad.live.chat.client.douyu.util.DouyuCodecUtil#getDouyuMsgClassByType(DouyuCmdEnum, short) - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DouyuCmdMsg extends BaseDouyuCmdMsg { - - private String tick; - - private String res; - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5ckreqMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5ckreqMsg.java deleted file mode 100644 index 3736591c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5ckreqMsg.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class H5ckreqMsg extends BaseDouyuCmdMsg { - - private String rid; - private String ti; - - @Override - public String getType() { - return DouyuCmdEnum.h5ckreq.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5csMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5csMsg.java deleted file mode 100644 index 29b0957a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5csMsg.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class H5csMsg extends BaseDouyuCmdMsg { - - private String result; - - @Override - public String getType() { - return DouyuCmdEnum.h5cs.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5gkcreqMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5gkcreqMsg.java deleted file mode 100644 index 7e5a8b9f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/H5gkcreqMsg.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class H5gkcreqMsg extends BaseDouyuCmdMsg { - - private String rid; - private String ti; - - @Override - public String getType() { - return DouyuCmdEnum.h5gkcreq.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/HeartbeatMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/HeartbeatMsg.java deleted file mode 100644 index 934e9531..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/HeartbeatMsg.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -public class HeartbeatMsg extends BaseDouyuCmdMsg { - - @Override - public String getType() { - return DouyuCmdEnum.mrkl.name(); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/HeartbeatReplyMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/HeartbeatReplyMsg.java deleted file mode 100644 index 37eaa904..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/HeartbeatReplyMsg.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/1/6 - */ -public class HeartbeatReplyMsg extends BaseDouyuCmdMsg { - - @Override - public String getType() { - return DouyuCmdEnum.mrkl.name(); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/JoingroupMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/JoingroupMsg.java deleted file mode 100644 index 9d2694f2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/JoingroupMsg.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/8/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class JoingroupMsg extends BaseDouyuCmdMsg { - - private long rid; - private long gid = -9999; - - @Override - public String getType() { - return DouyuCmdEnum.joingroup.name(); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/KeepliveMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/KeepliveMsg.java deleted file mode 100644 index e7a0ff39..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/KeepliveMsg.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.util.OrLocalDateTimeUtil; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - *
{@code
- * type@=keeplive/vbw@=0/cdn@=hs-h5/tick@=1694099389/kd@=da9c384371b4552ac94e1237d2596262/
- * }
- * - * @author mjz - * @date 2023/9/7 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class KeepliveMsg extends BaseDouyuCmdMsg { - - private String vbw = "0"; - private String cnd; - private long tick = OrLocalDateTimeUtil.zonedCurrentTimeSecs(); - private String kd = ""; - - public KeepliveMsg(String cnd) { - this.cnd = cnd; - } - - @Override - public String getType() { - return DouyuCmdEnum.keeplive.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/LoginreqMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/LoginreqMsg.java deleted file mode 100644 index f180e8ce..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/LoginreqMsg.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.util.OrLocalDateTimeUtil; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -import java.util.Arrays; -import java.util.List; - -/** - * @author mjz - * @date 2023/8/27 - */ -@Getter -@Setter -@RequiredArgsConstructor -public class LoginreqMsg extends BaseDouyuCmdMsg { - - public static List SHOULD_IGNORE_NEW_LOGIN_PROPERTIES = Arrays.asList("roomid", "dfl", "username", "uid", "ver", "aver", "ct", "type"); - public static List SHOULD_IGNORE_OLD_LOGIN_PROPERTIES = Arrays.asList("type", "roomid", "dfl", "username", "password", "ltkid", "biz", "stk", "devid", "ct", "pt", "cvr", "tvr", "apd", "rt", "vk", "ver", "aver", "dmbt", "dmbv"); - - private long roomid; - private String dfl; - private String username; - private long uid; - private String ver; - private String aver; - private int ct = 0; - - private String password; - /** - * Cookie中的acf_ltkid - */ - private String ltkid; - private String biz; - /** - * Cookie中的acf_stk - */ - private String stk; - /** - * Cookie中的dy_did - */ - private String devid; - private String pt = "2"; - private String cvr = "0"; - private String tvr = "7"; - private String apd = ""; - private long rt = OrLocalDateTimeUtil.zonedCurrentTimeSecs(); - private String vk; - private String dmbt = "chrome"; - private String dmbv = "116"; - - public LoginreqMsg(long roomid, String dfl, String username, long uid, String ver, String aver) { - this.roomid = roomid; - this.dfl = dfl; - this.username = username; - this.uid = uid; - this.ver = ver; - this.aver = aver; - } - - public LoginreqMsg(long roomid, String dfl, String username, String ver, String aver, String ltkid, String biz, String stk, String devid) { - this.roomid = roomid; - this.dfl = dfl; - this.username = username; - this.ver = ver; - this.aver = aver; - this.ltkid = ltkid; - this.biz = biz; - this.stk = stk; - this.devid = devid; - this.vk = DouyuApis.generateVk(devid); - } - - @Override - public String getType() { - return DouyuCmdEnum.loginreq.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/LoginresMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/LoginresMsg.java deleted file mode 100644 index 8db0f3cc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/LoginresMsg.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/8/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LoginresMsg extends BaseDouyuCmdMsg { - - private long userid; - private int roomgroup; - private int pg; - private long sessionid; - private String username; - private String nickname; - private int live_stat; - private boolean is_illegal; - private String ill_ct; - private String ill_ts; - private String now; - private String ps; - private String es; - private String it; - private String its; - private String npv; - private String best_dlev; - private String cur_lev; - private String nrc; - private String ih; - private String sid; - private String sahf; - private String sceneid; - private String newrg; - private String regts; - private String ip; - private String rn; - private String rct; - - @Override - public String getType() { - return DouyuCmdEnum.loginres.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/MapkbMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/MapkbMsg.java deleted file mode 100644 index e81b7649..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/MapkbMsg.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -import java.util.List; - -/** - * @author mjz - * @date 2023/8/28 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MapkbMsg extends BaseDouyuCmdMsg { - - private long pk_time; - private List teams; - - @Override - public String getType() { - return DouyuCmdEnum.mapkb.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/MsgrepeaterproxylistMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/MsgrepeaterproxylistMsg.java deleted file mode 100644 index 0bfdb5f2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/MsgrepeaterproxylistMsg.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -import java.util.List; -import java.util.Map; - -/** - * @author mjz - * @date 2023/9/8 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MsgrepeaterproxylistMsg extends BaseDouyuCmdMsg { - - private String rid; - - /** - *
{@code
-     * [{
-     * 	"nr": "0",
-     * 	"port": "8501",
-     * 	"ip": "danmuproxy.douyu.com",
-     * 	"id": "0",
-     * 	"ml": "10000"
-     * }, {
-     * 	"nr": "0",
-     * 	"port": "8502",
-     * 	"ip": "danmuproxy.douyu.com",
-     * 	"id": "0",
-     * 	"ml": "10000"
-     * }, {
-     * 	"nr": "0",
-     * 	"port": "8503",
-     * 	"ip": "danmuproxy.douyu.com",
-     * 	"id": "0",
-     * 	"ml": "10000"
-     * }, {
-     * 	"nr": "0",
-     * 	"port": "8504",
-     * 	"ip": "danmuproxy.douyu.com",
-     * 	"id": "0",
-     * 	"ml": "10000"
-     * }, {
-     * 	"nr": "0",
-     * 	"port": "8505",
-     * 	"ip": "danmuproxy.douyu.com",
-     * 	"id": "0",
-     * 	"ml": "10000"
-     * }, {
-     * 	"nr": "0",
-     * 	"port": "8506",
-     * 	"ip": "danmuproxy.douyu.com",
-     * 	"id": "0",
-     * 	"ml": "10000"
-     * }]
-     * }
- */ - private List> list; - - @Override - public String getType() { - return DouyuCmdEnum.msgrepeaterproxylist.name(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/SubMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/SubMsg.java deleted file mode 100644 index c642c28f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/SubMsg.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -/** - * @author mjz - * @date 2023/8/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SubMsg extends BaseDouyuCmdMsg { - - private String mt = "dayrk"; - - @Override - public String getType() { - return DouyuCmdEnum.sub.name(); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/UenterMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/UenterMsg.java deleted file mode 100644 index 91b6b2e4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/UenterMsg.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IEnterRoomMsg; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; - -import java.util.List; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UenterMsg extends BaseDouyuCmdMsg implements IEnterRoomMsg { - - private String nn; - private long uid; - private int level; - private String sahf; - private List ic; - private String rid; - - @Override - public String getBadgeName() { - return null; - } - - @Override - public byte getBadgeLevel() { - return 0; - } - - @Override - public String getUid() { - return Long.toString(uid); - } - - @Override - public String getUsername() { - return nn; - } - - @Override - public String getUserAvatar() { - return DouyuApis.getSmallAvatarUrl(ic); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/base/BaseDouyuCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/base/BaseDouyuCmdMsg.java deleted file mode 100644 index 90e7478e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/base/BaseDouyuCmdMsg.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg.base; - - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; - -/** - * @author mjz - * @date 2023/1/6 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public abstract class BaseDouyuCmdMsg extends BaseCmdMsg implements IDouyuMsg { - - private String type; - - @Override - public String getCmd() { - return type; - } - - @Override - public void setCmd(String cmd) { - type = cmd; - } - - @Override - public DouyuCmdEnum getCmdEnum() { - return DouyuCmdEnum.getByString(type); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/base/IDouyuMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/base/IDouyuMsg.java deleted file mode 100644 index dac7d08d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/base/IDouyuMsg.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.msg.base; - -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; - -/** - * @author mjz - * @date 2023/8/26 - */ -public interface IDouyuMsg extends IMsg { - - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftListInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftListInfo.java deleted file mode 100644 index 03f2ee3e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftListInfo.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package tech.ordinaryroad.live.chat.client.douyu.msg.dto; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.*; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GiftListInfo { - - public static final GiftListInfo DEFAULT_GIFT = new GiftListInfo(); - - private BasicInfo basicInfo; - private JsonNode batchInfo; - private int batchInfoFlag; - private int countLimit; - private int defaultSkinId; - private int donateStatus; - private JsonNode effectInfo; - private int effectStatus; - private int endTime; - private JsonNode growthInfo; - private long hitInterval; - private int id; - private int isBatchLimited; - private int isFace; - private String name = "未知礼物"; - private String picUrlPrefix; - private PriceInfo priceInfo = new PriceInfo(); - private int showStatus; - private List skinIds; - private int startTime; - private List tabIds; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - - @Data - public static class BasicInfo { - private String bizTag; - private String borderColor; - private String chatPic; - private String culture; - private String desc1; - private String desc2; - private String focusPic; - private String giftPic; - private int giftType; - private int guardLevel; - private String sendPic; - private String subscriptColor; - private String subscriptText; - private String webSubscriptBigPic; - private String webSubscriptSmallPic; - private String webSubscriptText; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } - - @Data - public static class PriceInfo { - private int price = -1; - private String priceType; - private int returnNum; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftPropInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftPropInfo.java deleted file mode 100644 index 64e3e28f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftPropInfo.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package tech.ordinaryroad.live.chat.client.douyu.msg.dto; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GiftPropInfo { - - public static final GiftPropInfo DEFAULT_GIFT = new GiftPropInfo(); - - private String name = "未知礼物"; - private String bimg; - private String himg; - private String cimg; - private int stay_time; - private int show_combo; - private String batch_preset; - private List hit; - private int type; - private int style; - private int pc; - private int ry; - private int ef; - private int effect; - private int is_syn_fs; - private int is_stay; - private String drgb; - private String urgb; - private String grgb; - private String brgb; - private String small_effect_icon; - private String big_effect_icon; - private String effect_icon; - private String gift_icon; - private String gift_open_icon; - private int bonus; - private String web_flash; - private String hit_interval; - private int devote; - private int attack; - private int exp; - private int active_type; - private String pc_full_icon; - private String pc_full_bg_icon; - private int pc_show_combo; - private String pc_urgb; - private String pc_grgb; - private int index; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftPropSingle.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftPropSingle.java deleted file mode 100644 index de9ebe67..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/msg/dto/GiftPropSingle.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -package tech.ordinaryroad.live.chat.client.douyu.msg.dto; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.databind.JsonNode; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.HashMap; -import java.util.Map; - -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GiftPropSingle { - - public static final GiftPropSingle DEFAULT_GIFT = new GiftPropSingle(); - - // key,value - private JsonNode batchInfo; - private String bizTag; - private String borderColor; - private String chatPic; - private int count; - private String description; - private String description2; - private int devote; - // key,value - private JsonNode effectInfo; - private int exp; - private int expiry; - private String focusPic; - private int hitInterval; - private long id; - private int intimate; - private String intro; - private int isClick; - private int isFace; - private int isValuable; - private int level; - private int levelTime; - private int met; - private String name = "未知礼物"; - private String picUrlPrefix; - private int price = -1; - private int priceType; - private String propPic; - private int propType; - private int returnNum; - private String sendPic; - private String subscriptColor; - private String subscriptText; - private String webSubscriptBigPic; - private String webSubscriptSmallPic; - private String webSubscriptText; - - /** - * 未知属性都放在这 - */ - private final Map unknownProperties = new HashMap<>(); - - @JsonAnyGetter - public Map getUnknownProperties() { - return unknownProperties; - } - - @JsonAnySetter - public void setOther(String key, JsonNode value) { - this.unknownProperties.put(key, value); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/AuthWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/AuthWebSocketFrame.java deleted file mode 100644 index 6293b94e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/AuthWebSocketFrame.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.frame; - -import io.netty.buffer.ByteBuf; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.base.BaseDouyuWebSocketFrame; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class AuthWebSocketFrame extends BaseDouyuWebSocketFrame { - - public AuthWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/HeartbeatWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/HeartbeatWebSocketFrame.java deleted file mode 100644 index 1dd882eb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/HeartbeatWebSocketFrame.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.frame; - -import io.netty.buffer.ByteBuf; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.base.BaseDouyuWebSocketFrame; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class HeartbeatWebSocketFrame extends BaseDouyuWebSocketFrame { - - public HeartbeatWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/KeepliveWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/KeepliveWebSocketFrame.java deleted file mode 100644 index 43e88af2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/KeepliveWebSocketFrame.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.frame; - -import io.netty.buffer.ByteBuf; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.base.BaseDouyuWebSocketFrame; - -/** - * @author mjz - * @date 2023/9/8 - */ -public class KeepliveWebSocketFrame extends BaseDouyuWebSocketFrame { - - public KeepliveWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/base/BaseDouyuWebSocketFrame.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/base/BaseDouyuWebSocketFrame.java deleted file mode 100644 index da484fed..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/base/BaseDouyuWebSocketFrame.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.frame.base; - -import io.netty.buffer.ByteBuf; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; - -/** - * @author mjz - * @date 2023/8/27 - */ -public abstract class BaseDouyuWebSocketFrame extends BinaryWebSocketFrame { - - public BaseDouyuWebSocketFrame(ByteBuf byteBuf) { - super(byteBuf); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/factory/DouyuWebSocketFrameFactory.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/factory/DouyuWebSocketFrameFactory.java deleted file mode 100644 index 64bf90b0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/frame/factory/DouyuWebSocketFrameFactory.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.frame.factory; - -import cn.hutool.core.lang.UUID; -import cn.hutool.core.util.NumberUtil; -import cn.hutool.core.util.RandomUtil; -import cn.hutool.core.util.StrUtil; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; -import io.netty.handler.codec.http.websocketx.WebSocketFrame; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatCookieUtil; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuClientModeEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.*; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.AuthWebSocketFrame; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.HeartbeatWebSocketFrame; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.KeepliveWebSocketFrame; -import tech.ordinaryroad.live.chat.client.douyu.util.DouyuCodecUtil; - -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class DouyuWebSocketFrameFactory { - - private static final ConcurrentHashMap CACHE = new ConcurrentHashMap<>(); - /** - * 浏览器地址中的房间id,暂不支持短id - */ - private final long roomId; - private volatile static HeartbeatMsg heartbeatMsg; - - public DouyuWebSocketFrameFactory(long roomId) { - this.roomId = roomId; - } - - public synchronized static DouyuWebSocketFrameFactory getInstance(long roomId) { - return CACHE.computeIfAbsent(roomId, aLong -> new DouyuWebSocketFrameFactory(roomId)); - } - - /** - * 创建认证包 - * - * @param mode {@link DouyuClientModeEnum#DANMU}, {@link DouyuClientModeEnum#WS} - * @param ver {@link DouyuLiveChatClientConfig#getVer()} - * @param aver {@link DouyuLiveChatClientConfig#getAver()} - * @param cookie 浏览器Cookie,发送弹幕时必传 - * @return AuthWebSocketFrame - */ - public AuthWebSocketFrame createAuth(DouyuClientModeEnum mode, String ver, String aver, String cookie) { - try { - // type@=loginreq/roomid@=7750753/dfl@=/username@=visitor10424697/uid@=1168052601/ver@=20220825/aver@=218101901/ct@=0/ - LoginreqMsg loginreqMsg; - long realRoomId = DouyuApis.getRealRoomId(roomId); - long uid; - String username; - Map cookieMap = OrLiveChatCookieUtil.parseCookieString(cookie); - - if (cookieMap.isEmpty()) { - // 视为未登录 - if (mode == DouyuClientModeEnum.DANMU) { - uid = RandomUtil.randomLong(10000000, 19999999); - username = "visitor" + RandomUtil.randomLong(10000000, 19999999); - loginreqMsg = new LoginreqMsg(realRoomId, "", username, uid, ver, aver); - return new AuthWebSocketFrame(DouyuCodecUtil.encode(loginreqMsg, LoginreqMsg.SHOULD_IGNORE_NEW_LOGIN_PROPERTIES)); - } else { - loginreqMsg = new LoginreqMsg(realRoomId, "", "", ver, aver, "", "", "", UUID.fastUUID().toString(true)); - return new AuthWebSocketFrame(DouyuCodecUtil.encode(loginreqMsg, LoginreqMsg.SHOULD_IGNORE_OLD_LOGIN_PROPERTIES)); - } - } - // 视为登录 - else { - String acfUid = OrLiveChatCookieUtil.getCookieByName(cookieMap, DouyuApis.KEY_COOKIE_ACF_UID, () -> { - throw new BaseException("Cookie中缺少字段" + DouyuApis.KEY_COOKIE_ACF_UID); - }); - uid = NumberUtil.parseLong(acfUid); - username = acfUid; - String dfl = "sn@A=105@Sss@A=1"; - if (mode == DouyuClientModeEnum.DANMU) { - loginreqMsg = new LoginreqMsg(realRoomId, dfl, username, uid, ver, aver); - return new AuthWebSocketFrame(DouyuCodecUtil.encode(loginreqMsg, LoginreqMsg.SHOULD_IGNORE_NEW_LOGIN_PROPERTIES)); - } else { - String acfLtkid = OrLiveChatCookieUtil.getCookieByName(cookieMap, DouyuApis.KEY_COOKIE_ACF_LTKID, () -> { - throw new BaseException("Cookie中缺少字段" + DouyuApis.KEY_COOKIE_ACF_LTKID); - }); - String acfStk = OrLiveChatCookieUtil.getCookieByName(cookieMap, DouyuApis.KEY_COOKIE_ACF_STK, () -> { - throw new BaseException("Cookie中缺少字段" + DouyuApis.KEY_COOKIE_ACF_STK); - }); - String dyDid = OrLiveChatCookieUtil.getCookieByName(cookieMap, DouyuApis.KEY_COOKIE_DY_DID, () -> { - throw new BaseException("Cookie中缺少字段" + DouyuApis.KEY_COOKIE_DY_DID); - }); - loginreqMsg = new LoginreqMsg(realRoomId, dfl, username, ver, aver, acfLtkid, "1", acfStk, dyDid); - return new AuthWebSocketFrame(DouyuCodecUtil.encode(loginreqMsg, LoginreqMsg.SHOULD_IGNORE_OLD_LOGIN_PROPERTIES)); - } - } - } catch (Exception e) { - throw new BaseException(String.format("认证包创建失败,请检查房间号是否正确。roomId: %d, msg: %s", roomId, e.getMessage())); - } - } - - public AuthWebSocketFrame createAuth(DouyuClientModeEnum mode, String ver, String aver) { - return this.createAuth(mode, ver, aver, null); - } - - public HeartbeatWebSocketFrame createHeartbeat() { - return new HeartbeatWebSocketFrame(DouyuCodecUtil.encode(this.getHeartbeatMsg())); - } - - public KeepliveWebSocketFrame createKeeplive(String cookie) { - return new KeepliveWebSocketFrame(DouyuCodecUtil.encode(this.getKeepliveMsg(StrUtil.isNotBlank(cookie) ? "hs-h5" : ""))); - } - - /** - * 心跳包单例模式 - * - * @return HeartbeatWebSocketFrame - */ - public HeartbeatMsg getHeartbeatMsg() { - if (heartbeatMsg == null) { - synchronized (DouyuWebSocketFrameFactory.this) { - if (heartbeatMsg == null) { - heartbeatMsg = new HeartbeatMsg(); - } - } - } - return heartbeatMsg; - } - - private BaseDouyuCmdMsg getKeepliveMsg(String cnd) { - return new KeepliveMsg(cnd); - } - - public WebSocketFrame createJoingroup() { - JoingroupMsg joingroupMsg = new JoingroupMsg(); - joingroupMsg.setRid(roomId); - return new BinaryWebSocketFrame(DouyuCodecUtil.encode(joingroupMsg)); - } - - public WebSocketFrame createSub() { - return new BinaryWebSocketFrame(DouyuCodecUtil.encode(new SubMsg())); - } - - public WebSocketFrame createDanmu(String msg, String cookie) { - String dyDid = OrLiveChatCookieUtil.getCookieByName(cookie, DouyuApis.KEY_COOKIE_DY_DID, () -> { - throw new BaseException("cookie中缺少参数" + DouyuApis.KEY_COOKIE_DY_DID); - }); - String acfUid = OrLiveChatCookieUtil.getCookieByName(cookie, DouyuApis.KEY_COOKIE_ACF_UID, () -> { - throw new BaseException("cookie中缺少参数" + DouyuApis.KEY_COOKIE_ACF_UID); - }); - ChatmessageMsg chatmessageMsg = new ChatmessageMsg(msg, dyDid, acfUid); - return new BinaryWebSocketFrame(DouyuCodecUtil.encode(chatmessageMsg)); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/handler/DouyuBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/handler/DouyuBinaryFrameHandler.java deleted file mode 100644 index f7d3e551..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/handler/DouyuBinaryFrameHandler.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.handler; - -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandler; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.client.base.BaseDouyuLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.msg.ChatmsgMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.DgbMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.DouyuCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.UenterMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.IDouyuMsg; -import tech.ordinaryroad.live.chat.client.douyu.util.DouyuCodecUtil; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientBinaryFrameHandler; - -import java.util.List; - - -/** - * 消息处理器 - * - * @author mjz - * @date 2023/1/4 - */ -@Slf4j -@ChannelHandler.Sharable -public class DouyuBinaryFrameHandler extends BaseNettyClientBinaryFrameHandler { - - public DouyuBinaryFrameHandler(List msgListeners, BaseDouyuLiveChatClient client) { - super(msgListeners, client); - } - - public DouyuBinaryFrameHandler(List msgListeners, long roomId) { - super(msgListeners, roomId); - } - - @Override - public void onCmdMsg(DouyuCmdEnum cmd, ICmdMsg cmdMsg) { - if (super.msgListeners.isEmpty()) { - return; - } - - switch (cmd) { - case chatmsg: { - iteratorMsgListeners(msgListener -> msgListener.onDanmuMsg(DouyuBinaryFrameHandler.this, (ChatmsgMsg) cmdMsg)); - break; - } - case dgb: { - iteratorMsgListeners(msgListener -> msgListener.onGiftMsg(DouyuBinaryFrameHandler.this, (DgbMsg) cmdMsg)); - break; - } - case uenter: { - iteratorMsgListeners(msgListener -> msgListener.onEnterRoomMsg(DouyuBinaryFrameHandler.this, (UenterMsg) cmdMsg)); - break; - } - default: { - if (!(cmdMsg instanceof DouyuCmdMsg)) { - if (log.isDebugEnabled()) { - log.debug("非DouyuCmdMsg {}", cmdMsg.getClass()); - } - return; - } - iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(DouyuBinaryFrameHandler.this, cmd, cmdMsg)); - } - } - } - - @Override - protected List decode(ByteBuf byteBuf) { - return DouyuCodecUtil.decode(byteBuf); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/handler/DouyuConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/handler/DouyuConnectionHandler.java deleted file mode 100644 index e878c2b7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/netty/handler/DouyuConnectionHandler.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.netty.handler; - -import io.netty.channel.Channel; -import io.netty.channel.ChannelFutureListener; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import io.netty.handler.codec.http.websocketx.WebSocketFrame; -import lombok.Getter; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.client.base.BaseDouyuLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuClientModeEnum; -import tech.ordinaryroad.live.chat.client.douyu.netty.frame.factory.DouyuWebSocketFrameFactory; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler; - - -/** - * 连接处理器 - * - * @author mjz - * @date 2023/8/21 - */ -@Slf4j -@ChannelHandler.Sharable -public class DouyuConnectionHandler extends BaseNettyClientConnectionHandler { - - @Getter - private final DouyuClientModeEnum mode; - /** - * 以ClientConfig为主 - */ - private final long roomId; - /** - * 以ClientConfig为主 - */ - private final String ver; - /** - * 以ClientConfig为主 - */ - private final String aver; - /** - * 以ClientConfig为主 - */ - private String cookie; - - public DouyuConnectionHandler(DouyuClientModeEnum mode, WebSocketClientHandshaker handshaker, BaseDouyuLiveChatClient client, IBaseConnectionListener listener) { - super(handshaker, client, listener); - this.mode = mode; - this.roomId = client.getConfig().getRoomId(); - this.ver = client.getConfig().getVer(); - this.aver = client.getConfig().getAver(); - this.cookie = client.getConfig().getCookie(); - } - - public DouyuConnectionHandler(DouyuClientModeEnum mode, WebSocketClientHandshaker handshaker, BaseDouyuLiveChatClient client) { - this(mode, handshaker, client, null); - } - - public DouyuConnectionHandler(DouyuClientModeEnum mode, WebSocketClientHandshaker handshaker, long roomId, String ver, String aver, IBaseConnectionListener listener, String cookie) { - super(handshaker, listener); - this.mode = mode; - this.roomId = roomId; - this.ver = ver; - this.aver = aver; - this.cookie = cookie; - } - - public DouyuConnectionHandler(DouyuClientModeEnum mode, WebSocketClientHandshaker handshaker, long roomId, String ver, String aver, IBaseConnectionListener listener) { - this(mode, handshaker, roomId, ver, aver, listener, null); - } - - public DouyuConnectionHandler(DouyuClientModeEnum mode, WebSocketClientHandshaker handshaker, long roomId, String ver, String aver, String cookie) { - this(mode, handshaker, roomId, ver, aver, null, cookie); - } - - public DouyuConnectionHandler(DouyuClientModeEnum mode, WebSocketClientHandshaker handshaker, long roomId, String ver, String aver) { - this(mode, handshaker, roomId, ver, aver, null, null); - } - - @Override - protected void sendHeartbeat(ChannelHandlerContext ctx) { - if (log.isDebugEnabled()) { - log.debug("发送心跳包"); - } - WebSocketFrame webSocketFrame; - if (mode == DouyuClientModeEnum.DANMU) { - webSocketFrame = getWebSocketFrameFactory(getRoomId()).createHeartbeat(); - } else { - webSocketFrame = getWebSocketFrameFactory(getRoomId()).createKeeplive(getCookie()); - } - ctx.writeAndFlush(webSocketFrame).addListener((ChannelFutureListener) future -> { - if (future.isSuccess()) { - if (log.isDebugEnabled()) { - log.debug("心跳包发送完成"); - } - } else { - log.error("心跳包发送失败", future.cause()); - } - }); - } - - @Override - public void sendAuthRequest(Channel channel) { - if (log.isDebugEnabled()) { - log.debug("发送认证包"); - } - channel.writeAndFlush(getWebSocketFrameFactory(getRoomId()).createAuth(mode, getVer(), getAver(), getCookie())); - } - - private DouyuWebSocketFrameFactory getWebSocketFrameFactory(long roomId) { - return DouyuWebSocketFrameFactory.getInstance(roomId); - } - - public long getRoomId() { - return client != null ? client.getConfig().getRoomId() : roomId; - } - - private String getVer() { - return client != null ? client.getConfig().getVer() : ver; - } - - private String getAver() { - return client != null ? client.getConfig().getAver() : aver; - } - - private String getCookie() { - return client != null ? client.getConfig().getCookie() : cookie; - } - - @Override - protected long getHeartbeatPeriod() { - if (client == null) { - return DouyuLiveChatClientConfig.DEFAULT_HEARTBEAT_PERIOD; - } else { - return client.getConfig().getHeartbeatPeriod(); - } - } - - @Override - protected long getHeartbeatInitialDelay() { - if (client == null) { - return DouyuLiveChatClientConfig.DEFAULT_HEARTBEAT_INITIAL_DELAY; - } else { - return client.getConfig().getHeartbeatInitialDelay(); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/util/DouyuCodecUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/util/DouyuCodecUtil.java deleted file mode 100644 index dad8a581..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/main/java/tech/ordinaryroad/live/chat/client/douyu/util/DouyuCodecUtil.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.util; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ArrayUtil; -import cn.hutool.core.util.ReflectUtil; -import cn.hutool.core.util.StrUtil; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.Unpooled; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatReflectUtil; -import tech.ordinaryroad.live.chat.client.douyu.api.DouyuApis; -import tech.ordinaryroad.live.chat.client.douyu.client.DouyuLiveChatClient; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.msg.DgbMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.DouyuCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.HeartbeatMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.HeartbeatReplyMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.IDouyuMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftListInfo; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftPropSingle; - -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.nio.charset.StandardCharsets; -import java.util.*; - -/** - * 参考:https://open.douyu.com/source/api/63 - * - * @author mjz - * @date 2023/1/6 - */ -@Slf4j -public class DouyuCodecUtil { - - public static final String[] IGNORE_PROPERTIES = {"OBJECT_MAPPER", "unknownProperties"}; - /** - * 以SHOULD_IGNORE开头的成员变量将不会序列化 - */ - public static final String SHOULD_IGNORE_PROPERTIES_PREFIX = "SHOULD_IGNORE"; - - public static final short MSG_TYPE_SEND = 689; - public static final short MSG_TYPE_RECEIVE = 690; - public static final short FRAME_HEADER_LENGTH = 8; - - public static ByteBuf encode(BaseDouyuCmdMsg msg, List containProperties) { - ByteBuf out = Unpooled.buffer(FRAME_HEADER_LENGTH); - String bodyDouyuSttString = StrUtil.nullToEmpty(toDouyuSttString(msg, containProperties)) + SUFFIX; - byte[] bodyBytes = bodyDouyuSttString.getBytes(StandardCharsets.UTF_8); - int length = bodyBytes.length + FRAME_HEADER_LENGTH; - out.writeIntLE(length); - out.writeIntLE(length); - out.writeShortLE(MSG_TYPE_SEND); - out.writeByte(0); - out.writeByte(0); - out.writeBytes(bodyBytes); - return out; - } - - public static ByteBuf encode(BaseDouyuCmdMsg msg) { - return encode(msg, null); - } - - public static List decode(ByteBuf in) { - List msgList = new ArrayList<>(); - Queue pendingByteBuf = new LinkedList<>(); - - do { - Optional msg = doDecode(in, pendingByteBuf); - msg.ifPresent(msgList::add); - in = pendingByteBuf.poll(); - } while (in != null); - - return msgList; - } - - /** - * 执行解码操作 - * - * @param in handler收到的一条消息 - * @param pendingByteBuf 用于存放未读取完的ByteBuf - * @return Optional 何时为空值:不支持的{@link DouyuCmdEnum},{@link #parseDouyuSttString(String, short)}反序列化失败 - */ - private static Optional doDecode(ByteBuf in, Queue pendingByteBuf) { - int length = in.readIntLE(); - in.readIntLE(); - // MSG_TYPE_RECEIVE - short msgType = in.readShortLE(); - if (msgType != MSG_TYPE_RECEIVE) { - log.error("decode消息类型 非 收到的消息"); - } - in.readByte(); - in.readByte(); - int contentLength = length - FRAME_HEADER_LENGTH; - byte[] inputBytes = new byte[contentLength]; - in.readBytes(inputBytes); - if (in.readableBytes() != 0) { - // log.error("in.readableBytes() {}", in.readableBytes()); - pendingByteBuf.offer(in); - } - - String bodyDouyuSttString = new String(inputBytes, 0, inputBytes.length - 1); - return Optional.ofNullable(parseDouyuSttString(bodyDouyuSttString, msgType)); - } - - public static final String SPLITTER = "@="; - public static final String END = "/"; - public static final String SUFFIX = "\0"; - - /** - *
{@code @S/ -> @AS@S}
- * - * @param string - * @return - */ - public static String escape(String string) { -// return string == null ? StrUtil.EMPTY : (string.replaceAll("/", "@S").replaceAll("@", "@A")); - return string == null ? StrUtil.EMPTY : (string.replaceAll("@", "@A").replaceAll("/", "@S")); - } - - /** - *
{@code @AS@S -> @S/}
- * - * @param string - * @return - */ - public static String unescape(String string) { - return string == null ? StrUtil.EMPTY : (string.replaceAll("@S", "/").replaceAll("@A", "@")); - } - - public static String toDouyuSttString(Object object, List containProperties) { - StringBuffer sb = new StringBuffer(); - if (object instanceof IDouyuMsg) { - Class objectClass = object.getClass(); - Field[] fields = ReflectUtil.getFields(objectClass, field -> { - String name = field.getName(); - if (CollUtil.isNotEmpty(containProperties)) { - return containProperties.contains(name); - } else { - return !name.startsWith(SHOULD_IGNORE_PROPERTIES_PREFIX) && !ArrayUtil.contains(IGNORE_PROPERTIES, name); - } - }); - for (Field field : fields) { - String key = field.getName(); - Method method = OrLiveChatReflectUtil.getGetterMethod(objectClass, key); - Object value = ReflectUtil.invoke(object, method); - String douyuSttString = toDouyuSttString(value, containProperties); - String escape = escape(douyuSttString); - sb.append(escape(key)) - .append(SPLITTER) - .append(escape) - .append(END); - } - } else { - if (object instanceof Iterable) { - Iterable iterable = (Iterable) object; - StringBuffer iterableStringBuffer = new StringBuffer(); - for (Object o : iterable) { - String douyuSttString = toDouyuSttString(o, containProperties); - String escape = escape(douyuSttString); - iterableStringBuffer.append(escape) - .append(END); - } - sb.append((iterableStringBuffer.toString())); - } else if (object instanceof Map) { - Map map = (Map) object; - StringBuffer mapStringBuffer = new StringBuffer(); - map.forEach((mapKey, mapValue) -> { - mapStringBuffer.append(escape(StrUtil.toStringOrNull(mapKey))) - .append(SPLITTER) - .append(escape(toDouyuSttString(mapValue, containProperties))) - .append(END); - }); - sb.append((mapStringBuffer.toString())); - } else { - sb.append((StrUtil.nullToEmpty(StrUtil.toStringOrNull(object)))); - } - } - return sb.toString(); - } - - public static String toDouyuSttString(Object object) { - return toDouyuSttString(object, null); - } - - public static IDouyuMsg parseDouyuSttString(String string, short msgType) { - Map stringObjectMap = parseDouyuSttStringToMap(string); - String type = (String) stringObjectMap.get("type"); - DouyuCmdEnum cmdEnum = DouyuCmdEnum.getByString(type); - - Class msgClass = getDouyuMsgClassByType(cmdEnum, msgType); - if (msgClass == null) { - // TODO 不支持的cmdEnum - if (log.isWarnEnabled()) { - log.warn("暂不支持 cmdEnum {}, msgType {}", cmdEnum, msgType); - } - return null; - } - - IDouyuMsg t = ReflectUtil.newInstance(msgClass); - stringObjectMap.forEach((key, value) -> { - Field field = ReflectUtil.getField(t.getClass(), key); - // 未知key - if (field == null) { - // Object -> JsonNode - ((BaseDouyuCmdMsg) t).getUnknownProperties().put(key, BaseDouyuCmdMsg.OBJECT_MAPPER.valueToTree(value)); - // log.debug("未知key {} {},已存放于unknownProperties中", msgClass, key); - } else { - ReflectUtil.setFieldValue(t, field, value); - } - }); - - // 礼物消息设置礼物信息字段 - if (t instanceof DgbMsg) { - DgbMsg msg = (DgbMsg) t; - String pid = msg.getPid(); - // 通用礼物 - if (StrUtil.isNotBlank(pid)) { - GiftPropSingle giftSingle = DouyuLiveChatClient.giftMap.get(pid, () -> { - GiftPropSingle gift = GiftPropSingle.DEFAULT_GIFT; - try { - gift = DouyuApis.getGiftPropSingleByPid(pid); - } catch (Exception e) { - log.error("礼物信息获取失败, pid=" + pid, e); - } - return gift; - }); - msg.setGiftInfo(giftSingle); - } - // 房间礼物 - else { - String realRoomId = msg.getRid(); - if (DouyuLiveChatClient.roomGiftMap.containsKey(realRoomId)) { - Map stringGiftListInfoMap = DouyuLiveChatClient.roomGiftMap.get(realRoomId); - msg.setRoomGiftInfo(stringGiftListInfoMap.getOrDefault(String.valueOf(msg.getGfid()), GiftListInfo.DEFAULT_GIFT)); - } - } - } - - return t; - } - - public static Object parseDouyuSttStringToObject(String value) { - Object valueObject; - if (StrUtil.isBlank(value)) { - return null; - } - if (value.contains(SPLITTER) && value.contains(END)) { - // log.debug("map valueObject {}", value); - valueObject = parseDouyuSttStringToMap(value); - } - // List - else if (!value.contains(SPLITTER) && value.contains(END)) { - // log.debug("list valueObject {}", value); - List list = new ArrayList<>(); - for (String s : value.split(END)) { - list.add(parseDouyuSttStringToObject(unescape(s))); - } - valueObject = list; - } - // String - else { - valueObject = value; - } - return valueObject; - } - - public static Map parseDouyuSttStringToMap(String string) { - Map stringObjectMap = new HashMap<>(); - for (String s : string.split(END)) { - String[] entry = s.split(SPLITTER); - String key = unescape(entry[0]); - String value = unescape(ArrayUtil.get(entry, 1)); - Object valueObject = parseDouyuSttStringToObject(value); - stringObjectMap.put(key, valueObject); - } - return stringObjectMap; - } - - public static Class getDouyuMsgClassByType(DouyuCmdEnum douyuCmdEnum, short msgType) { - if (douyuCmdEnum == null) { - return (Class) DouyuCmdMsg.class; - } - - Class msgClass; - Class tClass = douyuCmdEnum.getTClass(); - if (tClass == null) { - if (douyuCmdEnum == DouyuCmdEnum.mrkl) { - if (msgType == MSG_TYPE_RECEIVE) { - msgClass = HeartbeatReplyMsg.class; - } else if (msgType == MSG_TYPE_SEND) { - msgClass = HeartbeatMsg.class; - } else { - msgClass = null; - } - } else { - msgClass = DouyuCmdMsg.class; - } - } else { - msgClass = tClass; - } - return (Class) msgClass; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/api/DouyuApisTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/api/DouyuApisTest.java deleted file mode 100644 index cf828401..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/api/DouyuApisTest.java +++ /dev/null @@ -1,30 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyu.api; - -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.douyu.msg.dto.GiftPropSingle; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; - -/** - * @author mjz - * @date 2023/8/30 - */ -class DouyuApisTest { - - @Test - void getRealRoomId() { - assertEquals(2947432, DouyuApis.getRealRoomId(92000)); - assertEquals(3168536, DouyuApis.getRealRoomId(3168536)); - assertEquals(290935, DouyuApis.getRealRoomId(22222)); - assertEquals(290935, DouyuApis.getRealRoomId(290935)); - assertEquals(520, DouyuApis.getRealRoomId(520)); - assertThrows(RuntimeException.class, () -> DouyuApis.getRealRoomId(-1)); - } - - @Test - void getGiftInfo() { - GiftPropSingle giftByPid = DouyuApis.getGiftPropSingleByPid("4"); - assertEquals("赞", giftByPid.getName()); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/ChatChoice.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/ChatChoice.java deleted file mode 100644 index 7919ad15..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/ChatChoice.java +++ /dev/null @@ -1,31 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyu.client; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -import java.io.Serializable; - -/** - * 描述: - * - * @author https:www.unfbx.com - * @since 2023-03-02 - */ -@Data -@JsonIgnoreProperties(ignoreUnknown = true) -public class ChatChoice implements Serializable { - private long index; - /** - * 请求参数stream为true返回是delta - */ - @JsonProperty("delta") - private Message delta; - /** - * 请求参数stream为false返回是message - */ - @JsonProperty("message") - private Message message; - @JsonProperty("finish_reason") - private String finishReason; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/ChatCompletionResponse.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/ChatCompletionResponse.java deleted file mode 100644 index 3134d4ee..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/ChatCompletionResponse.java +++ /dev/null @@ -1,24 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyu.client; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import lombok.Data; - -import java.io.Serializable; -import java.util.List; - -/** - * 描述: chat答案类 - * - * @author https:www.unfbx.com - * 2023-03-02 - */ -@Data -@JsonIgnoreProperties(ignoreUnknown = true) -public class ChatCompletionResponse implements Serializable { - private String id; - private String object; - private long created; - private String model; - private List choices; - private Usage usage; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuLiveChatClientTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuLiveChatClientTest.java deleted file mode 100644 index 56cc6d0e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/DouyuLiveChatClientTest.java +++ /dev/null @@ -1,410 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.douyu.client; - -import com.fasterxml.jackson.databind.ObjectMapper; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.util.internal.StringUtil; -import lombok.extern.slf4j.Slf4j; -import okhttp3.*; -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseCmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.douyu.config.DouyuLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.douyu.constant.DouyuCmdEnum; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuConnectionListener; -import tech.ordinaryroad.live.chat.client.douyu.listener.IDouyuMsgListener; -import tech.ordinaryroad.live.chat.client.douyu.msg.ChatmsgMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.DgbMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.UenterMsg; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.douyu.netty.handler.DouyuConnectionHandler; - -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; -import java.io.IOException; -import java.util.Objects; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; - -/** - * @author mjz - * @date 2023/8/26 - */ -@Slf4j -class DouyuLiveChatClientTest implements IDouyuConnectionListener, IDouyuMsgListener { - - static Object lock = new Object(); - DouyuLiveChatClient client; - - private final OkHttpClient okClient = new OkHttpClient(); - private static final String API_KEY = "sk-xxxxxx"; - private static final String URL = "https://api.pandarobot.chat/v1/chat/completions"; - - private final Lock reentrantLock = new ReentrantLock(); - private boolean isProcessing = false; - - - public String getChatGptResponse(String prompt){ - if (!reentrantLock.tryLock()) { - // 如果无法立即获得锁,直接返回空字符串 - log.info("自动回复:我还没准备好"); - return ""; - } - try { - if (isProcessing) { - log.info("自动回复:我还没准备好"); - // 如果已经在处理中,直接返回 - return ""; - } - isProcessing = true; - // 你的原始代码逻辑 - RequestBody body = RequestBody.create(MediaType.get("application/json; charset=utf-8"), - "{\"model\": \"gpt-4-0125-preview\", \"messages\": [{\"role\": \"system\", \"content\": \"扮演一个充满机智和幽默感的斗鱼直播弹幕助手,你的任务是用不超过30字的诙谐小段子来回复直播间用户的评论。你的回复应该机智幽默,不夸张能引发笑声,同时也要和谐适应直播间的气氛。当你收到用户的评论时,迅速给出一个既幽默又贴切的回复。例如:评论: 今天的直播怎么样?回复: 好看得让人忘记摸鱼,专心变成鱼粉!\"}, {\"role\": \"user\", \"content\": \"" + prompt + "\"}]}"); - Request request = new Request.Builder() - .url(URL) - .post(body) - .addHeader("Authorization", "Bearer " + API_KEY) - .build(); - - long startTime = System.currentTimeMillis(); // 获取开始时间的毫秒数 - System.out.println("执行前......."); - Thread.sleep(3000); - System.out.println("执行后......."); - long endTime = System.currentTimeMillis(); // 获取结束时间的毫秒数 - long timeDiff = endTime - startTime; // 计算时间差 - System.out.println("执行时间 " + timeDiff / 1000 + " 秒。"); - - try (Response response = okClient.newCall(request).execute()) { - if (response.body() != null) { - ObjectMapper mapper = new ObjectMapper(); - ChatCompletionResponse completionResponse = mapper.readValue(response.body().string(), ChatCompletionResponse.class); - return completionResponse.getChoices().get(0).getMessage().getContent(); - } - } catch (Exception e) { - log.info("调用出错了{}",e.getMessage()); - } - return ""; - } catch (InterruptedException e) { - throw new RuntimeException(e); - } finally { - isProcessing = false; - reentrantLock.unlock(); - } - } - - @Test - void example() throws InterruptedException { - String cookie = "dy_did=621fbe7a636002f6e6cc42eb00091701; acf_did=621fbe7a636002f6e6cc42eb00091701; dy_teen_mode=%7B%22uid%22%3A%22145703733%22%2C%22status%22%3A0%2C%22birthday%22%3A%22%22%2C%22password%22%3A%22%22%7D; dy_did=621fbe7a636002f6e6cc42eb00091701; Hm_lvt_e99aee90ec1b2106afe7ec3b199020a7=1706978160,1707033428,1707109487; PHPSESSID=1orrfq0m0gfrbd58slgh6shqc7; acf_auth=c22dT%2BYJG1xQ3ZuNrfxYNS06lnIjzNl%2F58xziUwyAsNedpJWvbEtIBh%2Bq%2F%2FYxo%2FFYAp9aQr4i4iYqTp2kYdb7n2JNUFBwGEBgZ8GiGS6O%2FR0CNLy8kQ2iVw; dy_auth=d0d0Ps%2FEOPWjXoPGMenITKuiBIC7wTua3heP19LVKzOZ8qibQpmTA9Hpyx%2FdxtDei1Db6KUWkzq1fEC0BLSZVSUbDkuv%2FX%2F%2B0pMu1kgXnk%2FUzQ%2BhV3EiRf8; wan_auth37wan=f0a9656c2e00K9uFDlpgnTfrv3m8aZoYB0WQTWxGSrSccCMd9LUiEUD2oYpJ%2F5Oe5uD2tVpaUA69sGzlTAtl9p3uLSSqgrvH%2F8sy1gWyyrS4fxotQSU; acf_uid=145703733; acf_username=145703733; acf_nickname=%E5%9B%BE%E5%85%94%E5%85%94%E7%9A%84%E5%85%94%E5%85%94%E5%9B%BE; acf_own_room=0; acf_groupid=1; acf_phonestatus=1; acf_avatar=https%3A%2F%2Fapic.douyucdn.cn%2Fupload%2Favanew%2Fface%2F201706%2F25%2F21%2F82973545fd6b770fe03175783ffbc3d5_; acf_ct=0; acf_ltkid=28814433; acf_biz=1; acf_stk=1213d18dc8e6b5b1; Hm_lpvt_e99aee90ec1b2106afe7ec3b199020a7=1707141953"; - DouyuLiveChatClientConfig config = DouyuLiveChatClientConfig.builder() - // TODO 修改房间id(支持短id) - .roomId(7828414) - .cookie(cookie) - .build(); - - client = new DouyuLiveChatClient(config, new IDouyuMsgListener() { - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - IDouyuMsgListener.super.onMsg(binaryFrameHandler, msg); - // log.debug("{} 收到{}消息 {}", binaryFrameHandler.getRoomId(), msg.getClass(), msg); - } - - @Override - public void onDanmuMsg(DouyuBinaryFrameHandler binaryFrameHandler, ChatmsgMsg msg) { - if(Integer.parseInt(msg.getLevel())>5){ - String chatGptResponse = getChatGptResponse(msg.getContent()); - log.info("自动回复:"+ "@"+msg.getUsername()+": "+chatGptResponse); - if(!Objects.equals(chatGptResponse, "")){ - client.sendDanmu("@"+msg.getUsername()+": "+chatGptResponse); - } - } - log.info("{} 收到弹幕 {} {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(DouyuBinaryFrameHandler binaryFrameHandler, DgbMsg msg) { - IDouyuMsgListener.super.onGiftMsg(binaryFrameHandler, msg); - // log.info("{} 收到礼物 {} {}({}) {} {}({})x{}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), "赠送", msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice()); - } - - @Override - public void onEnterRoomMsg(UenterMsg msg) { -// if(msg.getLevel()>20){ -// String chatGptResponse = getChatGptResponse(msg.getUsername()+"加入了直播间,请你帮忙编写简短有创意的欢迎语"); -// if(!Objects.equals(chatGptResponse, "")){ -// client.sendDanmu(chatGptResponse); -// } -// } - log.info("{} {}({}) 进入直播间", msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - - @Override - public void onCmdMsg(DouyuBinaryFrameHandler binaryFrameHandler, DouyuCmdEnum cmd, BaseCmdMsg cmdMsg) { - IDouyuMsgListener.super.onCmdMsg(binaryFrameHandler, cmd, cmdMsg); - //log.info("{} 收到CMD消息{} {}", binaryFrameHandler.getRoomId(), cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(DouyuBinaryFrameHandler binaryFrameHandler, DouyuCmdEnum cmd, BaseCmdMsg cmdMsg) { - IDouyuMsgListener.super.onOtherCmdMsg(binaryFrameHandler, cmd, cmdMsg); - - // log.debug("{} 收到其他CMD消息 {}", binaryFrameHandler.getRoomId(), cmd); - } - - @Override - public void onUnknownCmd(DouyuBinaryFrameHandler binaryFrameHandler, String cmdString, BaseMsg msg) { - IDouyuMsgListener.super.onUnknownCmd(binaryFrameHandler, cmdString, msg); - - // log.debug("{} 收到未知CMD消息 {}", binaryFrameHandler.getRoomId(), cmdString); - } - }, new IDouyuConnectionListener() { - @Override - public void onConnected(DouyuConnectionHandler connectionHandler) { - log.info("{} onConnected", connectionHandler.getRoomId()); - } - - @Override - public void onConnectFailed(DouyuConnectionHandler connectionHandler) { - log.info("{} onConnectFailed", connectionHandler.getRoomId()); - } - - @Override - public void onDisconnected(DouyuConnectionHandler connectionHandler) { - log.info("{} onDisconnected", connectionHandler.getRoomId()); - } - }); - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void multipyListeners() throws InterruptedException { - DouyuLiveChatClientConfig config = DouyuLiveChatClientConfig.builder() - // TODO 修改房间id(支持短id) - .roomId(74751) - .build(); - - client = new DouyuLiveChatClient(config, null, this); - client.addMsgListener(new IDouyuMsgListener() { - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - log.info("listener 1 onMsg {}", msg); - } - }); - IDouyuMsgListener msgListener2 = new IDouyuMsgListener() { - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - log.info("listener 2 onMsg {}", msg); - } - }; - client.addMsgListener(msgListener2); - AtomicBoolean removed = new AtomicBoolean(false); - client.addMsgListener(new IDouyuMsgListener() { - @Override - public void onMsg(DouyuBinaryFrameHandler binaryFrameHandler, IMsg msg) { - log.info("listener 3 onMsg {}", msg); - if (!removed.get()) { - log.warn("remove listener 2 by listener 3"); - removed.set(client.removeMsgListener(msgListener2)); - } - } - }); - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void multiplyClient() throws InterruptedException { - DouyuLiveChatClientConfig config1 = DouyuLiveChatClientConfig.builder().roomId(890074).build(); - DouyuLiveChatClient client1 = new DouyuLiveChatClient(config1, DouyuLiveChatClientTest.this, DouyuLiveChatClientTest.this); - - DouyuLiveChatClientConfig config2 = DouyuLiveChatClientConfig.builder().roomId(718133).build(); - DouyuLiveChatClient client2 = new DouyuLiveChatClient(config2, DouyuLiveChatClientTest.this, DouyuLiveChatClientTest.this); - - client1.connect(() -> { - log.warn("client1 connect successfully, start connecting client2"); - client2.connect(() -> { - log.warn("client2 connect successfully"); - }); - }); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void sendDanmu() throws InterruptedException { - String cookie = "dy_did=621fbe7a636002f6e6cc42eb00091701; acf_did=621fbe7a636002f6e6cc42eb00091701; Hm_lvt_e99aee90ec1b2106afe7ec3b199020a7=1706978160; PHPSESSID=5mg98bkoens5bsg7da6ooj74b7; acf_auth=2a246MCoU1hPn940VxZrs0wQVc8tY96s6rHocobTmUJF8XKjoxWmv51PLf1V4T5g8QiEAyy6u%2BHQfC%2FTNkJudUVdEowNqAF81eaUzHvo5i1MIXBRbDXYXwY; dy_auth=d066mz7%2BE83QjmEJfujfi%2FyOuib9Y2qfBcK7pINX6Gde4HGRaiWZxhNXkqdbLU1aV%2FXaQ0wbkyxV0DddiF9jBc4tMpCMjvi4a1C6EJTfpLHvMmaGBKlI%2FlQ; wan_auth37wan=b747c445309bcOqiaMF72xt346irN4v%2Fhi%2BgabHCNxe812jm9rR8kGws8cdJlsn0C6jxsVKY6We5xWlrjHKesoD2%2B0Av52%2FWzIxaZKT0f30GASOJz58; acf_uid=145703733; acf_username=145703733; acf_nickname=%E5%9B%BE%E5%85%94%E5%85%94%E7%9A%84%E5%85%94%E5%85%94%E5%9B%BE; acf_own_room=0; acf_groupid=1; acf_phonestatus=1; acf_avatar=https%3A%2F%2Fapic.douyucdn.cn%2Fupload%2Favanew%2Fface%2F201706%2F25%2F21%2F82973545fd6b770fe03175783ffbc3d5_; acf_ct=0; acf_ltkid=28814429; acf_biz=1; acf_stk=0fad5f2454193f86; dy_teen_mode=%7B%22uid%22%3A%22145703733%22%2C%22status%22%3A0%2C%22birthday%22%3A%22%22%2C%22password%22%3A%22%22%7D; dy_did=621fbe7a636002f6e6cc42eb00091701; acf_ccn=5ba506efe2d8a939cf09f8597c7d8030; Hm_lpvt_e99aee90ec1b2106afe7ec3b199020a7=1706978671"; - // log.error("cookie: {}", cookie); - DouyuLiveChatClientConfig config = DouyuLiveChatClientConfig.builder() - .cookie(cookie) - // TODO 修改弹幕发送最短时间间隔,默认3s - .minSendDanmuPeriod(10 * 1000) - // TODO 修改房间id(支持短id) - .roomId(4624967) - .build(); - DouyuWsLiveChatClient client = new DouyuWsLiveChatClient(config, new IDouyuMsgListener() { - @Override - public void onMsg(IMsg msg) { - IDouyuMsgListener.super.onMsg(msg); - -// log.debug("收到消息 {}", msg.getClass()); - } - - @Override - public void onCmdMsg(DouyuCmdEnum cmd, BaseCmdMsg cmdMsg) { - log.debug("收到CMD消息 {} {}", cmd, cmdMsg); - } - - @Override - public void onEnterRoomMsg(UenterMsg msg) { - log.info("{} {}({}) 进入直播间", msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - @Override - public void onUnknownCmd(String cmdString, BaseMsg msg) { - IDouyuMsgListener.super.onUnknownCmd(cmdString, msg); - - log.debug("收到未知CMD消息 {} {}", cmdString, msg); - } - }, new IDouyuConnectionListener() { - @Override - public void onConnected(DouyuConnectionHandler connectionHandler) { - log.error("{} onConnected", connectionHandler.getRoomId()); - } - - @Override - public void onConnectFailed(DouyuConnectionHandler connectionHandler) { - log.error("{} onConnectFailed", connectionHandler.getRoomId()); - } - - @Override - public void onDisconnected(DouyuConnectionHandler connectionHandler) { - log.error("{} onDisconnected", connectionHandler.getRoomId()); - } - }, new NioEventLoopGroup()); - client.connect(() -> { - client.sendDanmu("主播真好看"); - }); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void createAuthFrameFailedAndDisconnect() throws InterruptedException { - DouyuLiveChatClientConfig config = DouyuLiveChatClientConfig.builder() - // TODO 修改房间id(支持短id) - .autoReconnect(false) - .cookie("12323232'123'213'2'13'2") - .roomId(22222) - .build(); - - client = new DouyuLiveChatClient(config, this, this); - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void autoReconnect() throws InterruptedException { - DouyuLiveChatClientConfig config = DouyuLiveChatClientConfig.builder() - // TODO 修改房间id(支持短id) - .autoReconnect(true) - .cookie("12323232'123'213'2'13'2") -// .websocketUri("wss://sa.asd.asd:12") - .roomId(22222) - .build(); - - client = new DouyuLiveChatClient(config, this, this); - client.addStatusChangeListener(new PropertyChangeListener() { - @Override - public void propertyChange(PropertyChangeEvent evt) { - Object oldStatus = evt.getOldValue(); - Object newStatus = evt.getNewValue(); - log.error("{} => {}", oldStatus, newStatus); - } - }); - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Override - public void onConnected(DouyuConnectionHandler connectionHandler) { - log.info("{} onConnected", connectionHandler.getRoomId()); - } - - @Override - public void onConnectFailed(DouyuConnectionHandler connectionHandler) { - log.info("{} onConnectFailed", connectionHandler.getRoomId()); - } - - @Override - public void onDisconnected(DouyuConnectionHandler connectionHandler) { - log.info("{} onDisconnected", connectionHandler.getRoomId()); - } - - @Override - public void onDanmuMsg(DouyuBinaryFrameHandler binaryFrameHandler, ChatmsgMsg msg) { - IDouyuMsgListener.super.onDanmuMsg(binaryFrameHandler, msg); - - log.info("{} 收到弹幕 {}({}):{}", binaryFrameHandler.getRoomId(), msg.getNn(), msg.getUid(), msg.getTxt()); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/Message.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/Message.java deleted file mode 100644 index 7ab7d80b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/Message.java +++ /dev/null @@ -1,104 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyu.client; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.Getter; - -import java.io.Serializable; - -/** - * 描述: - * - * @author https:www.unfbx.com - * @since 2023-03-02 - */ -@Data -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public class Message implements Serializable { - - /** - * 目前支持四个中角色参考官网,进行情景输入: - * https://platform.openai.com/docs/guides/chat/introduction - */ - private String role; - - private String content; - - private String name; - - public static Builder builder() { - return new Builder(); - } - - /** - * 构造函数 - * - * @param role 角色 - * @param content 描述主题信息 - * @param name name - */ - public Message(String role, String content, String name) { - this.role = role; - this.content = content; - this.name = name; - } - - public Message() { - } - - private Message(Builder builder) { - setRole(builder.role); - setContent(builder.content); - setName(builder.name); - } - - - @Getter - @AllArgsConstructor - public enum Role { - - SYSTEM("system"), - USER("user"), - ASSISTANT("assistant"), - FUNCTION("function"), - ; - private String name; - } - - public static final class Builder { - private String role; - private String content; - private String name; - - public Builder() { - } - - public Builder role(Role role) { - this.role = role.getName(); - return this; - } - - public Builder role(String role) { - this.role = role; - return this; - } - - public Builder content(String content) { - this.content = content; - return this; - } - - public Builder name(String name) { - this.name = name; - return this; - } - - - public Message build() { - return new Message(this); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/Usage.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/Usage.java deleted file mode 100644 index 5595bc08..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/client/Usage.java +++ /dev/null @@ -1,24 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyu.client; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -import java.io.Serializable; - -/** - * 描述: - * - * @author https:www.unfbx.com - * 2023-02-15 - */ -@Data -@JsonIgnoreProperties(ignoreUnknown = true) -public class Usage implements Serializable { - @JsonProperty("prompt_tokens") - private long promptTokens; - @JsonProperty("completion_tokens") - private long completionTokens; - @JsonProperty("total_tokens") - private long totalTokens; -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/util/DouyuCodecUtilTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/util/DouyuCodecUtilTest.java deleted file mode 100644 index b4d72604..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-douyu/src/test/java/tech/ordinaryroad/live/chat/client/douyu/util/DouyuCodecUtilTest.java +++ /dev/null @@ -1,102 +0,0 @@ -package tech.ordinaryroad.live.chat.client.douyu.util; - -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.BaseDouyuCmdMsg; -import tech.ordinaryroad.live.chat.client.douyu.msg.base.IDouyuMsg; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Map; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; - -/** - * @author mjz - * @date 2023/8/27 - */ -class DouyuCodecUtilTest { - - @Test - void test() { - String loginres = "type@=loginres/userid@=1235403446/roomgroup@=0/pg@=0/sessionid@=0/username@=/nickname@=/live_stat@=0/is_illegal@=0/ill_ct@=/ill_ts@=0/now@=0/ps@=0/es@=0/it@=0/its@=0/npv@=0/best_dlev@=0/cur_lev@=0/nrc@=2785047409/ih@=0/sid@=72256/sahf@=0/sceneid@=0/newrg@=0/regts@=0/ip@=112.43.93.229/rn@=0/rct@=0/"; - String pingreq = "type@=pingreq/tick@=1693128084471/"; - String mrkl = "type@=mrkl/"; - String subres = "type@=subres/res@=0/"; - String mapkb = "type@=mapkb/cmd@=3/rid@=5515841/pk_time@=600/lt@=156/teams@=team@AA=5@ASres@AA=1@ASsc@AA=660000@ASbf@AA=0@AS@Steam@AA=6@ASres@AA=2@ASsc@AA=600000@ASbf@AA=0@AS@Steam@AA=4@ASres@AA=3@ASsc@AA=456000@ASbf@AA=0@AS@Steam@AA=2@ASres@AA=4@ASsc@AA=302000@ASbf@AA=0@AS@Steam@AA=3@ASres@AA=5@ASsc@AA=100000@ASbf@AA=0@AS@Steam@AA=1@ASres@AA=6@ASsc@AA=200@ASbf@AA=0@AS@S/members@=rid@AA=5515841@ASuid@AA=219585944@ASnick@AA=喵小莎@ASicon@AA=avatar_v3@AAS202303@AAS4cab38d935004acfab53f77a730c9d42@ASstatus@AA=0@ASsc@AA=100000@AStime@AA=1693127363@ASteam@AA=3@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=8733064@ASuid@AA=364378905@ASnick@AA=阿允唱情歌@ASicon@AA=avatar_v3@AAS202008@AAS31b239d8af174462b5e0a2990c70b818@ASstatus@AA=0@ASsc@AA=600000@AStime@AA=1693127527@ASteam@AA=6@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=10673032@ASuid@AA=442218984@ASnick@AA=果酱Broly@ASicon@AA=avatar_v3@AAS202306@AASf7d61a0ea3bb4c179af7b5e24f94953e@ASstatus@AA=0@ASsc@AA=200@AStime@AA=1693127347@ASteam@AA=1@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=533813@ASuid@AA=36922190@ASnick@AA=正直博@ASicon@AA=avatar_v3@AAS202212@AAS4e340983996f43b991ffa50af7b956f6@ASstatus@AA=0@ASsc@AA=302000@AStime@AA=1693127348@ASteam@AA=2@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=8031896@ASuid@AA=243111494@ASnick@AA=青榎@ASicon@AA=avatar_v3@AAS202305@AAS8bd800d3bb8d4e16884dcb3e3f77b038@ASstatus@AA=0@ASsc@AA=456000@AStime@AA=1693127393@ASteam@AA=4@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=7009686@ASuid@AA=299482114@ASnick@AA=紫薇同学@ASicon@AA=avatar_v3@AAS202302@AASb67044b78b494b0896fd6738bc2d5b7b@ASstatus@AA=0@ASsc@AA=660000@AStime@AA=1693127424@ASteam@AA=5@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@S/subcmd@=0/pkm@=0/rlt@=0/"; - String pdrinfo = "giftId@=23518/total@=total@A=3@Snum@A=0@Sfin@A=0@S/actStatus@=1/time@=1693158017596/type@=pdrinfo/dayFin@=0/list@=1@A=total@AAA=6@AASnum@AAA=6@AASpid@AAA=2682@AASfin@AAA=1@AAS@AStotal@AAA=600@AASnum@AAA=336@AASpid@AAA=2680@AASfin@AAA=0@AAS@AS@S100@A=total@AAA=2@AASnum@AAA=0@AASpid@AAA=2685@AASfin@AAA=0@AAS@AStotal@AAA=100@AASnum@AAA=5@AASpid@AAA=2682@AASfin@AAA=0@AAS@AS@S10@A=total@AAA=2@AASnum@AAA=0@AASpid@AAA=2683@AASfin@AAA=0@AAS@AStotal@AAA=80@AASnum@AAA=35@AASpid@AAA=2681@AASfin@AAA=0@AAS@AS@S/"; - - Map map = new HashMap<>(); - map.put("loginres", loginres); - map.put("pingreq", pingreq); - map.put("mrkl", mrkl); - map.put("subres", subres); - map.put("mapkb", mapkb); - map.put("pdrinfo", pdrinfo); - - map.forEach((string, string2) -> { - BaseDouyuCmdMsg baseDouyuCmdMsg = (BaseDouyuCmdMsg) DouyuCodecUtil.parseDouyuSttString(string2, DouyuCodecUtil.MSG_TYPE_RECEIVE); - assertNotNull(baseDouyuCmdMsg); - String cmd = baseDouyuCmdMsg.getCmd(); - assertEquals(string, cmd); - }); - } - - @Test - void decodeTest() { - String mapkb = "type@=mapkb/cmd@=3/rid@=5515841/pk_time@=600/lt@=156/teams@=team@AA=5@ASres@AA=1@ASsc@AA=660000@ASbf@AA=0@AS@Steam@AA=6@ASres@AA=2@ASsc@AA=600000@ASbf@AA=0@AS@Steam@AA=4@ASres@AA=3@ASsc@AA=456000@ASbf@AA=0@AS@Steam@AA=2@ASres@AA=4@ASsc@AA=302000@ASbf@AA=0@AS@Steam@AA=3@ASres@AA=5@ASsc@AA=100000@ASbf@AA=0@AS@Steam@AA=1@ASres@AA=6@ASsc@AA=200@ASbf@AA=0@AS@S/members@=rid@AA=5515841@ASuid@AA=219585944@ASnick@AA=喵小莎@ASicon@AA=avatar_v3@AAS202303@AAS4cab38d935004acfab53f77a730c9d42@ASstatus@AA=0@ASsc@AA=100000@AStime@AA=1693127363@ASteam@AA=3@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=8733064@ASuid@AA=364378905@ASnick@AA=阿允唱情歌@ASicon@AA=avatar_v3@AAS202008@AAS31b239d8af174462b5e0a2990c70b818@ASstatus@AA=0@ASsc@AA=600000@AStime@AA=1693127527@ASteam@AA=6@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=10673032@ASuid@AA=442218984@ASnick@AA=果酱Broly@ASicon@AA=avatar_v3@AAS202306@AASf7d61a0ea3bb4c179af7b5e24f94953e@ASstatus@AA=0@ASsc@AA=200@AStime@AA=1693127347@ASteam@AA=1@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=533813@ASuid@AA=36922190@ASnick@AA=正直博@ASicon@AA=avatar_v3@AAS202212@AAS4e340983996f43b991ffa50af7b956f6@ASstatus@AA=0@ASsc@AA=302000@AStime@AA=1693127348@ASteam@AA=2@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=8031896@ASuid@AA=243111494@ASnick@AA=青榎@ASicon@AA=avatar_v3@AAS202305@AAS8bd800d3bb8d4e16884dcb3e3f77b038@ASstatus@AA=0@ASsc@AA=456000@AStime@AA=1693127393@ASteam@AA=4@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@Srid@AA=7009686@ASuid@AA=299482114@ASnick@AA=紫薇同学@ASicon@AA=avatar_v3@AAS202302@AASb67044b78b494b0896fd6738bc2d5b7b@ASstatus@AA=0@ASsc@AA=660000@AStime@AA=1693127424@ASteam@AA=5@ASgroup_no@AA=0@ASmd@AA=0@AShvsc@AA=0@ASct@AA=0@AS@S/subcmd@=0/pkm@=0/rlt@=0/"; - Map stringObjectMap = DouyuCodecUtil.parseDouyuSttStringToMap(mapkb); - assertNotNull(stringObjectMap); - stringObjectMap.forEach((string, o) -> { - System.out.println(string); - }); - } - - @Test - void decodeTest2() { - String pdrinfo = "giftId@=23518/total@=total@A=3@Snum@A=0@Sfin@A=0@S/actStatus@=1/time@=1693158017596/type@=pdrinfo/dayFin@=0/list@=1@A=total@AAA=6@AASnum@AAA=6@AASpid@AAA=2682@AASfin@AAA=1@AAS@AStotal@AAA=600@AASnum@AAA=336@AASpid@AAA=2680@AASfin@AAA=0@AAS@AS@S100@A=total@AAA=2@AASnum@AAA=0@AASpid@AAA=2685@AASfin@AAA=0@AAS@AStotal@AAA=100@AASnum@AAA=5@AASpid@AAA=2682@AASfin@AAA=0@AAS@AS@S10@A=total@AAA=2@AASnum@AAA=0@AASpid@AAA=2683@AASfin@AAA=0@AAS@AStotal@AAA=80@AASnum@AAA=35@AASpid@AAA=2681@AASfin@AAA=0@AAS@AS@S/"; - Map stringObjectMap = DouyuCodecUtil.parseDouyuSttStringToMap(pdrinfo); - assertNotNull(stringObjectMap); - stringObjectMap.forEach((string, o) -> { - System.out.println(string); - }); - } - - @Test - void toDouyuSttStringTest() { - String douyuSttString = DouyuCodecUtil.toDouyuSttString(new HashMap() {{ - put("key1", "value1"); - put("key2", 2); - put("key3", new ArrayList>() {{ - add(new HashMap() {{ - put("11", 11); - put("12", 12); - }}); - add(new HashMap() {{ - put("21", 21); - put("22", 22); - }}); - }}); - }}); - System.out.println(douyuSttString); - assertEquals("key1@=value1/key2@=2/key3@=11@AA=11@AS12@AA=12@AS@S22@AA=22@AS21@AA=21@AS@S/".length(), douyuSttString.length()); - } - - @Test - void codecTest() { - String mapkb = "type@=mapkb/pk_time@=600/teams@=team@AA=5@ASres@AA=1@ASsc@AA=660000@ASbf@AA=0@AS@Steam@AA=6@ASres@AA=2@ASsc@AA=600000@ASbf@AA=0@AS@Steam@AA=4@ASres@AA=3@ASsc@AA=456000@ASbf@AA=0@AS@Steam@AA=2@ASres@AA=4@ASsc@AA=302000@ASbf@AA=0@AS@Steam@AA=3@ASres@AA=5@ASsc@AA=100000@ASbf@AA=0@AS@Steam@AA=1@ASres@AA=6@ASsc@AA=200@ASbf@AA=0@AS@S/"; - IDouyuMsg iDouyuMsg = DouyuCodecUtil.parseDouyuSttString(mapkb, DouyuCodecUtil.MSG_TYPE_RECEIVE); - String douyuSttString = DouyuCodecUtil.toDouyuSttString(iDouyuMsg); - System.out.println(mapkb); - System.out.println(douyuSttString); - assertEquals(mapkb.length(), douyuSttString.length()); - IDouyuMsg douyuSttStringMsg = DouyuCodecUtil.parseDouyuSttString(douyuSttString, DouyuCodecUtil.MSG_TYPE_RECEIVE); - assertNotNull(douyuSttStringMsg); - } - - @Test - void unescape() { - String unescape = DouyuCodecUtil.unescape("team@AA=5@ASres@AA=1@ASsc@AA=660000@ASbf@AA=0@AS@Steam@AA=6@ASres@AA=2@ASsc@AA=600000@ASbf@AA=0@AS@Steam@AA=4@ASres@AA=3@ASsc@AA=456000@ASbf@AA=0@AS@Steam@AA=2@ASres@AA=4@ASsc@AA=302000@ASbf@AA=0@AS@Steam@AA=3@ASres@AA=5@ASsc@AA=100000@ASbf@AA=0@AS@Steam@AA=1@ASres@AA=6@ASsc@AA=200@ASbf@AA=0@AS@S"); - System.out.println(unescape); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/pom.xml deleted file mode 100644 index ff7529a5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - 4.0.0 - - org.ruoyi - live-chat-clients - ${revision} - ../pom.xml - - jar - - live-chat-client-huya - live-chat-client-huya - - - UTF-8 - - - - - org.ruoyi - live-chat-client-servers-netty-client - - - - com.tencent.tars - tars-core - - - - ch.qos.logback - logback-classic - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/api/HuyaApis.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/api/HuyaApis.java deleted file mode 100644 index bd891301..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/api/HuyaApis.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.api; - -import cn.hutool.core.util.ReUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.http.HttpRequest; -import cn.hutool.http.HttpResponse; -import cn.hutool.http.HttpStatus; -import cn.hutool.http.HttpUtil; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.node.ObjectNode; -import lombok.Cleanup; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.PropsItem; - -import java.util.HashMap; -import java.util.Map; - -import static tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg.OBJECT_MAPPER; - -/** - * API简易版 - *
- * vplayerUI.js - *
- * taf-signal.global.0.0.4.prod.js - * - * @author mjz - * @date 2023/9/5 - */ -@Slf4j -public class HuyaApis { - - // TODO TimedCache - public static final Map GIFT_ITEMS = new HashMap<>(); - - public static JsonNode roomInit(Object roomId) { - @Cleanup - HttpResponse response = createGetRequest("https://www.huya.com/" + roomId, null).execute(); - if (response.getStatus() != HttpStatus.HTTP_OK) { - throw new BaseException("获取" + roomId + "真实房间ID失败"); - } - String body = response.body(); - String lSubChannelId = ReUtil.getGroup1("\"lp\"\\D+(\\d+)", body); - String lChannelId = ReUtil.getGroup1("\"lp\"\\D+(\\d+)", body); - String lYyid = ReUtil.getGroup1("\"yyid\"\\D+(\\d+)", body); - ObjectNode objectNode = OBJECT_MAPPER.createObjectNode(); - objectNode.put("lSubChannelId", StrUtil.emptyToDefault(lSubChannelId, "0")); - objectNode.put("lChannelId", StrUtil.emptyToDefault(lChannelId, "0")); - objectNode.put("lYyid", lYyid); - return objectNode; - } - - public static HttpRequest createGetRequest(String url, String cookies) { - return HttpUtil.createGet(url) - .cookie(cookies); - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/client/HuyaLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/client/HuyaLiveChatClient.java deleted file mode 100644 index ecad0b3c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/client/HuyaLiveChatClient.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.client; - -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.DefaultHttpHeaders; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketFrame; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.huya.config.HuyaLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaCmdEnum; -import tech.ordinaryroad.live.chat.client.huya.listener.IHuyaConnectionListener; -import tech.ordinaryroad.live.chat.client.huya.listener.IHuyaMsgListener; -import tech.ordinaryroad.live.chat.client.huya.msg.base.IHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.netty.frame.factory.HuyaWebSocketFrameFactory; -import tech.ordinaryroad.live.chat.client.huya.netty.handler.HuyaBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.huya.netty.handler.HuyaConnectionHandler; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; - -import java.util.List; -import java.util.function.Consumer; - -/** - * 虎牙直播间弹幕客户端 - * - * @author mjz - * @date 2023/8/20 - */ -@Slf4j -public class HuyaLiveChatClient extends BaseNettyClient< - HuyaLiveChatClientConfig, - HuyaCmdEnum, - IHuyaMsg, - IHuyaMsgListener, - HuyaConnectionHandler, - HuyaBinaryFrameHandler> { - - public HuyaLiveChatClient(HuyaLiveChatClientConfig config, List msgListeners, IHuyaConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListeners(msgListeners); - - // 初始化 - this.init(); - } - - public HuyaLiveChatClient(HuyaLiveChatClientConfig config, IHuyaMsgListener msgListener, IHuyaConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListener(msgListener); - - // 初始化 - this.init(); - } - - public HuyaLiveChatClient(HuyaLiveChatClientConfig config, IHuyaMsgListener msgListener, IHuyaConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public HuyaLiveChatClient(HuyaLiveChatClientConfig config, IHuyaMsgListener msgListener) { - this(config, msgListener, null, new NioEventLoopGroup()); - } - - public HuyaLiveChatClient(HuyaLiveChatClientConfig config) { - this(config, null); - } - - - @Override - public HuyaConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - return new HuyaConnectionHandler( - WebSocketClientHandshakerFactory.newHandshaker(getWebsocketUri(), WebSocketVersion.V13, null, true, new DefaultHttpHeaders(), getConfig().getMaxFramePayloadLength()), - HuyaLiveChatClient.this, clientConnectionListener - ); - } - - @Override - public HuyaBinaryFrameHandler initBinaryFrameHandler() { - return new HuyaBinaryFrameHandler(super.msgListeners, HuyaLiveChatClient.this); - } - - @Override - public void sendDanmu(Object danmu, Runnable success, Consumer failed) { - if (!checkCanSendDanmu()) { - return; - } - - if (danmu instanceof String) { - String msg = (String) danmu; - if (log.isDebugEnabled()) { - log.debug("{} huya发送弹幕 {}", getConfig().getRoomId(), danmu); - } - - WebSocketFrame webSocketFrame = null; - try { - webSocketFrame = HuyaWebSocketFrameFactory.getInstance(getConfig().getRoomId()).createSendMessageReq(msg, getConfig().getVer(), getConfig().getCookie()); - } catch (Exception e) { - log.error("huya弹幕包创建失败", e); - if (failed != null) { - failed.accept(e); - } - } - if (webSocketFrame == null) { - return; - } - - send(webSocketFrame, () -> { - if (log.isDebugEnabled()) { - log.debug("huya弹幕发送成功 {}", danmu); - } - if (success != null) { - success.run(); - } - finishSendDanmu(); - }, throwable -> { - log.error("huya弹幕发送失败", throwable); - if (failed != null) { - failed.accept(throwable); - } - }); - } else { - super.sendDanmu(danmu); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/config/HuyaLiveChatClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/config/HuyaLiveChatClientConfig.java deleted file mode 100644 index 176bc74d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/config/HuyaLiveChatClientConfig.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.config; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.servers.netty.client.config.BaseNettyClientConfig; - -/** - * 直播间弹幕客户端配置 - * - * @author mjz - * @date 2023/9/5 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class HuyaLiveChatClientConfig extends BaseNettyClientConfig { - - public static final String VER = "2309271152"; - - @Builder.Default -// private String websocketUri = "wss://wsapi.huya.com:443"; - private String websocketUri = "wss://cdnws.api.huya.com:443"; - - @Builder.Default - private int aggregatorMaxContentLength = 64 * 1024 * 1024; - - @Builder.Default - private int maxFramePayloadLength = 64 * 1024 * 1024; - - @Builder.Default - private String ver = VER; - - @Builder.Default - private String exp = "15547.23738,16582.25335,32083.50834"; - - @Builder.Default - private String appSrc = "HUYA&ZH&2052"; - - public void setVer(String ver) { - String oldValue = this.ver; - this.ver = ver; - super.propertyChangeSupport.firePropertyChange("ver", oldValue, ver); - } - - public void setExp(String exp) { - String oldValue = this.exp; - this.exp = exp; - super.propertyChangeSupport.firePropertyChange("exp", oldValue, exp); - } - - public void setAppSrc(String appSrc) { - String oldValue = this.appSrc; - this.appSrc = appSrc; - super.propertyChangeSupport.firePropertyChange("appSrc", oldValue, appSrc); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaClientTemplateTypeEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaClientTemplateTypeEnum.java deleted file mode 100644 index 48ddedfc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaClientTemplateTypeEnum.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaClientTemplateTypeEnum { - - TPL_PC(64), - TPL_WEB(32), - TPL_JIEDAI(16), - TPL_TEXAS(8), - TPL_MATCH(4), - TPL_HUYAAPP(2), - TPL_MIRROR(1), - ; - - private final int code; - - public static HuyaClientTemplateTypeEnum getByCode(int code) { - for (HuyaClientTemplateTypeEnum value : values()) { - if (value.getCode() == code) { - return value; - } - } - return null; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaCmdEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaCmdEnum.java deleted file mode 100644 index e47b2c26..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaCmdEnum.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaCmdEnum { - - NobleNotice(1001), - // NobleEnterNotice(1002), - NobleEnterNotice(1005), - NobleLevelNotice(1006), - MessageNotice(1400), - // ExpressionEmoticonNotice(1420), - ExpressionEmoticonNotice(1422), - OpenEmojiTrialNotice(1441), - SubscribeInfoNotify(3104), - PublicMessageAreaGuideWindow(6074), - // WeekStarPropsIds(6100), - WeekStarPropsIdsTab(6102), - /** - * https://dev.huya.com/docs/miniapp/dev/scenario/vip-event/ - */ - VipEnterBanner(6110), - VipBarListStatInfo(6211), - EnterPushInfo(6200), - GameAdvertisement(6201), - ViewerListRsp(6203), - VipBarListRsp(6210), - UserWeekRankScoreInfo(6219), - WeekRankListRsp(6220), - WeekRankEnterBanner(6221), - FansSupportListRsp(6223), - FansRankListRsp(6230), - BadgeInfo(6231), - BadgeScoreChanged(6232), - FansInfoNotice(6233), - UserGiftNotice(6234), - WeekStarPropsIds(6235), - SuperFansExtendInfo(6245), - TrialFansBadgeScoreChanged(6246), - GuardianCountChangedNotice(6249), - GiftBarRsp(6250), - GrandCeremonyChampionPresenter(6260), - LotteryAnnounce(6289), - NewsTicker(6290), - SendItemSubBroadcastPacket(6501), - SendItemNoticeWordBroadcastPacket(6502), - ShowScreenSkinNotify(6640), - HideScreenSkinNotify(6641), - ActivetyBarrageNotice(6650), - BannerNotice(6291), - // OnTVPanel(6294), - OnTVPanel(6295), - OnTVData(6296), - OnTVEndNotice(6297), - OnTVBarrageNotice(6298), - CheckRoomStatus(6340), - SendItemNoticeGameBroadcastPacket(6507), - SendItemActivityNoticeBroadcastPacket(6508), - SendItemOtherBroadcastPacket(6514), - GiftStatusNotify(6515), - ActivitySpecialNoticeBroadcastPacket(6540), - UserDIYMountsChanged(6575), - ObtainDecoNotify(6590), - TreasureResultBroadcastPacket(6602), - TreasureUpdateNotice(6604), - TreasureLotteryResultNoticePacket(6605), - TreasureBoxPanel(6606), - TreasureBoxBigAwardNotice(6607), - ItemLotterySubNotice(6616), - ItemLotteryGameNotice(6617), - FansBadgeLevelUpNotice(6710), - FansPromoteNotice(6711), - ActCommPanelChangeNotify(6647), - MatchRaffleResultNotice(7055), - BatchGameInfoNotice(7500), - GameInfoChangeNotice(7501), - EndHistoryGameNotice(7502), - GameSettlementNotice(7503), - PresenterEndGameNotice(7504), - // PresenterLevelNotice(7708), - PresenterLevelNotice(7709), - EffectsConfChangeNoticeMsg(7772), - BeginLiveNotice(8000), - EndLiveNotice(8001), - StreamSettingNotice(8002), - LiveInfoChangedNotice(8004), - AttendeeCountNotice(8006), - ReplayPresenterInLiveNotify(9010), - RoomAuditWarningNotice(10039), - AuditorEnterLiveNotice(10040), - AuditorRoleChangeNotice(10041), - GetRoomAuditConfRsp(10042), - UserConsumePrivilegeChangeNotice(10047), - LinkMicStatusChangeNotice(42008), - InterveneCountRsp(44000), - UserLevelUpgradeNotice(1000106), - PushUserLevelTaskCompleteNotice(1130055), - GuardianPresenterInfoNotice(1020001), - SupportCampInfoRsp(1025300), - UserSupportCampRsp(1025301), - UserSupportEffectRsp(1025302), - WSRedirect(1025305), - HuYaUdbNotify(10220051), - infoBody(10220053), - UnionAuthPushMsg(10220054), - RMessageNotify(1025000), - PushPresenterAdNotice(1025493), - RoomAdInfo(1025504), - // PushAdInfo(1025562), -// PushAdInfo(1025564), - PushAdInfo(1025566), - // AdExtServer.PushOfflineInfo(1025569), - WSP2POpenNotify(1025307), - WSP2PCloseNotify(1025308), - LiveMeetingSyncNotice(1025601), - MakeFriendsPKInfo(1025604), - LiveRoomTransferNotice(1025605), - GetPugcVipListRsp(1025800), - PugcVipInfo(1025801), - StreamChangeNotice(100000), - PayLiveRoomNotice(1033001), - MatchEndNotice(1034001), - LiveRoomProfileChangedNotice(1035400), - ACOrderInfo(1060003), - // WEBACT.Message(108e4), - MultiPKNotice(1090007), - MultiPKPanelInfo(1090009), - AiBarrageDetectNotify(1100003), - FloatMomentNotice(1130050), - FloatBallNotice(1130052), - VoiceMuteJsonInfo(1200000), - PixelateInfo(1200001), - // MpsDeliverData(1210000), - MpsDeliverData(1220000), - ActivityMsgRsp(1010003), - // Message(1040000), - Message(1040002), - LiveEventMessage(1040003), - LiveViewLimitChangeNotice(1035100), - PrivilegeRenewalNotice(1035101), - MatchRecLiveInfo(1029001), - GetBattleTeamInfoRsp(1029002), - // MatchGuess.MatchCmdColorNotify(1025312), - GameStatusInfo(1130003), - MatchPlaybackPointNotice(1150001), - PushFaceDirectorCurrentProgram(1130070), - JoinSplitScreenNotice(1500001), - LeaveSplitScreenNotice(1500002), - GameLivePromoteNotify(1800009), - MotorcadeGatherBeginNotice(2000001), - MotorcadeGatherEndNotice(2000002), - MotorcadeGatherResponseNotice(2000003), - MotorcadeActivityPanel(2000041), - MessageRichTextNotice(2001231), - MultiVideoSyncNotice(2400001), - PassParcelChangeNotify(2400002), - MatchLiveCommentorChangeNotify(2400020), - MessageEasterEggNotice(2001203), - MessageEasterEggToastNotice(2001202), - UserFollowStrollIconNotice(2410001), - UserFollowStrollBarrageNotice(2410002), -// LiveMatch.MatchLiveRoomRecMsg(2500406), - ; - - private final long code; - - public static HuyaCmdEnum getByCode(long code) { - for (HuyaCmdEnum value : HuyaCmdEnum.values()) { - if (value.code == code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaDecorationAppTypeEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaDecorationAppTypeEnum.java deleted file mode 100644 index 834af679..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaDecorationAppTypeEnum.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaDecorationAppTypeEnum { - - kDecorationAppTypeCommon(100), - kDecorationAppTypeContentBubble(5000), - kDecorationAppTypeContentBubbleNew(5001), - kDecorationAppTypeEffectsMessenger(5002), - kDecorationAppTypeMsgInterConnect(5010), - kDecorationAppTypeMsgLocation(5011), - kDecorationAppTypeChannel(10000), - kDecorationAppTypeGuildAdmin(10090), - kDecorationAppTypeAdmin(10100), - kDecorationAppTypeDaiyanClub(10150), - kDecorationAppTypeNoble(10200), - KDecorationAppTypeGuildVip(10210), - kDecorationAppTypeGuard(10300), - kDecorationAppTypeDiamondUser_V2(10310), - kDecorationAppTypeTeamMedalV2(10350), - kDecorationAppTypeTrialFans(10399), - kDecorationAppTypeFans(10400), - kDecorationAppTypeWatchTogetherVip(10425), - kDecorationAppTypeTeamMedal(10450), - kDecorationAppTypeVIP(10500), - kDecorationAppTypeUserProfile(10560), - kDecorationAppTyperPurpleDiamond(10600), - kDecorationAppTypeStamp(10700), - KDecorationAppTypeNobleEmoticon(10800), - KDecorationAppTypeAnotherAi(10801), - KDecorationAppTypePresenter(10900), - KDecorationAppTypeFirstRecharge(11000), - kDecorationAppTypeCheckRoom(11100), - kDecorationAppTypeTWatch(11101), - kDecorationAppTypeEasterEgg(11102), - kDecorationAppTypeRepeatMessengeFilter(11103), - kDecorationAppTypeEasterEggCounter(11104), - kDecorationAppTypeACOrderIntimacy(12001), - kDecorationAppTypeSuperWord(13000), - kDecorationAppTypeDiamondUser(14000), - kDecorationAppTypeRedBag(15000), - kDecorationAppTypeUsrAvatarDeco(100009), - kDecorationAppTypeUsrBeautyId(100100), - ; - - private final int code; - - public static HuyaDecorationAppTypeEnum getByCode(int code) { - for (HuyaDecorationAppTypeEnum value : values()) { - if (value.getCode() == code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaDecorationViewTypeEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaDecorationViewTypeEnum.java deleted file mode 100644 index 3e1318bd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaDecorationViewTypeEnum.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaDecorationViewTypeEnum { - - kDecorationViewTypeCustomized(0), - kDecorationViewTypeText(1), - kDecorationViewTypeIcon(2), - kDecorationViewTypeSuperWord(4), - ; - - private final int code; - - public static HuyaDecorationViewTypeEnum getByCode(int code) { - for (HuyaDecorationViewTypeEnum value : values()) { - if (value.getCode() == code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaGenderEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaGenderEnum.java deleted file mode 100644 index 830c6f46..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaGenderEnum.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaGenderEnum { - - MALE(0), - FEMALE(1), - ; - private final int code; - - public static HuyaGenderEnum getByCode(int code) { - for (HuyaGenderEnum value : values()) { - if (value.getCode() == code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaLiveSource.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaLiveSource.java deleted file mode 100644 index ce93ab6a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaLiveSource.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaLiveSource { - - PC_YY(0), - PC_HUYA(1), - MOBILE_HUYA(2), - WEB_HUYA(3), - ; - - private final int code; - - public static HuyaLiveSource getByCode(int code){ - for (HuyaLiveSource value : values()) { - if (value.getCode()==code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaOperationEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaOperationEnum.java deleted file mode 100644 index dca59798..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaOperationEnum.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaOperationEnum { - EWSCmd_NULL(0), - EWSCmd_RegisterReq(1), - EWSCmd_RegisterRsp(2), - EWSCmd_WupReq(3), - EWSCmd_WupRsp(4), - EWSCmdC2S_HeartBeat(5), - EWSCmdS2C_HeartBeatAck(6), - EWSCmdS2C_MsgPushReq(7), - EWSCmdC2S_DeregisterReq(8), - EWSCmdS2C_DeRegisterRsp(9), - EWSCmdC2S_VerifyCookieReq(10), - EWSCmdS2C_VerifyCookieRsp(11), - EWSCmdC2S_VerifyHuyaTokenReq(12), - EWSCmdS2C_VerifyHuyaTokenRsp(13), - EWSCmdC2S_UNVerifyReq(14), - EWSCmdS2C_UNVerifyRsp(15), - EWSCmdC2S_RegisterGroupReq(16), - EWSCmdS2C_RegisterGroupRsp(17), - EWSCmdC2S_UnRegisterGroupReq(18), - EWSCmdS2C_UnRegisterGroupRsp(19), - EWSCmdC2S_HeartBeatReq(20), - EWSCmdS2C_HeartBeatRsp(21), - EWSCmdS2C_MsgPushReq_V2(22), - EWSCmdC2S_UpdateUserExpsReq(23), - EWSCmdS2C_UpdateUserExpsRsp(24), - EWSCmdC2S_WSHistoryMsgReq(25), - EWSCmdS2C_WSHistoryMsgRsp(26), - EWSCmdS2C_EnterP2P(27), - EWSCmdS2C_EnterP2PAck(28), - EWSCmdS2C_ExitP2P(29), - EWSCmdS2C_ExitP2PAck(30), - EWSCmdC2S_SyncGroupReq(31), - EWSCmdS2C_SyncGroupRsp(32), - EWSCmdC2S_UpdateUserInfoReq(33), - EWSCmdS2C_UpdateUserInfoRsp(34), - EWSCmdC2S_MsgAckReq(35), - EWSCmdS2C_MsgAckRsp(36), - EWSCmdC2S_CloudGameReq(37), - EWSCmdS2C_CloudGamePush(38), - EWSCmdS2C_CloudGameRsp(39), - EWSCmdS2C_RpcReq(40), - EWSCmdC2S_RpcRsp(41), - EWSCmdS2C_RpcRspRsp(42), - EWSCmdC2S_GetStunPortReq(101), - EWSCmdS2C_GetStunPortRsp(102), - EWSCmdC2S_WebRTCOfferReq(103), - EWSCmdS2C_WebRTCOfferRsp(104), - EWSCmdC2S_SignalUpgradeReq(105), - EWSCmdS2C_SignalUpgradeRsp(106), - ; - private final int code; - - public static HuyaOperationEnum getByCode(int code) { - for (HuyaOperationEnum value : HuyaOperationEnum.values()) { - if (value.code == code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaStreamLineTypeEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaStreamLineTypeEnum.java deleted file mode 100644 index 3696532e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaStreamLineTypeEnum.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaStreamLineTypeEnum { - - STREAM_LINE_OLD_YY(0), - STREAM_LINE_WS(1), - STREAM_LINE_NEW_YY(2), - STREAM_LINE_AL(3), - STREAM_LINE_HUYA(4), - STREAM_LINE_TX(5), - STREAM_LINE_CDN(8), - STREAM_LINE_HW(6), - STREAM_LINE_BD(7), - STREAM_LINE_GG(9), - STREAM_LINE_CF(10), - STREAM_LINE_QUICK_HUYA(99), - ; - - private final int code; - - public static HuyaStreamLineTypeEnum getByCode(int code) { - for (HuyaStreamLineTypeEnum value : values()) { - if (value.getCode() == code) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaWupFunctionEnum.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaWupFunctionEnum.java deleted file mode 100644 index c7e9906e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/constant/HuyaWupFunctionEnum.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.constant; - -import cn.hutool.core.util.StrUtil; -import lombok.Getter; -import lombok.RequiredArgsConstructor; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@RequiredArgsConstructor -public enum HuyaWupFunctionEnum { - - doLaunch, - speak, - getPropsList, - OnUserHeartBeat, - getLivingInfo, - sendMessage, - ; - - public static HuyaWupFunctionEnum getByName(String name) { - if (StrUtil.isBlank(name)) { - return null; - } - - for (HuyaWupFunctionEnum value : values()) { - if (value.name().equals(name)) { - return value; - } - } - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/listener/IHuyaConnectionListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/listener/IHuyaConnectionListener.java deleted file mode 100644 index caa46741..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/listener/IHuyaConnectionListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.listener; - - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.huya.netty.handler.HuyaConnectionHandler; - -/** - * 连接回调 - * - * @author mjz - * @date 2023/9/5 - */ -public interface IHuyaConnectionListener extends IBaseConnectionListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/listener/IHuyaMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/listener/IHuyaMsgListener.java deleted file mode 100644 index 48e656db..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/listener/IHuyaMsgListener.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.listener; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IDanmuMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IEnterRoomMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IGiftMsgListener; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaCmdEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.MessageNoticeMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.SendItemSubBroadcastPacketMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.VipEnterBannerMsg; -import tech.ordinaryroad.live.chat.client.huya.netty.handler.HuyaBinaryFrameHandler; - -/** - * @author mjz - * @date 2023/9/5 - */ -public interface IHuyaMsgListener extends IBaseMsgListener, - IDanmuMsgListener, - IGiftMsgListener, - IEnterRoomMsgListener { -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/BaseWup.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/BaseWup.java deleted file mode 100644 index 9a924f36..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/BaseWup.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.support.TarsMethodInfo; -import com.qq.tars.protocol.util.TarsHelper; -import com.qq.tars.rpc.protocol.tars.TarsServantRequest; -import com.qq.tars.rpc.protocol.tup.UniAttribute; -import io.netty.buffer.ByteBuf; -import io.netty.buffer.ByteBufUtil; -import io.netty.buffer.Unpooled; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.util.HuyaCodecUtil; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public abstract class BaseWup extends BaseHuyaMsg { - - private TarsServantRequest tarsServantRequest = new TarsServantRequest(null) {{ - setMethodInfo(new TarsMethodInfo()); - }}; - private UniAttribute uniAttribute = new UniAttribute(); - - public BaseWup(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { -// os.write(this.tarsServantRequest.getVersion(), 1); - os.write(TarsHelper.VERSION3, 1); - os.write(this.tarsServantRequest.getPacketType(), 2); - os.write(this.tarsServantRequest.getMessageType(), 3); - os.write(this.tarsServantRequest.getRequestId(), 4); - os.write(this.tarsServantRequest.getServantName(), 5); - os.write(this.tarsServantRequest.getFunctionName(), 6); - os.write(this.uniAttribute.encode(), 7); - os.write(this.tarsServantRequest.getTimeout(), 8); - os.write(this.tarsServantRequest.getContext(), 9); - os.write(this.tarsServantRequest.getStatus(), 10); - } - - @Override - public void readFrom(TarsInputStream is) { - this.tarsServantRequest.setVersion(is.read(this.tarsServantRequest.getVersion(), 1, false)); - this.tarsServantRequest.setPacketType(is.read(this.tarsServantRequest.getPacketType(), 2, false)); - this.tarsServantRequest.setMessageType(is.read(this.tarsServantRequest.getMessageType(), 3, false)); - this.tarsServantRequest.setRequestId(is.read(this.tarsServantRequest.getRequestId(), 4, false)); - this.tarsServantRequest.setServantName(is.read(this.tarsServantRequest.getServantName(), 5, false)); - this.tarsServantRequest.setFunctionName(is.read(this.tarsServantRequest.getFunctionName(), 6, false)); - this.uniAttribute.decode(is.read(new byte[]{}, 7, false)); - this.tarsServantRequest.setTimeout(is.read(this.tarsServantRequest.getTimeout(), 8, false)); - this.tarsServantRequest.setContext(is.readMap(this.tarsServantRequest.getContext(), 9, false)); - this.tarsServantRequest.setStatus(is.readMap(this.tarsServantRequest.getStatus(), 10, false)); - } - - public byte[] encode() { - TarsOutputStream wupTarsOutputStream = new TarsOutputStream(); - this.writeTo(wupTarsOutputStream); - - ByteBuf buffer = Unpooled.buffer(); - buffer.writeInt(4 + wupTarsOutputStream.getByteBuffer().position()); - buffer.writeBytes(wupTarsOutputStream.toByteArray()); - - return ByteBufUtil.getBytes(buffer); - } - - public void decode(byte[] bytes) { - ByteBuf byteBuf = Unpooled.wrappedBuffer(bytes); - int size = byteBuf.readInt(); - if (size < 4) { - return; - } - - bytes = new byte[byteBuf.readableBytes()]; - byteBuf.readBytes(bytes); - this.readFrom(HuyaCodecUtil.newUtf8TarsInputStream(bytes)); - } - - @Override - public String toString() { - Map map = new HashMap<>(); - map.put("version", this.tarsServantRequest.getVersion()); - map.put("packetType", this.tarsServantRequest.getPacketType()); - map.put("messageType", this.tarsServantRequest.getMessageType()); - map.put("requestId", this.tarsServantRequest.getRequestId()); - map.put("servantName", this.tarsServantRequest.getServantName()); - map.put("functionName", this.tarsServantRequest.getFunctionName()); - map.put("timeout", this.tarsServantRequest.getTimeout()); - map.put("context", this.tarsServantRequest.getContext()); - map.put("status", this.tarsServantRequest.getStatus()); - try { - return BaseMsg.OBJECT_MAPPER.writeValueAsString(map); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/ConnectParaInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/ConnectParaInfo.java deleted file mode 100644 index 75e55e6f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/ConnectParaInfo.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/9/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ConnectParaInfo extends TarsStructBase { - - private long lUid = 0; - private String sGuid = ""; - private String sUA = ""; - private String sAppSrc = ""; - private String sMid = ""; - private String sExp = ""; - private int iTokenType = 0; - private String sToken = ""; - private String sCookie = ""; - private String sTraceId = ""; - private Map mCustomHeaders = new HashMap() {{ - put("", ""); - }}; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.sGuid, 1); - os.write(this.sUA, 2); - os.write(this.sAppSrc, 3); - os.write(this.sMid, 4); - os.write(this.sExp, 5); - os.write(this.iTokenType, 6); - os.write(this.sToken, 7); - os.write(this.sCookie, 8); - os.write(this.sTraceId, 9); - os.write(this.mCustomHeaders, 10); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.sGuid = is.read(this.sGuid, 1, false); - this.sUA = is.read(this.sUA, 2, false); - this.sAppSrc = is.read(this.sAppSrc, 3, false); - this.sMid = is.read(this.sMid, 4, false); - this.sExp = is.read(this.sExp, 5, false); - this.iTokenType = is.read(this.iTokenType, 6, false); - this.sToken = is.read(this.sToken, 7, false); - this.sCookie = is.read(this.sCookie, 8, false); - this.sTraceId = is.read(this.sTraceId, 9, false); - this.mCustomHeaders = is.readMap(this.mCustomHeaders, 10, false); - } - - public static ConnectParaInfo newWSConnectParaInfo(String ver, String sExp, String appSrc) { - ConnectParaInfo wsConnectParaInfo = new ConnectParaInfo(); -// wsConnectParaInfo.sGuid = UUID.fastUUID().toString(true); - - wsConnectParaInfo.sUA = String.format("webh5&%s&websocket", ver); - wsConnectParaInfo.sAppSrc = appSrc; - wsConnectParaInfo.sExp = sExp; - wsConnectParaInfo.mCustomHeaders = new HashMap() {{ - put("HUYA_NET", "0"); - put("HUYA_VSDKUA", wsConnectParaInfo.sUA); - }}; - return wsConnectParaInfo; - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/LiveLaunchRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/LiveLaunchRsp.java deleted file mode 100644 index 71ed2cc9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/LiveLaunchRsp.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.LiveProxyValue; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LiveLaunchRsp extends BaseHuyaMsg { - - private String sGuid = ""; - private int iTime; - private List vProxyList = CollUtil.newArrayList(new LiveProxyValue()); - private int eAccess; - private String sClientIp = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sGuid, 0); - os.write(this.iTime, 1); - os.write(this.vProxyList, 2); - os.write(this.eAccess, 3); - os.write(this.sClientIp, 4); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sGuid = is.read(this.sGuid, 0, false); - this.iTime = is.read(this.iTime, 1, false); - this.vProxyList = is.readArray(this.vProxyList, 2, false); - this.eAccess = is.read(this.eAccess, 3, false); - this.sClientIp = is.read(this.sClientIp, 4, false); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmd_WupRsp; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/MessageNoticeMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/MessageNoticeMsg.java deleted file mode 100644 index a0178e5a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/MessageNoticeMsg.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IDanmuMsg; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.*; -import tech.ordinaryroad.live.chat.client.huya.util.HuyaCodecUtil; - -import java.util.List; -import java.util.Optional; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MessageNoticeMsg extends BaseHuyaMsg implements IDanmuMsg { - - private SenderInfo tUserInfo = new SenderInfo(); - private long lTid; - private long lSid; - private String sContent = ""; - private int iShowMode; - private ContentFormat tFormat = new ContentFormat(); - private BulletFormat tBulletFormat = new BulletFormat(); - private int iTermType; - private List vDecorationPrefix = CollUtil.newArrayList(new DecorationInfo()); - private List vDecorationSuffix = CollUtil.newArrayList(new DecorationInfo()); - private List vAtSomeone = CollUtil.newArrayList(new UidNickName()); - private long lPid; - private List vBulletPrefix = CollUtil.newArrayList(new DecorationInfo()); - private String sIconUrl = ""; - private int iType; - private List vBulletSuffix = CollUtil.newArrayList(new DecorationInfo()); - private List vTagInfo = CollUtil.newArrayList(new MessageTagInfo()); - private SendMessageFormat tSenceFormat = new SendMessageFormat(); - private MessageContentExpand tContentExpand = new MessageContentExpand(); - private int iMessageMode; - - // region 额外属性 - private BadgeInfo badgeInfo; - // endregion - - public MessageNoticeMsg(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.tUserInfo, 0); - os.write(this.lTid, 1); - os.write(this.lSid, 2); - os.write(this.sContent, 3); - os.write(this.iShowMode, 4); - os.write(this.tFormat, 5); - os.write(this.tBulletFormat, 6); - os.write(this.iTermType, 7); - os.write(this.vDecorationPrefix, 8); - os.write(this.vDecorationSuffix, 9); - os.write(this.vAtSomeone, 10); - os.write(this.lPid, 11); - os.write(this.vBulletPrefix, 12); - os.write(this.sIconUrl, 13); - os.write(this.iType, 14); - os.write(this.vBulletSuffix, 15); - os.write(this.vTagInfo, 16); - os.write(this.tSenceFormat, 17); - os.write(this.tContentExpand, 18); - os.write(this.iMessageMode, 19); - } - - @Override - public void readFrom(TarsInputStream is) { - this.tUserInfo = (SenderInfo) is.directRead(this.tUserInfo, 0, true); - this.lTid = is.read(this.lTid, 1, true); - this.lSid = is.read(this.lSid, 2, true); - this.sContent = is.readString(3, true); - this.iShowMode = is.read(this.iShowMode, 4, true); - this.tFormat = (ContentFormat) is.directRead(this.tFormat, 5, true); - this.tBulletFormat = (BulletFormat) is.directRead(this.tBulletFormat, 6, true); - this.iTermType = is.read(this.iTermType, 7, true); - this.vDecorationPrefix = is.readArray(this.vDecorationPrefix, 8, true); - this.vDecorationSuffix = is.readArray(this.vDecorationSuffix, 9, true); - this.vAtSomeone = is.readArray(this.vAtSomeone, 10, true); - this.lPid = is.read(this.lPid, 11, true); - this.vBulletPrefix = is.readArray(this.vBulletPrefix, 12, false); - this.sIconUrl = is.read(this.sIconUrl, 13, false); - this.iType = is.read(this.iType, 14, false); - this.vBulletSuffix = is.readArray(this.vBulletSuffix, 15, false); - this.vTagInfo = is.readArray(this.vTagInfo, 16, false); - this.tSenceFormat = (SendMessageFormat) is.directRead(this.tSenceFormat, 17, false); - this.tContentExpand = (MessageContentExpand) is.directRead(this.tContentExpand, 18, false); - this.iMessageMode = is.read(this.iMessageMode, 19, false); - - // 解析额外属性 - for (DecorationInfo decorationPrefix : vDecorationPrefix) { - Optional optional = HuyaCodecUtil.decodeDecorationInfo(decorationPrefix); - if (optional.isPresent()) { - TarsStructBase tarsStructBase = optional.get(); - if (tarsStructBase instanceof BadgeInfo) { - this.badgeInfo = (BadgeInfo) tarsStructBase; - break; - } - } - } - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_MsgPushReq; - } - - @Override - public String getBadgeName() { - if (this.badgeInfo == null) { - return ""; - } - - return this.badgeInfo.getSBadgeName(); - } - - @Override - public byte getBadgeLevel() { - if (this.badgeInfo == null) { - return 0; - } - - return (byte) this.badgeInfo.getIBadgeLevel(); - } - - @Override - public String getUid() { - if (this.tUserInfo == null) { - return null; - } - - return Long.toString(this.tUserInfo.getLUid()); - } - - @Override - public String getUsername() { - if (this.tUserInfo == null) { - return ""; - } - - return this.tUserInfo.getSNickName(); - } - - @Override - public String getUserAvatar() { - if (this.tUserInfo == null) { - return ""; - } - - return this.tUserInfo.getSAvatarUrl(); - } - - @Override - public String getContent() { - return this.sContent; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/PushMessage.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/PushMessage.java deleted file mode 100644 index 9008d882..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/PushMessage.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaCmdMsg; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class PushMessage extends BaseHuyaCmdMsg { - - private int ePushType; - private byte[] dataBytes; - private int iProtocolType; - private String sGroupId = ""; - private long lMsgId; - private int iMsgTag; - - public PushMessage(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.ePushType, 0); - os.write(super.getLUri(), 1); - os.write(this.dataBytes, 2); - os.write(this.iProtocolType, 3); - os.write(this.sGroupId, 4); - os.write(this.lMsgId, 5); - os.write(this.iMsgTag, 6); - - } - - @Override - public void readFrom(TarsInputStream is) { - this.ePushType = is.read(this.ePushType, 0, true); - super.setLUri(is.read(super.getLUri(), 1, true)); - this.dataBytes = is.read(this.dataBytes, 2, true); - this.iProtocolType = is.read(this.iProtocolType, 3, true); - this.sGroupId = is.read(this.sGroupId, 4, true); - this.lMsgId = is.read(this.lMsgId, 5, true); - this.iMsgTag = is.read(this.iMsgTag, 6, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_MsgPushReq_V2; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/PushMessage_V2.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/PushMessage_V2.java deleted file mode 100644 index a9aa3b16..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/PushMessage_V2.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.MsgItem; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class PushMessage_V2 extends BaseHuyaMsg { - - private String sGroupId; - private List vMsgItem = CollUtil.newArrayList(new MsgItem()); - - public PushMessage_V2(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sGroupId, 0); - os.write(this.vMsgItem, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sGroupId = is.read(this.sGroupId, 0, true); - this.vMsgItem = is.readArray(this.vMsgItem, 1, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_MsgPushReq_V2; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/RegisterGroupRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/RegisterGroupRsp.java deleted file mode 100644 index 1060ae58..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/RegisterGroupRsp.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class RegisterGroupRsp extends BaseHuyaMsg { - - private int iResCode; - private List vSupportP2PGroupId = CollUtil.newArrayList(""); - - public RegisterGroupRsp(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iResCode, 0); - os.write(this.vSupportP2PGroupId, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iResCode = is.read(this.iResCode, 0, true); - this.vSupportP2PGroupId = is.readArray(this.vSupportP2PGroupId, 1, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_RegisterGroupRsp; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/RegisterRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/RegisterRsp.java deleted file mode 100644 index 20ab1b03..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/RegisterRsp.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class RegisterRsp extends BaseHuyaMsg { - - private int iResCode; - private long lRequestId; - private String sMessage = ""; - private String sBCConnHost = ""; - - public RegisterRsp(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iResCode, 0); - os.write(this.lRequestId, 1); - os.write(this.sMessage, 2); - os.write(this.sBCConnHost, 3); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iResCode = is.read(this.iResCode, 0, true); - this.lRequestId = is.read(this.lRequestId, 1, true); - this.sMessage = is.read(this.sMessage, 2, true); - this.sBCConnHost = is.read(this.sBCConnHost, 3, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmd_RegisterRsp; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/SendItemSubBroadcastPacketMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/SendItemSubBroadcastPacketMsg.java deleted file mode 100644 index 0fd03757..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/SendItemSubBroadcastPacketMsg.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.StrUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IGiftMsg; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.*; -import tech.ordinaryroad.live.chat.client.huya.util.HuyaCodecUtil; - -import java.util.List; -import java.util.Optional; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SendItemSubBroadcastPacketMsg extends BaseHuyaMsg implements IGiftMsg { - - private int iItemType; - private String strPayId = ""; - private int iItemCount; - private long lPresenterUid; - private long lSenderUid; - private String sPresenterNick = ""; - private String sSenderNick = ""; - private String sSendContent = ""; - private int iItemCountByGroup; - private int iItemGroup; - private int iSuperPupleLevel; - private int iComboScore; - private int iDisplayInfo; - private int iEffectType; - private String iSenderIcon = ""; - private String iPresenterIcon = ""; - private int iTemplateType; - private String sExpand = ""; - private boolean bBusi; - private int iColorEffectType; - private String sPropsName = ""; - private short iAccpet = 0; - private short iEventType = 0; - private UserIdentityInfo userInfo = new UserIdentityInfo(); - private long lRoomId = 0; - private long lHomeOwnerUid = 0; - // private int streamerInfo = new D.StreamerNode; - private int iPayType = -1; - private int iNobleLevel = 0; - private NobleLevelInfo tNobleLevel = new NobleLevelInfo(); - private ItemEffectInfo tEffectInfo = new ItemEffectInfo(); - private List vExUid = CollUtil.newArrayList(-1L); - private int iComboStatus = 0; - private int iPidColorType = 0; - private int iMultiSend = 0; - private int iVFanLevel = 0; - private int iUpgradeLevel = 0; - private String sCustomText = ""; - private DIYBigGiftEffect tDIYEffect = new DIYBigGiftEffect(); - private long lComboSeqId = 0; - private long lPayTotal = 0; -// private int vBizData = new V.Vector(new D.ItemEffectBizData); - - // region 额外属性 - private BadgeInfo badgeInfo; - private PropsItem propsItem = PropsItem.DEFAULT; - // endregion - - public SendItemSubBroadcastPacketMsg(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iItemType, 0); - os.write(this.strPayId, 1); - os.write(this.iItemCount, 2); - os.write(this.lPresenterUid, 3); - os.write(this.lSenderUid, 4); - os.write(this.sPresenterNick, 5); - os.write(this.sSenderNick, 6); - os.write(this.sSendContent, 7); - os.write(this.iItemCountByGroup, 8); - os.write(this.iItemGroup, 9); - os.write(this.iSuperPupleLevel, 10); - os.write(this.iComboScore, 11); - os.write(this.iDisplayInfo, 12); - os.write(this.iEffectType, 13); - os.write(this.iSenderIcon, 14); - os.write(this.iPresenterIcon, 15); - os.write(this.iTemplateType, 16); - os.write(this.sExpand, 17); - os.write(this.bBusi, 18); - os.write(this.iColorEffectType, 19); - os.write(this.sPropsName, 20); - os.write(this.iAccpet, 21); - os.write(this.iEventType, 22); - os.write(this.userInfo, 23); - os.write(this.lRoomId, 24); - os.write(this.lHomeOwnerUid, 25); -// os.write(this.streamerInfo, 26); - os.write(this.iPayType, 27); - os.write(this.iNobleLevel, 28); - os.write(this.tNobleLevel, 29); - os.write(this.tEffectInfo, 30); - os.write(this.vExUid, 31); - os.write(this.iComboStatus, 32); - os.write(this.iPidColorType, 33); - os.write(this.iMultiSend, 34); - os.write(this.iVFanLevel, 35); - os.write(this.iUpgradeLevel, 36); - os.write(this.sCustomText, 37); - os.write(this.tDIYEffect, 38); - os.write(this.lComboSeqId, 39); - os.write(this.lPayTotal, 41); -// os.write(this.vBizData, 42); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iItemType = is.read(this.iItemType, 0, true); - this.strPayId = is.read(this.strPayId, 1, true); - this.iItemCount = is.read(this.iItemCount, 2, true); - this.lPresenterUid = is.read(this.lPresenterUid, 3, true); - this.lSenderUid = is.read(this.lSenderUid, 4, true); - this.sPresenterNick = is.read(this.sPresenterNick, 5, true); - this.sSenderNick = is.read(this.sSenderNick, 6, true); - this.sSendContent = is.read(this.sSendContent, 7, true); - this.iItemCountByGroup = is.read(this.iItemCountByGroup, 8, true); - this.iItemGroup = is.read(this.iItemGroup, 9, true); - this.iSuperPupleLevel = is.read(this.iSuperPupleLevel, 10, true); - this.iComboScore = is.read(this.iComboScore, 11, true); - this.iDisplayInfo = is.read(this.iDisplayInfo, 12, true); - this.iEffectType = is.read(this.iEffectType, 13, true); - this.iSenderIcon = is.read(this.iSenderIcon, 14, true); - this.iPresenterIcon = is.read(this.iPresenterIcon, 15, true); - this.iTemplateType = is.read(this.iTemplateType, 16, true); - this.sExpand = is.read(this.sExpand, 17, true); - this.bBusi = is.read(this.bBusi, 18, true); - this.iColorEffectType = is.read(this.iColorEffectType, 19, true); - this.sPropsName = is.read(this.sPropsName, 20, true); - this.iAccpet = is.read(this.iAccpet, 21, true); - this.iEventType = is.read(this.iEventType, 22, true); - this.userInfo = (UserIdentityInfo) is.directRead(this.userInfo, 23, true); - this.lRoomId = is.read(this.lRoomId, 24, true); - this.lHomeOwnerUid = is.read(this.lHomeOwnerUid, 25, true); -// this.streamerInfo = is.read(this.streamerInfo, 26, true); - this.iPayType = is.read(this.iPayType, 27, true); - this.iNobleLevel = is.read(this.iNobleLevel, 28, true); - this.tNobleLevel = (NobleLevelInfo) is.directRead(this.tNobleLevel, 29, true); - this.tEffectInfo = (ItemEffectInfo) is.directRead(this.tEffectInfo, 30, true); - this.vExUid = is.readArray(this.vExUid, 31, true); - this.iComboStatus = is.read(this.iComboStatus, 32, true); - this.iPidColorType = is.read(this.iPidColorType, 33, true); - this.iMultiSend = is.read(this.iMultiSend, 34, true); - this.iVFanLevel = is.read(this.iVFanLevel, 35, true); - this.iUpgradeLevel = is.read(this.iUpgradeLevel, 36, true); - this.sCustomText = is.read(this.sCustomText, 37, true); - this.tDIYEffect = (DIYBigGiftEffect) is.directRead(this.tDIYEffect, 38, true); - this.lComboSeqId = is.read(this.lComboSeqId, 39, true); - this.lPayTotal = is.read(this.lPayTotal, 41, true); -// this.vBizData = is.read(this.vBizData, 42, true); - - // 解析额外属性 - for (DecorationInfo decorationPrefix : userInfo.getVDecorationPrefix()) { - Optional optional = HuyaCodecUtil.decodeDecorationInfo(decorationPrefix); - if (optional.isPresent()) { - TarsStructBase tarsStructBase = optional.get(); - if (tarsStructBase instanceof BadgeInfo) { - this.badgeInfo = (BadgeInfo) tarsStructBase; - break; - } - } - } - } - - @Override - public String getUid() { - return Long.toString(this.lSenderUid); - } - - @Override - public String getUsername() { - return this.sSenderNick; - } - - @Override - public String getUserAvatar() { - return this.iSenderIcon; - } - - @Override - public String getGiftName() { - return this.sPropsName; - } - - @Override - public String getGiftImg() { - if (this.propsItem == null) { - return ""; - } - - List vPropsIdentity = this.propsItem.getVPropsIdentity(); - if (vPropsIdentity.isEmpty()) { - return ""; - } - - PropsIdentity propsIdentity = vPropsIdentity.get(0); - String sPropsWeb = propsIdentity.getSPropsWeb(); - if (StrUtil.isBlank(sPropsWeb)) { - return ""; - } - - return sPropsWeb.substring(0, sPropsWeb.indexOf("&")); - } - - @Override - public String getGiftId() { - return Long.toString(this.iItemType); - } - - @Override - public int getGiftCount() { - return this.iItemCount; - } - - /** - * 100 对应 1虎牙币 - */ - @Override - public int getGiftPrice() { - return (int) (this.lPayTotal / this.iItemCount); - } - - @Override - public String getReceiveUid() { - return Long.toString(this.lPresenterUid); - } - - @Override - public String getReceiveUsername() { - return this.sPresenterNick; - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_MsgPushReq; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/UserInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/UserInfo.java deleted file mode 100644 index b8ef2ab3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/UserInfo.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UserInfo extends TarsStructBase { - - private long lUid = 0; - private boolean bAnonymous = true; - private String sGuid = ""; - private String sToken = ""; - private long lTid = 0; - private long lSid = 0; - private long lGroupId = 0; - private long lGroupType = 0; - private String sAppId = ""; - private String sUA = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.bAnonymous, 1); - os.write(this.sGuid, 2); - os.write(this.sToken, 3); - os.write(this.lTid, 4); - os.write(this.lSid, 5); - os.write(this.lGroupId, 6); - os.write(this.lGroupType, 7); - os.write(this.sAppId, 8); - os.write(this.sUA, 9); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, true); - this.bAnonymous = is.read(this.bAnonymous, 1, true); - this.sGuid = is.read(this.sGuid, 2, true); - this.sToken = is.read(this.sToken, 3, true); - this.lTid = is.read(this.lTid, 4, true); - this.lSid = is.read(this.lSid, 5, true); - this.lGroupId = is.read(this.lGroupId, 6, true); - this.lGroupType = is.read(this.lGroupType, 7, true); - this.sAppId = is.read(this.sAppId, 8, true); - this.sUA = is.read(this.sUA, 9, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/VerifyCookieRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/VerifyCookieRsp.java deleted file mode 100644 index c080d6e6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/VerifyCookieRsp.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class VerifyCookieRsp extends BaseHuyaMsg { - - private int iValidate; - - public VerifyCookieRsp(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(0, this.iValidate); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iValidate = is.read(this.iValidate, 0, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_VerifyCookieRsp; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/VipEnterBannerMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/VipEnterBannerMsg.java deleted file mode 100644 index 7fbfe949..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/VipEnterBannerMsg.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IEnterRoomMsg; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.*; - -import java.util.List; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class VipEnterBannerMsg extends BaseHuyaMsg implements IEnterRoomMsg { - - private long lUid; - private String sNickName = ""; - private long lPid; - private NobleInfo tNobleInfo = new NobleInfo(); - private GuardInfo tGuardInfo = new GuardInfo(); - private WeekRankInfo tWeekRankInfo = new WeekRankInfo(); - private String sLogoURL = ""; - private boolean bFromNearby; - private String sLocation = ""; - private DecorationInfoRsp tDecorationInfo = new DecorationInfoRsp(); - private WeekRankInfo tWeekHeartStirRankInfo = new WeekRankInfo(); - private WeekRankInfo tWeekHeartBlockRankInfo = new WeekRankInfo(); - private int iMasterRank; - private ACEnterBanner tACInfo = new ACEnterBanner(); - private List vCommEnterBanner = CollUtil.newArrayList(new CommEnterBanner()); - private UserRidePetInfo tRidePetInfo = new UserRidePetInfo(); - - public VipEnterBannerMsg(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.sNickName, 1); - os.write(this.lPid, 2); - os.write(this.tNobleInfo, 3); - os.write(this.tGuardInfo, 4); - os.write(this.tWeekRankInfo, 5); - os.write(this.sLogoURL, 6); - os.write(this.bFromNearby, 7); - os.write(this.sLocation, 8); - os.write(this.tDecorationInfo, 9); - os.write(this.tWeekHeartStirRankInfo, 10); - os.write(this.tWeekHeartBlockRankInfo, 11); - os.write(this.iMasterRank, 12); - os.write(this.tACInfo, 13); - os.write(this.vCommEnterBanner, 14); - os.write(this.tRidePetInfo, 15); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.sNickName = is.read(this.sNickName, 1, false); - this.lPid = is.read(this.lPid, 2, false); - this.tNobleInfo = (NobleInfo) is.directRead(this.tNobleInfo, 3, false); - this.tGuardInfo = (GuardInfo) is.directRead(this.tGuardInfo, 4, false); - this.tWeekRankInfo = (WeekRankInfo) is.directRead(this.tWeekRankInfo, 5, false); - this.sLogoURL = is.read(this.sLogoURL, 6, false); - this.bFromNearby = is.read(this.bFromNearby, 7, false); - this.sLocation = is.read(this.sLocation, 8, false); - this.tDecorationInfo = (DecorationInfoRsp) is.directRead(this.tDecorationInfo, 9, false); - this.tWeekHeartStirRankInfo = (WeekRankInfo) is.directRead(this.tWeekHeartStirRankInfo, 10, false); - this.tWeekHeartBlockRankInfo = (WeekRankInfo) is.directRead(this.tWeekHeartBlockRankInfo, 11, false); - this.iMasterRank = is.read(this.iMasterRank, 12, false); - this.tACInfo = (ACEnterBanner) is.directRead(this.tACInfo, 13, false); - this.vCommEnterBanner = is.readArray(this.vCommEnterBanner, 14, false); - this.tRidePetInfo = (UserRidePetInfo) is.directRead(this.tRidePetInfo, 15, false); - } - - @Override - public String getBadgeName() { - // TODO - return null; - } - - @Override - public byte getBadgeLevel() { - // TODO - return 0; - } - - @Override - public String getUid() { - return Long.toString(lUid); - } - - @Override - public String getUsername() { - return sNickName; - } - - @Override - public String getUserAvatar() { - // TODO - return IEnterRoomMsg.super.getUserAvatar(); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_MsgPushReq; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/WebSocketCommand.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/WebSocketCommand.java deleted file mode 100644 index 6c71ae5b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/WebSocketCommand.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaMsg; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class WebSocketCommand extends BaseHuyaMsg { - - private int operation; - private byte[] vData; - private long lRequestId; - private String traceId = ""; - private int iEncryptType; - private long lTime; - private String sMD5 = ""; - - public WebSocketCommand(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.operation, 0); - os.write(this.vData, 1); - os.write(this.lRequestId, 2); - os.write(this.traceId, 3); - os.write(this.iEncryptType, 4); - os.write(this.lTime, 5); - os.write(this.sMD5, 6); - } - - @Override - public void readFrom(TarsInputStream is) { - this.operation = is.read(this.operation, 0, true); - this.vData = is.read(this.vData, 1, true); - this.lRequestId = is.read(this.lRequestId, 2, true); - this.traceId = is.read(this.traceId, 3, true); - this.iEncryptType = is.read(this.iEncryptType, 4, true); - this.lTime = is.read(this.lTime, 5, true); - this.sMD5 = is.read(this.sMD5, 6, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.getByCode(operation); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/WupRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/WupRsp.java deleted file mode 100644 index 443866c5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/WupRsp.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg; - -import lombok.NoArgsConstructor; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; - -/** - * @author mjz - * @date 2023/10/3 - */ -@NoArgsConstructor -public class WupRsp extends BaseWup { - - public WupRsp(byte[] vData) { - super.decode(vData); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmd_WupRsp; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/BaseHuyaCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/BaseHuyaCmdMsg.java deleted file mode 100644 index 2b5c1cff..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/BaseHuyaCmdMsg.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.base; - -import cn.hutool.core.util.NumberUtil; -import cn.hutool.core.util.StrUtil; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaCmdEnum; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public abstract class BaseHuyaCmdMsg extends TarsStructBase implements IHuyaCmdMsg { - - private long lUri; - - @Override - public String getCmd() { - return StrUtil.nullToEmpty(StrUtil.toStringOrNull(this.lUri)); - } - - @Override - public void setCmd(String cmd) { - this.lUri = NumberUtil.parseLong(cmd); - } - - @Override - public HuyaCmdEnum getCmdEnum() { - return HuyaCmdEnum.getByCode(this.lUri); - } - - @Override - public TarsStructBase newInit() { - return this; - } - - @Override - public String toString() { - try { - return BaseMsg.OBJECT_MAPPER.writeValueAsString(this); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/BaseHuyaMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/BaseHuyaMsg.java deleted file mode 100644 index b0dd169f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/BaseHuyaMsg.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.base; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.qq.tars.protocol.tars.TarsStructBase; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg; - -/** - * @author mjz - * @date 2023/10/2 - */ -public abstract class BaseHuyaMsg extends TarsStructBase implements IHuyaMsg { - - @Override - public TarsStructBase newInit() { - return this; - } - - @Override - public String toString() { - try { - return BaseMsg.OBJECT_MAPPER.writeValueAsString(this); - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/IHuyaCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/IHuyaCmdMsg.java deleted file mode 100644 index 41ab6e20..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/IHuyaCmdMsg.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.base; - -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaCmdEnum; - -/** - * @author mjz - * @date 2023/10/2 - */ -public interface IHuyaCmdMsg extends IHuyaMsg, ICmdMsg { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/IHuyaMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/IHuyaMsg.java deleted file mode 100644 index 0fc8aa0e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/base/IHuyaMsg.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.base; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; - -/** - * @author mjz - * @date 2023/8/26 - */ -public interface IHuyaMsg extends IMsg { - @JsonIgnore - HuyaOperationEnum getOperationEnum(); -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ACEnterBanner.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ACEnterBanner.java deleted file mode 100644 index e9076757..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ACEnterBanner.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ACEnterBanner extends TarsStructBase { - - private int iWeekHeartStirRank; - private int iWeekHeartBlockRank; - private int iMasterRank; - private int iACWeekRank; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iWeekHeartStirRank, 0); - os.write(this.iWeekHeartBlockRank, 1); - os.write(this.iMasterRank, 2); - os.write(this.iACWeekRank, 3); - } - - @Override - public void readFrom(TarsInputStream is) { - is.read(this.iWeekHeartStirRank, 0, false); - is.read(this.iWeekHeartBlockRank, 1, false); - is.read(this.iMasterRank, 2, false); - is.read(this.iACWeekRank, 3, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BadgeInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BadgeInfo.java deleted file mode 100644 index e9233b0b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BadgeInfo.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class BadgeInfo extends TarsStructBase { - - private long lUid; - private long lBadgeId; - private String sPresenterNickName = ""; - private String sBadgeName = ""; - private int iBadgeLevel; - private int iRank; - private int iScore; - private int iNextScore; - private int iQuotaUsed; - private int iQuota; - private long lQuotaTS; - private long lOpenTS; - private int iVFlag; - private String sVLogo = ""; - private PresenterChannelInfo tChannelInfo = new PresenterChannelInfo(); - private String sPresenterLogo = ""; - private long lVExpiredTS; - private int iBadgeType; - private FaithInfo tFaithInfo = new FaithInfo(); - private SuperFansInfo tSuperFansInfo = new SuperFansInfo(); - private int iBaseQuota; - private long lVConsumRank; - private int iCustomBadgeFlag; - private int iAgingDays; - private int iDayScore; - private CustomBadgeDynamicExternal tExternal = new CustomBadgeDynamicExternal(); - private int iExtinguished; - private int iExtinguishDays; - private int iBadgeCate; - private int iLiveFlag; - - @Override - public void writeTo(TarsOutputStream os) { - - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.lBadgeId = is.read(this.lBadgeId, 1, false); - this.sPresenterNickName = is.read(this.sPresenterNickName, 2, false); - this.sBadgeName = is.read(this.sBadgeName, 3, false); - this.iBadgeLevel = is.read(this.iBadgeLevel, 4, false); - this.iRank = is.read(this.iRank, 5, false); - this.iScore = is.read(this.iScore, 6, false); - this.iNextScore = is.read(this.iNextScore, 7, false); - this.iQuotaUsed = is.read(this.iQuotaUsed, 8, false); - this.iQuota = is.read(this.iQuota, 9, false); - this.lQuotaTS = is.read(this.lQuotaTS, 10, false); - this.lOpenTS = is.read(this.lOpenTS, 11, false); - this.iVFlag = is.read(this.iVFlag, 12, false); - this.sVLogo = is.read(this.sVLogo, 13, false); - this.tChannelInfo = (PresenterChannelInfo) is.directRead(this.tChannelInfo, 14, false); - this.sPresenterLogo = is.read(this.sPresenterLogo, 15, false); - this.lVExpiredTS = is.read(this.lVExpiredTS, 16, false); - this.iBadgeType = is.read(this.iBadgeType, 17, false); - this.tFaithInfo = (FaithInfo) is.directRead(this.tFaithInfo, 18, false); - this.tSuperFansInfo = (SuperFansInfo) is.directRead(this.tSuperFansInfo, 19, false); - this.iBaseQuota = is.read(this.iBaseQuota, 20, false); - this.lVConsumRank = is.read(this.lVConsumRank, 21, false); - this.iCustomBadgeFlag = is.read(this.iCustomBadgeFlag, 22, false); - this.iAgingDays = is.read(this.iAgingDays, 23, false); - this.iDayScore = is.read(this.iDayScore, 24, false); - this.tExternal = (CustomBadgeDynamicExternal) is.directRead(this.tExternal, 25, false); - this.iExtinguished = is.read(this.iExtinguished, 26, false); - this.iExtinguishDays = is.read(this.iExtinguishDays, 27, false); - this.iBadgeCate = is.read(this.iBadgeCate, 28, false); - this.iLiveFlag = is.read(this.iLiveFlag, 29, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BulletBorderGroundFormat.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BulletBorderGroundFormat.java deleted file mode 100644 index 61fabb2f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BulletBorderGroundFormat.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class BulletBorderGroundFormat extends TarsStructBase { - - private int iEnableUse; - private int iBorderThickness; - private int iBorderColour = -1; - private int iBorderDiaphaneity = 100; - private int iGroundColour = -1; - private int iGroundColourDiaphaneity = 100; - private String sAvatarDecorationUrl = ""; - private int iFontColor = -1; - private int iTerminalFlag = -1; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iEnableUse, 0); - os.write(this.iBorderThickness, 1); - os.write(this.iBorderColour, 2); - os.write(this.iBorderDiaphaneity, 3); - os.write(this.iGroundColour, 4); - os.write(this.iGroundColourDiaphaneity, 5); - os.write(this.sAvatarDecorationUrl, 6); - os.write(this.iFontColor, 7); - os.write(this.iTerminalFlag, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iEnableUse = is.read(this.iEnableUse, 0, false); - this.iBorderThickness = is.read(this.iBorderThickness, 1, false); - this.iBorderColour = is.read(this.iBorderColour, 2, false); - this.iBorderDiaphaneity = is.read(this.iBorderDiaphaneity, 3, false); - this.iGroundColour = is.read(this.iGroundColour, 4, false); - this.iGroundColourDiaphaneity = is.read(this.iGroundColourDiaphaneity, 5, false); - this.sAvatarDecorationUrl = is.read(this.sAvatarDecorationUrl, 6, false); - this.iFontColor = is.read(this.iFontColor, 7, false); - this.iTerminalFlag = is.read(this.iTerminalFlag, 8, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BulletFormat.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BulletFormat.java deleted file mode 100644 index 5f81da9f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/BulletFormat.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class BulletFormat extends TarsStructBase { - - private int iFontColor = -1; - private int iFontSize = 4; - private int iTextSpeed = 0; - private int iTransitionType = 1; - private int iPopupStyle = 0; - private BulletBorderGroundFormat tBorderGroundFormat = new BulletBorderGroundFormat(); - private List vGraduatedColor = CollUtil.newArrayList(0); - private int iAvatarFlag = 0; - private int iAvatarTerminalFlag = -1; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iFontColor, 0); - os.write(this.iFontSize, 1); - os.write(this.iTextSpeed, 2); - os.write(this.iTransitionType, 3); - os.write(this.iPopupStyle, 4); - os.write(this.tBorderGroundFormat, 5); - os.write(this.vGraduatedColor, 6); - os.write(this.iAvatarFlag, 7); - os.write(this.iAvatarTerminalFlag, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iFontColor = is.read(this.iFontColor, 0, false); - this.iFontSize = is.read(this.iFontSize, 1, false); - this.iTextSpeed = is.read(this.iTextSpeed, 2, false); - this.iTransitionType = is.read(this.iTransitionType, 3, false); - this.iPopupStyle = is.read(this.iPopupStyle, 4, false); - this.tBorderGroundFormat = (BulletBorderGroundFormat) is.directRead(this.tBorderGroundFormat, 5, false); - this.vGraduatedColor = is.readArray(this.vGraduatedColor, 6, false); - this.iAvatarFlag = is.read(this.iAvatarFlag, 7, false); - this.iAvatarTerminalFlag = is.read(this.iAvatarTerminalFlag, 8, false); - - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ChannelPair.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ChannelPair.java deleted file mode 100644 index 4bb796a8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ChannelPair.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ChannelPair extends TarsStructBase { - - private long lTid; - private long lSid; - private long lPid; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lTid, 0); - os.write(this.lSid, 1); - os.write(this.lPid, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lTid = is.read(this.lTid, 0, false); - this.lSid = is.read(this.lSid, 1, false); - this.lPid = is.read(this.lPid, 2, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/CommEnterBanner.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/CommEnterBanner.java deleted file mode 100644 index 900178d4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/CommEnterBanner.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class CommEnterBanner extends TarsStructBase { - - private int iBannerUri; - private int iViewType; - private byte[] vData; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iBannerUri, 0); - os.write(this.iViewType, 1); - os.write(this.vData, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iBannerUri = is.read(this.iBannerUri, 0, false); - this.iViewType = is.read(this.iViewType, 1, false); - this.vData = is.read(this.vData, 2, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ContentFormat.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ContentFormat.java deleted file mode 100644 index 594baf1c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ContentFormat.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ContentFormat extends TarsStructBase { - - private int iFontColor = -1; - private int iFontSize = 4; - private int iPopupStyle = 0; - private int iNickNameFontColor = -1; - private int iDarkFontColor = -1; - private int iDarkNickNameFontColor = -1; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iFontColor, 0); - os.write(this.iFontSize, 1); - os.write(this.iPopupStyle, 2); - os.write(this.iNickNameFontColor, 3); - os.write(this.iDarkFontColor, 4); - os.write(this.iDarkNickNameFontColor, 5); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iFontColor = is.read(this.iFontColor, 0, false); - this.iFontSize = is.read(this.iFontSize, 1, false); - this.iPopupStyle = is.read(this.iPopupStyle, 2, false); - this.iNickNameFontColor = is.read(this.iNickNameFontColor, 3, false); - this.iDarkFontColor = is.read(this.iDarkFontColor, 4, false); - this.iDarkNickNameFontColor = is.read(this.iDarkNickNameFontColor, 5, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/CustomBadgeDynamicExternal.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/CustomBadgeDynamicExternal.java deleted file mode 100644 index bb8d5aae..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/CustomBadgeDynamicExternal.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class CustomBadgeDynamicExternal extends TarsStructBase { - - private String sFloorExter = ""; - private int iFansIdentity; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sFloorExter, 0); - os.write(this.iFansIdentity, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sFloorExter = is.read(this.sFloorExter, 0, false); - this.iFansIdentity = is.read(this.iFansIdentity, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DIYBigGiftEffect.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DIYBigGiftEffect.java deleted file mode 100644 index b93da5ab..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DIYBigGiftEffect.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DIYBigGiftEffect extends TarsStructBase { - - private String sResourceUrl = ""; - private String sResourceAttr = ""; - private String sWebResourceUrl = ""; - private String sPCResourceUrl = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sResourceUrl, 0); - os.write(this.sResourceAttr, 1); - os.write(this.sWebResourceUrl, 2); - os.write(this.sPCResourceUrl, 3); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sResourceUrl = is.read(this.sResourceUrl, 0, false); - this.sResourceAttr = is.read(this.sResourceAttr, 1, false); - this.sWebResourceUrl = is.read(this.sWebResourceUrl, 2, false); - this.sPCResourceUrl = is.read(this.sPCResourceUrl, 3, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DecorationInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DecorationInfo.java deleted file mode 100644 index 747518db..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DecorationInfo.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DecorationInfo extends TarsStructBase { - - private int iAppId = 0; - private int iViewType = 0; - private byte[] vData; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iAppId, 0); - os.write(this.iViewType, 1); - os.write(this.vData, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iAppId = is.read(this.iAppId, 0, true); - this.iViewType = is.read(this.iViewType, 1, true); - this.vData = is.read(this.vData, 2, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DecorationInfoRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DecorationInfoRsp.java deleted file mode 100644 index 9c93cc42..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DecorationInfoRsp.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DecorationInfoRsp extends TarsStructBase { - - private List vDecorationPrefix = CollUtil.newArrayList(new DecorationInfo()); - private List vDecorationSuffix = CollUtil.newArrayList(new DecorationInfo()); - private ContentFormat tFormat = new ContentFormat(); - private BulletFormat tBulletFormat = new BulletFormat(); - private List vForwardChannels = CollUtil.newArrayList(new ChannelPair()); - private int iModifyMask; - private List vBulletPrefix = CollUtil.newArrayList(new DecorationInfo()); - private SenderInfo tUserInfo = new SenderInfo(); - private List vBulletSuffix = CollUtil.newArrayList(new DecorationInfo()); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.vDecorationPrefix, 0); - os.write(this.vDecorationSuffix, 1); - os.write(this.tFormat, 2); - os.write(this.tBulletFormat, 3); - os.write(this.vForwardChannels, 4); - os.write(this.iModifyMask, 5); - os.write(this.vBulletPrefix, 6); - os.write(this.tUserInfo, 7); - os.write(this.vBulletSuffix, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.vDecorationPrefix = is.readArray(this.vDecorationPrefix, 0, false); - this.vDecorationSuffix = is.readArray(this.vDecorationSuffix, 1, false); - this.tFormat = (ContentFormat) is.directRead(this.tFormat, 2, false); - this.tBulletFormat = (BulletFormat) is.directRead(this.tBulletFormat, 3, false); - this.vForwardChannels = is.readArray(this.vForwardChannels, 4, false); - this.iModifyMask = is.read(this.iModifyMask, 5, false); - this.vBulletPrefix = is.readArray(this.vBulletPrefix, 6, false); - this.tUserInfo = (SenderInfo) is.directRead(this.tUserInfo, 7, false); - this.vBulletSuffix = is.readArray(this.vBulletSuffix, 8, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DeviceInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DeviceInfo.java deleted file mode 100644 index 8e8d93b0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DeviceInfo.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DeviceInfo extends TarsStructBase { - - private String sIMEI = ""; - private String sAPN = ""; - private String sNetType = ""; - private String sDeviceId = ""; - private String sMId = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sIMEI, 0); - os.write(this.sAPN, 1); - os.write(this.sNetType, 2); - os.write(this.sDeviceId, 3); - os.write(this.sMId, 4); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sIMEI = is.read(this.sIMEI, 0, false); - this.sAPN = is.read(this.sAPN, 1, false); - this.sNetType = is.read(this.sNetType, 2, false); - this.sDeviceId = is.read(this.sDeviceId, 3, false); - this.sMId = is.read(this.sMId, 4, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DisplayInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DisplayInfo.java deleted file mode 100644 index 1a23b3f8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/DisplayInfo.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class DisplayInfo extends TarsStructBase { - - private int iMarqueeScopeMin = 0; - private int iMarqueeScopeMax = 0; - private int iCurrentVideoNum = 0; - private int iCurrentVideoMin = 0; - private int iCurrentVideoMax = 0; - private int iAllVideoNum = 0; - private int iAllVideoMin = 0; - private int iAllVideoMax = 0; - private int iCurrentScreenNum = 0; - private int iCurrentScreenMin = 0; - private int iCurrentScreenMax = 0; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iMarqueeScopeMin, 1); - os.write(this.iMarqueeScopeMax, 2); - os.write(this.iCurrentVideoNum, 3); - os.write(this.iCurrentVideoMin, 4); - os.write(this.iCurrentVideoMax, 5); - os.write(this.iAllVideoNum, 6); - os.write(this.iAllVideoMin, 7); - os.write(this.iAllVideoMax, 8); - os.write(this.iCurrentScreenNum, 9); - os.write(this.iCurrentScreenMin, 10); - os.write(this.iCurrentScreenMax, 11); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iMarqueeScopeMin = is.read(this.iMarqueeScopeMin, 1, true); - this.iMarqueeScopeMax = is.read(this.iMarqueeScopeMax, 2, true); - this.iCurrentVideoNum = is.read(this.iCurrentVideoNum, 3, true); - this.iCurrentVideoMin = is.read(this.iCurrentVideoMin, 4, true); - this.iCurrentVideoMax = is.read(this.iCurrentVideoMax, 5, true); - this.iAllVideoNum = is.read(this.iAllVideoNum, 6, true); - this.iAllVideoMin = is.read(this.iAllVideoMin, 7, true); - this.iAllVideoMax = is.read(this.iAllVideoMax, 8, true); - this.iCurrentScreenNum = is.read(this.iCurrentScreenNum, 9, true); - this.iCurrentScreenMin = is.read(this.iCurrentScreenMin, 10, true); - this.iCurrentScreenMax = is.read(this.iCurrentScreenMax, 11, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/FaithInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/FaithInfo.java deleted file mode 100644 index 1faa752e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/FaithInfo.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class FaithInfo extends TarsStructBase { - - private String sFaithName = ""; - private List vPresenter = CollUtil.newArrayList(new FaithPresenter()); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sFaithName, 0); - os.write(this.vPresenter, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sFaithName = is.read(this.sFaithName, 0, false); - this.vPresenter = is.readArray(this.vPresenter, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/FaithPresenter.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/FaithPresenter.java deleted file mode 100644 index ad78b3db..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/FaithPresenter.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class FaithPresenter extends TarsStructBase { - - private long lPid; - private String sLogo = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lPid, 0); - os.write(this.sLogo, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lPid = is.read(this.lPid, 0, false); - this.sLogo = is.read(this.sLogo, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/GuardInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/GuardInfo.java deleted file mode 100644 index badff469..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/GuardInfo.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GuardInfo extends TarsStructBase { - - private long lUid; - private long lPid; - private int iGuardLevel; - private long lEndTime; - private String sAttr = ""; - private String sIcon = ""; - private int iGuardType; - private long lStartTime; - private long lCommemorateDay; - private int iAccompanyDay; - private String sNewAttr = ""; - private String sEnterText = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.lPid, 1); - os.write(this.iGuardLevel, 2); - os.write(this.lEndTime, 3); - os.write(this.sAttr, 4); - os.write(this.sIcon, 5); - os.write(this.iGuardType, 6); - os.write(this.lStartTime, 7); - os.write(this.lCommemorateDay, 8); - os.write(this.iAccompanyDay, 9); - os.write(this.sNewAttr, 10); - os.write(this.sEnterText, 11); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.lPid = is.read(this.lPid, 1, false); - this.iGuardLevel = is.read(this.iGuardLevel, 2, false); - this.lEndTime = is.read(this.lEndTime, 3, false); - this.sAttr = is.read(this.sAttr, 4, false); - this.sIcon = is.read(this.sIcon, 5, false); - this.iGuardType = is.read(this.iGuardType, 6, false); - this.lStartTime = is.read(this.lStartTime, 7, false); - this.lCommemorateDay = is.read(this.lCommemorateDay, 8, false); - this.iAccompanyDay = is.read(this.iAccompanyDay, 9, false); - this.sNewAttr = is.read(this.sNewAttr, 10, false); - this.sEnterText = is.read(this.sEnterText, 11, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ItemEffectInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ItemEffectInfo.java deleted file mode 100644 index 4a4478ff..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/ItemEffectInfo.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class ItemEffectInfo extends TarsStructBase { - - private int iPriceLevel; - private int iStreamDuration; - private int iShowType; - private int iStreamId; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iPriceLevel, 0); - os.write(this.iStreamDuration, 1); - os.write(this.iShowType, 2); - os.write(this.iStreamId, 3); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iPriceLevel = is.read(this.iPriceLevel, 0, false); - this.iStreamDuration = is.read(this.iStreamDuration, 1, false); - this.iShowType = is.read(this.iShowType, 2, false); - this.iStreamId = is.read(this.iStreamId, 3, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveAppUAEx.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveAppUAEx.java deleted file mode 100644 index b7b9b839..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveAppUAEx.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LiveAppUAEx extends TarsStructBase { - - private String sIMEI = ""; - private String sAPN = ""; - private String sNetType = ""; - private String sDeviceId = ""; - private String sMId = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sIMEI, 1); - os.write(this.sAPN, 2); - os.write(this.sNetType, 3); - os.write(this.sDeviceId, 4); - os.write(this.sMId, 5); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sIMEI = is.read(this.sIMEI, 1, false); - this.sAPN = is.read(this.sAPN, 2, false); - this.sNetType = is.read(this.sNetType, 3, false); - this.sDeviceId = is.read(this.sDeviceId, 4, false); - this.sMId = is.read(this.sMId, 5, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveProxyValue.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveProxyValue.java deleted file mode 100644 index 619eb18a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveProxyValue.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LiveProxyValue extends TarsStructBase { - - private int eProxyType; - private List sProxy = CollUtil.newArrayList(""); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.eProxyType, 0); - os.write(this.sProxy, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.eProxyType = is.read(this.eProxyType, 0, false); - this.sProxy = is.readArray(this.sProxy, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveUserbase.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveUserbase.java deleted file mode 100644 index b6595a2d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/LiveUserbase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LiveUserbase extends TarsStructBase { - - private int eSource; - private int eType; - private LiveAppUAEx tUAEx = new LiveAppUAEx(); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.eSource, 0); - os.write(this.eType, 1); - os.write(this.tUAEx, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.eSource = is.read(this.eSource, 0, false); - this.eType = is.read(this.eType, 1, false); - this.tUAEx = (LiveAppUAEx) is.directRead(this.tUAEx, 2, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MessageContentExpand.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MessageContentExpand.java deleted file mode 100644 index 4afd6c58..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MessageContentExpand.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MessageContentExpand extends TarsStructBase { - - private int iAppId = 0; - private String sToast = ""; - private byte[] vData; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iAppId, 0); - os.write(this.sToast, 1); - os.write(this.vData, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iAppId = is.read(this.iAppId, 0, false); - this.sToast = is.read(this.sToast, 1, false); - this.vData = is.read(this.vData, 2, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MessageTagInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MessageTagInfo.java deleted file mode 100644 index bb8c0e72..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MessageTagInfo.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MessageTagInfo extends TarsStructBase { - - private int iAppId = 0; - private String sTag = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iAppId, 0); - os.write(this.sTag, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iAppId = is.read(this.iAppId, 0, false); - this.sTag = is.read(this.sTag, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MsgItem.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MsgItem.java deleted file mode 100644 index 22f85aa4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MsgItem.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.base.BaseHuyaCmdMsg; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MsgItem extends BaseHuyaCmdMsg { - - private byte[] sMsg; - private long lMsgId; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(super.getLUri(), 0); - os.write(this.sMsg, 1); - os.write(this.lMsgId, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - super.setLUri(is.read(super.getLUri(), 0, true)); - this.sMsg = is.read(this.sMsg, 1, true); - this.lMsgId = is.read(this.lMsgId, 2, true); - } - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmdS2C_MsgPushReq_V2; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MsgStatInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MsgStatInfo.java deleted file mode 100644 index d4d229ed..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/MsgStatInfo.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class MsgStatInfo extends TarsStructBase { - - private Map> mSignalPushUriCount = new HashMap<>(); - private Map> mP2pPushUriCount = new HashMap<>(); - private int iSupportAckMsgStat; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.mSignalPushUriCount, 0); - os.write(this.mP2pPushUriCount, 1); - os.write(this.iSupportAckMsgStat, 3); - } - - @Override - public void readFrom(TarsInputStream is) { - this.mSignalPushUriCount = is.readMap(this.mSignalPushUriCount, 0, false); - this.mP2pPushUriCount = is.readMap(this.mP2pPushUriCount, 1, false); - this.iSupportAckMsgStat = is.read(this.iSupportAckMsgStat, 3, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleInfo.java deleted file mode 100644 index db8adc1f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleInfo.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class NobleInfo extends TarsStructBase { - - private long lUid; - private long lPid; - private long lValidDate; - private String sNobleName = ""; - private int iNobleLevel; - private int iNoblePet; - private int iNobleStatus; - private int iNobleType; - private int iRemainDays; - private NobleLevelAttr tLevelAttr = new NobleLevelAttr(); - private NoblePetAttr tPetAttr = new NoblePetAttr(); - private long lOpenTime; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.lPid, 1); - os.write(this.lValidDate, 2); - os.write(this.sNobleName, 3); - os.write(this.iNobleLevel, 4); - os.write(this.iNoblePet, 5); - os.write(this.iNobleStatus, 6); - os.write(this.iNobleType, 7); - os.write(this.iRemainDays, 8); - os.write(this.tLevelAttr, 9); - os.write(this.tPetAttr, 10); - os.write(this.lOpenTime, 11); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.lPid = is.read(this.lPid, 1, false); - this.lValidDate = is.read(this.lValidDate, 2, false); - this.sNobleName = is.read(this.sNobleName, 3, false); - this.iNobleLevel = is.read(this.iNobleLevel, 4, false); - this.iNoblePet = is.read(this.iNoblePet, 5, false); - this.iNobleStatus = is.read(this.iNobleStatus, 6, false); - this.iNobleType = is.read(this.iNobleType, 7, false); - this.iRemainDays = is.read(this.iRemainDays, 8, false); - this.tLevelAttr = (NobleLevelAttr) is.directRead(this.tLevelAttr, 9, false); - this.tPetAttr = (NoblePetAttr) is.directRead(this.tPetAttr, 10, false); - this.lOpenTime = is.read(this.lOpenTime, 11, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleLevelAttr.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleLevelAttr.java deleted file mode 100644 index e9199afe..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleLevelAttr.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class NobleLevelAttr extends TarsStructBase { - - private int iAttrType; - private long lValidDate; - private int iAttrStatus; - private int iProgress; - private int iTask; - private int iRemainDays; - private String sReserve = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iAttrType, 0); - os.write(this.lValidDate, 1); - os.write(this.iAttrStatus, 2); - os.write(this.iProgress, 3); - os.write(this.iTask, 4); - os.write(this.iRemainDays, 5); - os.write(this.sReserve, 6); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iAttrType = is.read(this.iAttrType, 0, false); - this.lValidDate = is.read(this.lValidDate, 1, false); - this.iAttrStatus = is.read(this.iAttrStatus, 2, false); - this.iProgress = is.read(this.iProgress, 3, false); - this.iTask = is.read(this.iTask, 4, false); - this.iRemainDays = is.read(this.iRemainDays, 5, false); - this.sReserve = is.read(this.sReserve, 6, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleLevelInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleLevelInfo.java deleted file mode 100644 index 0555b658..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NobleLevelInfo.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class NobleLevelInfo extends TarsStructBase { - - private int iNobleLevel; - private int iAttrType; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iNobleLevel, 0); - os.write(this.iAttrType, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iNobleLevel = is.read(this.iNobleLevel, 0, true); - this.iAttrType = is.read(this.iAttrType, 1, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NoblePetAttr.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NoblePetAttr.java deleted file mode 100644 index a9d26187..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/NoblePetAttr.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class NoblePetAttr extends TarsStructBase { - - private int iPetId; - private String sPetName = ""; - private String sPetAction = ""; - private int iFrame; - private int iBeginTime; - private int iEndTime; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iPetId, 0); - os.write(this.sPetName, 1); - os.write(this.sPetAction, 2); - os.write(this.iFrame, 3); - os.write(this.iBeginTime, 4); - os.write(this.iEndTime, 5); - - } - - @Override - public void readFrom(TarsInputStream is) { - this.iPetId = is.read(this.iPetId, 0, false); - this.sPetName = is.read(this.sPetName, 1, false); - this.sPetAction = is.read(this.sPetAction, 2, false); - this.iFrame = is.read(this.iFrame, 3, false); - this.iBeginTime = is.read(this.iBeginTime, 4, false); - this.iEndTime = is.read(this.iEndTime, 5, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PresenterChannelInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PresenterChannelInfo.java deleted file mode 100644 index 0204bcab..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PresenterChannelInfo.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class PresenterChannelInfo extends TarsStructBase { - - private long lYYId; - private long lTid; - private long lSid; - private int iSourceType; - private int iScreenType; - private long lUid; - private int iGameId; - private int iRoomId; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lYYId, 0); - os.write(this.lTid, 1); - os.write(this.lSid, 3); - os.write(this.iSourceType, 4); - os.write(this.iScreenType, 5); - os.write(this.lUid, 6); - os.write(this.iGameId, 7); - os.write(this.iRoomId, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lYYId = is.read(this.lYYId, 0, false); - this.lTid = is.read(this.lTid, 1, false); - this.lSid = is.read(this.lSid, 3, false); - this.iSourceType = is.read(this.iSourceType, 4, false); - this.iScreenType = is.read(this.iScreenType, 5, false); - this.lUid = is.read(this.lUid, 6, false); - this.iGameId = is.read(this.iGameId, 7, false); - this.iRoomId = is.read(this.iRoomId, 8, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropView.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropView.java deleted file mode 100644 index d017b796..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropView.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class PropView extends TarsStructBase { - - private int id = 0; - private String name = ""; - private Map uids = new HashMap() {{ - put(-1L, (short) -1); - }}; - private String tips = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.id, 0); - os.write(this.name, 1); - os.write(this.uids, 2); - os.write(this.tips, 3); - } - - @Override - public void readFrom(TarsInputStream is) { - this.id = is.read(this.id, 0, true); - this.name = is.read(this.name, 1, true); - this.uids = is.readMap(this.uids, 2, true); - this.tips = is.read(this.tips, 3, true); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropsIdentity.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropsIdentity.java deleted file mode 100644 index ee1dba6a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropsIdentity.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class PropsIdentity extends TarsStructBase { - - private int iPropsIdType = 0; - private String sPropsPic18 = ""; - private String sPropsPic24 = ""; - private String sPropsPicGif = ""; - private String sPropsBannerResource = ""; - private String sPropsBannerSize = ""; - private String sPropsBannerMaxTime = ""; - private String sPropsChatBannerResource = ""; - private String sPropsChatBannerSize = ""; - private String sPropsChatBannerMaxTime = ""; - private int iPropsChatBannerPos = 0; - private int iPropsChatBannerIsCombo = 0; - private String sPropsRollContent = ""; - private int iPropsBannerAnimationstyle = 0; - private String sPropFaceu = ""; - private String sPropH5Resource = ""; - private String sPropsWeb = ""; - private int sWitch = 0; - private String sCornerMark = ""; - private int iPropViewId = 0; - private String sPropStreamerResource = ""; - private short iStreamerFrameRate = 0; - private String sPropsPic108 = ""; - private String sPcBannerResource = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iPropsIdType, 1); - os.write(this.sPropsPic18, 2); - os.write(this.sPropsPic24, 3); - os.write(this.sPropsPicGif, 4); - os.write(this.sPropsBannerResource, 5); - os.write(this.sPropsBannerSize, 6); - os.write(this.sPropsBannerMaxTime, 7); - os.write(this.sPropsChatBannerResource, 8); - os.write(this.sPropsChatBannerSize, 9); - os.write(this.sPropsChatBannerMaxTime, 10); - os.write(this.iPropsChatBannerPos, 11); - os.write(this.iPropsChatBannerIsCombo, 12); - os.write(this.sPropsRollContent, 13); - os.write(this.iPropsBannerAnimationstyle, 14); - os.write(this.sPropFaceu, 15); - os.write(this.sPropH5Resource, 16); - os.write(this.sPropsWeb, 17); - os.write(this.sWitch, 18); - os.write(this.sCornerMark, 19); - os.write(this.iPropViewId, 20); - os.write(this.sPropStreamerResource, 21); - os.write(this.iStreamerFrameRate, 22); - os.write(this.sPropsPic108, 23); - os.write(this.sPcBannerResource, 24); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iPropsIdType = is.read(this.iPropsIdType, 1, true); - this.sPropsPic18 = is.read(this.sPropsPic18, 2, true); - this.sPropsPic24 = is.read(this.sPropsPic24, 3, true); - this.sPropsPicGif = is.read(this.sPropsPicGif, 4, true); - this.sPropsBannerResource = is.read(this.sPropsBannerResource, 5, true); - this.sPropsBannerSize = is.read(this.sPropsBannerSize, 6, true); - this.sPropsBannerMaxTime = is.read(this.sPropsBannerMaxTime, 7, true); - this.sPropsChatBannerResource = is.read(this.sPropsChatBannerResource, 8, true); - this.sPropsChatBannerSize = is.read(this.sPropsChatBannerSize, 9, true); - this.sPropsChatBannerMaxTime = is.read(this.sPropsChatBannerMaxTime, 10, true); - this.iPropsChatBannerPos = is.read(this.iPropsChatBannerPos, 11, true); - this.iPropsChatBannerIsCombo = is.read(this.iPropsChatBannerIsCombo, 12, true); - this.sPropsRollContent = is.read(this.sPropsRollContent, 13, true); - this.iPropsBannerAnimationstyle = is.read(this.iPropsBannerAnimationstyle, 14, true); - this.sPropFaceu = is.read(this.sPropFaceu, 15, true); - this.sPropH5Resource = is.read(this.sPropH5Resource, 16, true); - this.sPropsWeb = is.read(this.sPropsWeb, 17, true); - this.sWitch = is.read(this.sWitch, 18, true); - this.sCornerMark = is.read(this.sCornerMark, 19, true); - this.iPropViewId = is.read(this.iPropViewId, 20, true); - this.sPropStreamerResource = is.read(this.sPropStreamerResource, 21, true); - this.iStreamerFrameRate = is.read(this.iStreamerFrameRate, 22, true); - this.sPropsPic108 = is.read(this.sPropsPic108, 23, true); - this.sPcBannerResource = is.read(this.sPcBannerResource, 24, true); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropsItem.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropsItem.java deleted file mode 100644 index 0c53ad40..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/PropsItem.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class PropsItem extends TarsStructBase { - - public static final PropsItem DEFAULT = new PropsItem() {{ - setSPropsName("未知礼物"); - setIPropsYb(-1); - }}; - - private int iPropsId = 0; - private String sPropsName = ""; - private int iPropsYb = 0; - private int iPropsGreenBean = 0; - private int iPropsWhiteBean = 0; - private int iPropsGoldenBean = 0; - private int iPropsRed = 0; - private int iPropsPopular = 0; - private int iPropsExpendNum = -1; - private int iPropsFansValue = -1; - private List vPropsNum = new ArrayList() {{ - add(-1); - }}; - private int iPropsMaxNum = 0; - private int iPropsBatterFlag = 0; - private List vPropsChannel = new ArrayList() {{ - add(-1); - }}; - private String sPropsToolTip = ""; - private List vPropsIdentity = new ArrayList() {{ - add(new PropsIdentity()); - }}; - private int iPropsWeights = 0; - private int iPropsLevel = 0; - private DisplayInfo tDisplayInfo = new DisplayInfo(); - private SpecialInfo tSpecialInfo = new SpecialInfo(); - private int iPropsGrade = 0; - private int iPropsGroupNum = 0; - private String sPropsCommBannerResource = ""; - private String sPropsOwnBannerResource = ""; - private int iPropsShowFlag = 0; - private int iTemplateType = 0; - private int iShelfStatus = 0; - private String sAndroidLogo = ""; - private String sIpadLogo = ""; - private String sIphoneLogo = ""; - private String sPropsCommBannerResourceEx = ""; - private String sPropsOwnBannerResourceEx = ""; - private List vPresenterUid = new ArrayList() {{ - add(-1L); - }}; - private List vPropView = new ArrayList() {{ - add(new PropView()); - }}; - private short iFaceUSwitch = 0; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iPropsId, 1); - os.write(this.sPropsName, 2); - os.write(this.iPropsYb, 3); - os.write(this.iPropsGreenBean, 4); - os.write(this.iPropsWhiteBean, 5); - os.write(this.iPropsGoldenBean, 6); - os.write(this.iPropsRed, 7); - os.write(this.iPropsPopular, 8); - os.write(this.iPropsExpendNum, 9); - os.write(this.iPropsFansValue, 10); - os.write(this.vPropsNum, 11); - os.write(this.iPropsMaxNum, 12); - os.write(this.iPropsBatterFlag, 13); - os.write(this.vPropsChannel, 14); - os.write(this.sPropsToolTip, 15); - os.write(this.vPropsIdentity, 16); - os.write(this.iPropsWeights, 17); - os.write(this.iPropsLevel, 18); - os.write(this.tDisplayInfo, 19); - os.write(this.tSpecialInfo, 20); - os.write(this.iPropsGrade, 21); - os.write(this.iPropsGroupNum, 22); - os.write(this.sPropsCommBannerResource, 23); - os.write(this.sPropsOwnBannerResource, 24); - os.write(this.iPropsShowFlag, 25); - os.write(this.iTemplateType, 26); - os.write(this.iShelfStatus, 27); - os.write(this.sAndroidLogo, 28); - os.write(this.sIpadLogo, 29); - os.write(this.sIphoneLogo, 30); - os.write(this.sPropsCommBannerResourceEx, 31); - os.write(this.sPropsOwnBannerResourceEx, 32); - os.write(this.vPresenterUid, 33); - os.write(this.vPropView, 34); - os.write(this.iFaceUSwitch, 35); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iPropsId = is.read(this.iPropsId, 1, true); - this.sPropsName = is.read(this.sPropsName, 2, true); - this.iPropsYb = is.read(this.iPropsYb, 3, true); - this.iPropsGreenBean = is.read(this.iPropsGreenBean, 4, true); - this.iPropsWhiteBean = is.read(this.iPropsWhiteBean, 5, true); - this.iPropsGoldenBean = is.read(this.iPropsGoldenBean, 6, true); - this.iPropsRed = is.read(this.iPropsRed, 7, true); - this.iPropsPopular = is.read(this.iPropsPopular, 8, true); - this.iPropsExpendNum = is.read(this.iPropsExpendNum, 9, true); - this.iPropsFansValue = is.read(this.iPropsFansValue, 10, true); - this.vPropsNum = is.readArray(this.vPropsNum, 11, true); - this.iPropsMaxNum = is.read(this.iPropsMaxNum, 12, true); - this.iPropsBatterFlag = is.read(this.iPropsBatterFlag, 13, true); - this.vPropsChannel = is.readArray(this.vPropsChannel, 14, true); - this.sPropsToolTip = is.read(this.sPropsToolTip, 15, true); - this.vPropsIdentity = is.readArray(this.vPropsIdentity, 16, true); - this.iPropsWeights = is.read(this.iPropsWeights, 17, true); - this.iPropsLevel = is.read(this.iPropsLevel, 18, true); - this.tDisplayInfo = (DisplayInfo) is.directRead(this.tDisplayInfo, 19, true); - this.tSpecialInfo = (SpecialInfo) is.directRead(this.tSpecialInfo, 20, true); - this.iPropsGrade = is.read(this.iPropsGrade, 21, true); - this.iPropsGroupNum = is.read(this.iPropsGroupNum, 22, true); - this.sPropsCommBannerResource = is.read(this.sPropsCommBannerResource, 23, true); - this.sPropsOwnBannerResource = is.read(this.sPropsOwnBannerResource, 24, true); - this.iPropsShowFlag = is.read(this.iPropsShowFlag, 25, true); - this.iTemplateType = is.read(this.iTemplateType, 26, true); - this.iShelfStatus = is.read(this.iShelfStatus, 27, true); - this.sAndroidLogo = is.read(this.sAndroidLogo, 28, true); - this.sIpadLogo = is.read(this.sIpadLogo, 29, true); - this.sIphoneLogo = is.read(this.sIphoneLogo, 30, true); - this.sPropsCommBannerResourceEx = is.read(this.sPropsCommBannerResourceEx, 31, true); - this.sPropsOwnBannerResourceEx = is.read(this.sPropsOwnBannerResourceEx, 32, true); - this.vPresenterUid = is.readArray(this.vPresenterUid, 33, true); - this.vPropView = is.readArray(this.vPropView, 34, true); - this.iFaceUSwitch = is.read(this.iFaceUSwitch, 35, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SendMessageFormat.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SendMessageFormat.java deleted file mode 100644 index a35a6863..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SendMessageFormat.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SendMessageFormat extends TarsStructBase { - - private int iSenceType; - private long lFormatId; - private long lSizeTemplateId; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iSenceType, 0); - os.write(this.lFormatId, 1); - os.write(this.lSizeTemplateId, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iSenceType = is.read(this.iSenceType, 0, false); - this.lFormatId = is.read(this.lFormatId, 1, false); - this.lSizeTemplateId = is.read(this.lSizeTemplateId, 2, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SenderInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SenderInfo.java deleted file mode 100644 index 79ef4a58..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SenderInfo.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SenderInfo extends TarsStructBase { - - private long lUid; - private long lImid; - private String sNickName = ""; - private int iGender; - private String sAvatarUrl; - private int iNobleLevel; - private NobleLevelInfo tNobleLevelInfo = new NobleLevelInfo(); - private String sGuid; - private String sHuYaUA; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.lImid, 1); - os.write(this.sNickName, 2); - os.write(this.iGender, 3); - os.write(this.sAvatarUrl, 4); - os.write(this.iNobleLevel, 5); - os.write(this.tNobleLevelInfo, 6); - os.write(this.sGuid, 7); - os.write(this.sHuYaUA, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, true); - this.lImid = is.read(this.lImid, 1, true); - this.sNickName = is.read(this.sNickName, 2, true); - this.iGender = is.read(this.iGender, 3, true); - this.sAvatarUrl = is.read(this.sAvatarUrl, 4, true); - this.iNobleLevel = is.read(this.iNobleLevel, 5, true); - this.tNobleLevelInfo = (NobleLevelInfo) is.directRead(this.tNobleLevelInfo, 6, true); - this.sGuid = is.read(this.sGuid, 7, true); - this.sHuYaUA = is.read(this.sHuYaUA, 8, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SpecialInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SpecialInfo.java deleted file mode 100644 index 055914c3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SpecialInfo.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SpecialInfo extends TarsStructBase { - - private int iFirstSingle = 0; - private int iFirstGroup = 0; - private String sFirstTips = ""; - private int iSecondSingle = 0; - private int iSecondGroup = 0; - private String sSecondTips = ""; - private int iThirdSingle = 0; - private int iThirdGroup = 0; - private String sThirdTips = ""; - private int iWorldSingle = 0; - private int iWorldGroup = 0; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.iFirstSingle, 1); - os.write(this.iFirstGroup, 2); - os.write(this.sFirstTips, 3); - os.write(this.iSecondSingle, 4); - os.write(this.iSecondGroup, 5); - os.write(this.sSecondTips, 6); - os.write(this.iThirdSingle, 7); - os.write(this.iThirdGroup, 8); - os.write(this.sThirdTips, 9); - os.write(this.iWorldSingle, 10); - os.write(this.iWorldGroup, 11); - } - - @Override - public void readFrom(TarsInputStream is) { - this.iFirstSingle = is.read(this.iFirstSingle, 1, true); - this.iFirstGroup = is.read(this.iFirstGroup, 2, true); - this.sFirstTips = is.read(this.sFirstTips, 3, true); - this.iSecondSingle = is.read(this.iSecondSingle, 4, true); - this.iSecondGroup = is.read(this.iSecondGroup, 5, true); - this.sSecondTips = is.read(this.sSecondTips, 6, true); - this.iThirdSingle = is.read(this.iThirdSingle, 7, true); - this.iThirdGroup = is.read(this.iThirdGroup, 8, true); - this.sThirdTips = is.read(this.sThirdTips, 9, true); - this.iWorldSingle = is.read(this.iWorldSingle, 10, true); - this.iWorldGroup = is.read(this.iWorldGroup, 11, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SuperFansInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SuperFansInfo.java deleted file mode 100644 index cd1bd7af..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/SuperFansInfo.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SuperFansInfo extends TarsStructBase { - - private long lSFExpiredTS; - private int iSFFlag; - private long lSFAnnualTS; - private int iSFVariety; - private long lOpenTS; - private long lMemoryDay; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lSFExpiredTS, 0); - os.write(this.iSFFlag, 1); - os.write(this.lSFAnnualTS, 2); - os.write(this.iSFVariety, 3); - os.write(this.lOpenTS, 4); - os.write(this.lMemoryDay, 5); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lSFExpiredTS = is.read(this.lSFExpiredTS, 0, false); - this.iSFFlag = is.read(this.iSFFlag, 1, false); - this.lSFAnnualTS = is.read(this.lSFAnnualTS, 2, false); - this.iSFVariety = is.read(this.iSFVariety, 3, false); - this.lOpenTS = is.read(this.lOpenTS, 4, false); - this.lMemoryDay = is.read(this.lMemoryDay, 5, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UidNickName.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UidNickName.java deleted file mode 100644 index 8f36cc1f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UidNickName.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UidNickName extends TarsStructBase { - - private long lUid = 0; - private String sNickName = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.sNickName, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, true); - this.sNickName = is.read(this.sNickName, 1, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserId.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserId.java deleted file mode 100644 index 56faee89..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserId.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UserId extends TarsStructBase { - - private long lUid; - private String sGuid = ""; - private String sToken = ""; - private String sHuYaUA = ""; - private String sCookie = ""; - private int iTokenType; - private String sDeviceInfo = ""; - - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.sGuid, 1); - os.write(this.sToken, 2); - os.write(this.sHuYaUA, 3); - os.write(this.sCookie, 4); - os.write(this.iTokenType, 5); - os.write(this.sDeviceInfo, 6); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, true); - this.sGuid = is.read(this.sGuid, 1, true); - this.sToken = is.read(this.sToken, 2, true); - this.sHuYaUA = is.read(this.sHuYaUA, 3, true); - this.sCookie = is.read(this.sCookie, 4, true); - this.iTokenType = is.read(this.iTokenType, 5, true); - this.sDeviceInfo = is.read(this.sDeviceInfo, 6, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserIdentityInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserIdentityInfo.java deleted file mode 100644 index 813943d9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserIdentityInfo.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/10 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UserIdentityInfo extends TarsStructBase { - - private List vDecorationPrefix = CollUtil.newArrayList(new DecorationInfo()); - private List vDecorationSuffix = CollUtil.newArrayList(new DecorationInfo()); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.vDecorationPrefix, 0); - os.write(this.vDecorationSuffix, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.vDecorationPrefix = is.readArray(this.vDecorationPrefix, 0, false); - this.vDecorationSuffix = is.readArray(this.vDecorationSuffix, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserRidePetInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserRidePetInfo.java deleted file mode 100644 index f74bb5a9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/UserRidePetInfo.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UserRidePetInfo extends TarsStructBase { - - private long lPetId; - private String sPetName = ""; - private String sPetAction = ""; - private int iPetFlag; - private int iWeight; - private int iRideFlag; - private long lBeginTs; - private long lEndTs; - private int iSourceType; - private int iPetType; - private Map mPetDetail = new HashMap<>(); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lPetId, 0); - os.write(this.sPetName, 1); - os.write(this.sPetAction, 2); - os.write(this.iPetFlag, 3); - os.write(this.iWeight, 4); - os.write(this.iRideFlag, 5); - os.write(this.lBeginTs, 6); - os.write(this.lEndTs, 7); - os.write(this.iSourceType, 8); - os.write(this.iPetType, 9); - os.write(this.mPetDetail, 10); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lPetId = is.read(this.lPetId, 0, false); - this.sPetName = is.read(this.sPetName, 1, false); - this.sPetAction = is.read(this.sPetAction, 2, false); - this.iPetFlag = is.read(this.iPetFlag, 3, false); - this.iWeight = is.read(this.iWeight, 4, false); - this.iRideFlag = is.read(this.iRideFlag, 5, false); - this.lBeginTs = is.read(this.lBeginTs, 6, false); - this.lEndTs = is.read(this.lEndTs, 7, false); - this.iSourceType = is.read(this.iSourceType, 8, false); - this.iPetType = is.read(this.iPetType, 9, false); - this.mPetDetail = is.readMap(this.mPetDetail, 10, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/WeekRankInfo.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/WeekRankInfo.java deleted file mode 100644 index 501273d6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/dto/WeekRankInfo.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.dto; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/12/27 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class WeekRankInfo extends TarsStructBase { - - private long lUid; - private int iRank; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.iRank, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.iRank = is.read(this.iRank, 1, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetLivingInfoReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetLivingInfoReq.java deleted file mode 100644 index 81a7b3cb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetLivingInfoReq.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.UserId; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GetLivingInfoReq extends TarsStructBase { - - private UserId tId = new UserId(); - private long lTopSid; - private long lSubSid; - private long lPresenterUid; - private String sTraceSource = ""; - private String sPassword = ""; - private long iRoomId; - private int iFreeFlowFlag; - private int iIpStack; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.tId, 0); - os.write(this.lTopSid, 1); - os.write(this.lSubSid, 2); - os.write(this.lPresenterUid, 3); - os.write(this.sTraceSource, 4); - os.write(this.sPassword, 5); - os.write(this.iRoomId, 6); - os.write(this.iFreeFlowFlag, 7); - os.write(this.iIpStack, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.tId = (UserId) is.directRead(this.tId, 0, false); - this.lTopSid = is.read(this.lTopSid, 1, false); - this.lSubSid = is.read(this.lSubSid, 2, false); - this.lPresenterUid = is.read(this.lPresenterUid, 3, false); - this.sTraceSource = is.read(this.sTraceSource, 4, false); - this.sPassword = is.read(this.sPassword, 5, false); - this.iRoomId = is.read(this.iRoomId, 6, false); - this.iFreeFlowFlag = is.read(this.iFreeFlowFlag, 7, false); - this.iIpStack = is.read(this.iIpStack, 8, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetPropsListReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetPropsListReq.java deleted file mode 100644 index e619dc3d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetPropsListReq.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.UserId; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GetPropsListReq extends TarsStructBase { - - private UserId tUserId = new UserId(); - private String sMd5 = ""; - private int iTemplateType; - private String sVersion = ""; - private int iAppId; - private long lPresenterUid; - private long lSid; - private long lSubSid; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.tUserId, 1); - os.write(this.sMd5, 2); - os.write(this.iTemplateType, 3); - os.write(this.sVersion, 4); - os.write(this.iAppId, 5); - os.write(this.lPresenterUid, 6); - os.write(this.lSid, 7); - os.write(this.lSubSid, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - is.read(this.tUserId, 1, true); - is.read(this.sMd5, 2, true); - is.read(this.iTemplateType, 3, true); - is.read(this.sVersion, 4, true); - is.read(this.iAppId, 5, true); - is.read(this.lPresenterUid, 6, true); - is.read(this.lSid, 7, true); - is.read(this.lSubSid, 8, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetPropsListRsp.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetPropsListRsp.java deleted file mode 100644 index afc55ed9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/GetPropsListRsp.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.PropsItem; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author mjz - * @date 2023/10/3 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class GetPropsListRsp extends TarsStructBase { - - private List vPropsItemList = new ArrayList() {{ - add(new PropsItem()); - }}; - private String sMd5 = ""; - private short iNewEffectSwitch = 0; - private short iMirrorRoomShowNum = 0; - private short iGameRoomShowNum = 0; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.vPropsItemList, 1); - os.write(this.sMd5, 2); - os.write(this.iNewEffectSwitch, 3); - os.write(this.iMirrorRoomShowNum, 4); - os.write(this.iGameRoomShowNum, 5); - } - - @Override - public void readFrom(TarsInputStream is) { - this.vPropsItemList = is.readArray(this.vPropsItemList, 1, true); - this.sMd5 = is.read(this.sMd5, 2, true); - this.iNewEffectSwitch = is.read(this.iNewEffectSwitch, 3, true); - this.iMirrorRoomShowNum = is.read(this.iMirrorRoomShowNum, 4, true); - this.iGameRoomShowNum = is.read(this.iGameRoomShowNum, 5, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/LaunchReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/LaunchReq.java deleted file mode 100644 index eaad9830..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/LaunchReq.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.DeviceInfo; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LaunchReq extends TarsStructBase { - - private long lUid; - private String sGuid = ""; - private String sUA = ""; - private String sAppSrc = ""; - private DeviceInfo tDeviceInfo = new DeviceInfo(); - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.sGuid, 1); - os.write(this.sUA, 2); - os.write(this.sAppSrc, 3); - os.write(this.tDeviceInfo, 4); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, false); - this.sGuid = is.read(this.sGuid, 1, false); - this.sUA = is.read(this.sUA, 2, false); - this.sAppSrc = is.read(this.sAppSrc, 3, false); - this.tDeviceInfo = (DeviceInfo) is.directRead(this.tDeviceInfo, 4, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/LiveLaunchReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/LiveLaunchReq.java deleted file mode 100644 index 1c4ccd89..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/LiveLaunchReq.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.LiveUserbase; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.UserId; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class LiveLaunchReq extends TarsStructBase { - - private UserId tId = new UserId(); - private LiveUserbase tLiveUB = new LiveUserbase(); - private boolean bSupportDomain; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.tId, 0); - os.write(this.tLiveUB, 1); - os.write(this.bSupportDomain, 2); - } - - @Override - public void readFrom(TarsInputStream is) { - this.tId = (UserId) is.directRead(this.tId, 0, false); - this.tLiveUB = (LiveUserbase) is.directRead(this.tLiveUB, 1, false); - this.bSupportDomain = is.read(this.bSupportDomain, 2, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/RegisterGroupReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/RegisterGroupReq.java deleted file mode 100644 index bcb5b24f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/RegisterGroupReq.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class RegisterGroupReq extends TarsStructBase { - - private List vGroupId = CollUtil.newArrayList(""); - private String sToken = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.vGroupId, 0); - os.write(this.sToken, 1); - } - - @Override - public void readFrom(TarsInputStream is) { - this.vGroupId = is.readArray(this.vGroupId, 0, true); - this.sToken = is.read(this.sToken, 1, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/SendMessageReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/SendMessageReq.java deleted file mode 100644 index d21ebbd3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/SendMessageReq.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import cn.hutool.core.collection.CollUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.*; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class SendMessageReq extends TarsStructBase { - - private UserId tUserId = new UserId(); - private long lTid; - private long lSid; - private String sContent = ""; - private int iShowMode; - private ContentFormat tFormat = new ContentFormat(); - private BulletFormat tBulletFormat = new BulletFormat(); - private List vAtSomeone; - private long lPid; - private List vTagInfo = CollUtil.newArrayList(new MessageTagInfo()); - private SendMessageFormat tSenceFormat = new SendMessageFormat(); - private int iMessageMode; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.tUserId, 0); - os.write(this.lTid, 1); - os.write(this.lSid, 2); - os.write(this.sContent, 3); - os.write(this.iShowMode, 4); - os.write(this.tFormat, 5); - os.write(this.tBulletFormat, 6); - os.write(this.vAtSomeone, 7); - os.write(this.lPid, 8); - os.write(this.vTagInfo, 9); - os.write(this.tSenceFormat, 10); - os.write(this.iMessageMode, 11); - - } - - @Override - public void readFrom(TarsInputStream is) { - this.tUserId = (UserId) is.directRead(this.tUserId, 0, false); - this.lTid = is.read(this.lTid, 1, false); - this.lSid = is.read(this.lSid, 2, false); - this.sContent = is.read(this.sContent, 3, false); - this.iShowMode = is.read(this.iShowMode, 4, false); - this.tFormat = (ContentFormat) is.directRead(this.tFormat, 5, false); - this.tBulletFormat = (BulletFormat) is.directRead(this.tBulletFormat, 6, false); - this.vAtSomeone = is.readArray(this.vAtSomeone, 7, false); - this.lPid = is.read(this.lPid, 8, false); - this.vTagInfo = is.readArray(this.vTagInfo, 9, false); - this.tSenceFormat = (SendMessageFormat) is.directRead(this.tSenceFormat, 10, false); - this.iMessageMode = is.read(this.iMessageMode, 11, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/UpdateUserInfoReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/UpdateUserInfoReq.java deleted file mode 100644 index 0a621f93..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/UpdateUserInfoReq.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.MsgStatInfo; - -import java.util.HashMap; -import java.util.Map; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UpdateUserInfoReq extends TarsStructBase { - - private String sAppSrc = ""; - private String sGuid = ""; - private int iReportMsgIdRatio; - private int iSupportAck; - private MsgStatInfo tWSMsgStatInfo = new MsgStatInfo(); - private Map mCustomHeader = new HashMap<>(); - private int iMsgDegradeLevel; - - public UpdateUserInfoReq(TarsInputStream is) { - this.readFrom(is); - } - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.sAppSrc, 0); - os.write(this.sGuid, 1); - os.write(this.iReportMsgIdRatio, 2); - os.write(this.iSupportAck, 3); - os.write(this.tWSMsgStatInfo, 6); - os.write(this.mCustomHeader, 7); - os.write(this.iMsgDegradeLevel, 8); - } - - @Override - public void readFrom(TarsInputStream is) { - this.sAppSrc = is.read(this.sAppSrc, 0, true); - this.sGuid = is.read(this.sGuid, 1, true); - this.iReportMsgIdRatio = is.read(this.iReportMsgIdRatio, 2, true); - this.iSupportAck = is.read(this.iSupportAck, 3, true); - this.tWSMsgStatInfo = (MsgStatInfo) is.directRead(this.tWSMsgStatInfo, 6, true); - this.mCustomHeader = is.readStringMap( 7, true); - this.iMsgDegradeLevel = is.read(this.iMsgDegradeLevel, 8, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/UserHeartBeatReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/UserHeartBeatReq.java deleted file mode 100644 index a0293665..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/UserHeartBeatReq.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.UserId; - -/** - * @author mjz - * @date 2023/10/2 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class UserHeartBeatReq extends TarsStructBase { - - private UserId tId = new UserId(); - private long lTid; - private long lSid; - private long lPid; - private boolean bWatchVideo; - private int eLineType; - private int iFps; - private int iAttendee; - private int iBandwidth; - private int iLastHeartElapseTime; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.tId, 0); - os.write(this.lTid, 1); - os.write(this.lSid, 2); - os.write(this.lPid, 4); - os.write(this.bWatchVideo, 5); - os.write(this.eLineType, 6); - os.write(this.iFps, 7); - os.write(this.iAttendee, 8); - os.write(this.iBandwidth, 9); - os.write(this.iLastHeartElapseTime, 10); - - } - - @Override - public void readFrom(TarsInputStream is) { - this.tId = (UserId) is.directRead(this.tId, 0, false); - this.lTid = is.read(this.lTid, 1, false); - this.lSid = is.read(this.lSid, 2, false); - this.lPid = is.read(this.lPid, 4, false); - this.bWatchVideo = is.read(this.bWatchVideo, 5, false); - this.eLineType = is.read(this.eLineType, 6, false); - this.iFps = is.read(this.iFps, 7, false); - this.iAttendee = is.read(this.iAttendee, 8, false); - this.iBandwidth = is.read(this.iBandwidth, 9, false); - this.iLastHeartElapseTime = is.read(this.iLastHeartElapseTime, 10, false); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/VerifyCookieReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/VerifyCookieReq.java deleted file mode 100644 index cea49ccd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/VerifyCookieReq.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsOutputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; - -/** - * @author mjz - * @date 2023/10/5 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class VerifyCookieReq extends TarsStructBase { - - private long lUid; - private String sUA = ""; - private String sCookie = ""; - private String sGuid = ""; - private int bAutoRegisterUid; - private String sAppSrc = ""; - - @Override - public void writeTo(TarsOutputStream os) { - os.write(this.lUid, 0); - os.write(this.sUA, 1); - os.write(this.sCookie, 2); - os.write(this.sGuid, 3); - os.write(this.bAutoRegisterUid, 4); - os.write(this.sAppSrc, 5); - } - - @Override - public void readFrom(TarsInputStream is) { - this.lUid = is.read(this.lUid, 0, true); - this.sUA = is.read(this.sUA, 1, true); - this.sCookie = is.read(this.sCookie, 2, true); - this.sGuid = is.read(this.sGuid, 3, true); - this.bAutoRegisterUid = is.read(this.bAutoRegisterUid, 4, true); - this.sAppSrc = is.read(this.sAppSrc, 5, true); - } - - @Override - public TarsStructBase newInit() { - return this; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/WupReq.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/WupReq.java deleted file mode 100644 index 90fe256f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/msg/req/WupReq.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.msg.req; - -import lombok.NoArgsConstructor; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.BaseWup; - -/** - * @author mjz - * @date 2023/10/3 - */ -@NoArgsConstructor -public class WupReq extends BaseWup { - - @Override - public HuyaOperationEnum getOperationEnum() { - return HuyaOperationEnum.EWSCmd_WupReq; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/frame/factory/HuyaWebSocketFrameFactory.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/frame/factory/HuyaWebSocketFrameFactory.java deleted file mode 100644 index 2c21b346..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/frame/factory/HuyaWebSocketFrameFactory.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.netty.frame.factory; - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.NumberUtil; -import cn.hutool.core.util.StrUtil; -import com.fasterxml.jackson.databind.JsonNode; -import io.netty.buffer.Unpooled; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatCookieUtil; -import tech.ordinaryroad.live.chat.client.huya.api.HuyaApis; -import tech.ordinaryroad.live.chat.client.huya.config.HuyaLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaClientTemplateTypeEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaLiveSource; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaWupFunctionEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.WebSocketCommand; -import tech.ordinaryroad.live.chat.client.huya.msg.req.*; -import tech.ordinaryroad.live.chat.client.huya.util.HuyaCodecUtil; - -import java.util.concurrent.ConcurrentHashMap; - -/** - * @author mjz - * @date 2023/1/5 - */ -public class HuyaWebSocketFrameFactory { - - private static final ConcurrentHashMap CACHE = new ConcurrentHashMap<>(); - public static final String KEY_COOKIE_GUID = "guid"; - public static final String KEY_COOKIE_YYUID = "yyuid"; - - /** - * 浏览器地址中的房间id,支持短id - */ - private final Object roomId; - private final JsonNode roomInfo; - private volatile static byte[] heartbeatMsg; - private volatile static byte[] giftListReqMsg; - - public HuyaWebSocketFrameFactory(Object roomId) { - this.roomId = roomId; - this.roomInfo = HuyaApis.roomInit(roomId); - } - - public synchronized static HuyaWebSocketFrameFactory getInstance(Object roomId) { - return CACHE.computeIfAbsent(roomId, aLong -> new HuyaWebSocketFrameFactory(roomId)); - } - - /** - * 创建弹幕包 - * - * @param msg 弹幕内容 - * @param ver {@link HuyaLiveChatClientConfig#getVer()} - * @param cookie {@link HuyaLiveChatClientConfig#getCookie()} ()} - * @return BinaryWebSocketFrame - */ - public BinaryWebSocketFrame createSendMessageReq(String msg, String ver, String cookie) { - String yyuid = OrLiveChatCookieUtil.getCookieByName(cookie, KEY_COOKIE_YYUID, () -> { - throw new BaseException("cookie中缺少参数" + KEY_COOKIE_YYUID); - }); - String guid = OrLiveChatCookieUtil.getCookieByName(cookie, KEY_COOKIE_GUID, () -> { - throw new BaseException("cookie中缺少参数" + KEY_COOKIE_GUID); - }); - SendMessageReq sendMessageReq = new SendMessageReq(); - sendMessageReq.getTUserId().setLUid(NumberUtil.parseLong(yyuid)); - sendMessageReq.getTUserId().setSGuid(guid); - sendMessageReq.getTUserId().setSHuYaUA("webh5&" + ver + "&websocket"); - sendMessageReq.getTUserId().setSCookie(cookie); - sendMessageReq.getTUserId().setSDeviceInfo("chrome"); - sendMessageReq.setSContent(msg); - sendMessageReq.setLPid(roomInfo.get("lChannelId").asLong()); - - WupReq wupReq = new WupReq(); - wupReq.getTarsServantRequest().setServantName("liveui"); - wupReq.getTarsServantRequest().setFunctionName("sendMessage"); - wupReq.getUniAttribute().put("tReq", sendMessageReq); - - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmd_WupReq.getCode()); - webSocketCommand.setVData(wupReq.encode()); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - /** - * 创建认证包 - * 1. doLaunch - * 2. registerGroup - * 3. updateUserInfo - * - * @return AuthWebSocketFrame - */ - public BinaryWebSocketFrame createAuth(String ver, String cookie) { - // sFuncName - // getLivingInfo, huyaliveui - // getPresenterLiveScheduleInfo, presenterui - // doLaunch, liveui - // chat:1724691, live:1724691 - // getWebdbUserInfo, liveui - // OnUserHeartBeat, onlineuif -// try { -// UserInfo wsUserInfo = new UserInfo(); -// wsUserInfo.setLUid(roomInfo.get("lYyid").asLong()); -// wsUserInfo.setBAnonymous(roomInfo.get("lYyid").asLong() == 0); -// wsUserInfo.setLTid(roomInfo.get("lChannelId").asLong()); -// wsUserInfo.setLSid(roomInfo.get("lSubChannelId").asLong()); -// wsUserInfo.setLGroupId(roomInfo.get("lYyid").asLong()); -// wsUserInfo.setLGroupType(3); -// wsUserInfo.setSAppId(""); -// wsUserInfo.setSUA("webh5&%s&websocket".formatted(HuyaLiveChatClientConfig.VER)); -// -// WebSocketCommand webSocketCommand = new WebSocketCommand(); -// webSocketCommand.setOperation(HuyaOperationEnum.EWSCmd_RegisterReq.getCode()); -// webSocketCommand.setVData(wsUserInfo.toByteArray()); -// return new AuthWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); -// } catch (Exception e) { -// throw new BaseException("认证包创建失败,请检查房间号是否正确。roomId: %d, msg: %s".formatted(roomId, e.getMessage())); -// } - return createLiveLaunchReq(ver, cookie); - } - - public BinaryWebSocketFrame createGetLivingInfoReq(String ver, String cookie) { - GetLivingInfoReq getLivingInfoReq = new GetLivingInfoReq(); -// getLivingInfoReq.getTId().setSGuid("0a7dca72a3ce1b654001dd2ade2ae857"); - getLivingInfoReq.getTId().setSHuYaUA("webh5&" + ver + "&websocket"); - getLivingInfoReq.getTId().setSDeviceInfo("chrome"); - getLivingInfoReq.getTId().setSCookie(StrUtil.nullToEmpty(cookie)); -// getLivingInfoReq.getTId().setSCookie("vplayer_sbanner_1724691_1724691=1; SoundValue=0.50; alphaValue=0.80; game_did=R24J2g0mBzvdXJf7a9nheSl3zIci2BOp0-t; isInLiveRoom=true; guid=0a7dca72a3ce1b654001dd2ade2ae857; __yamid_tt1=0.8029935065011269; __yamid_new=CA75D4CD5C100001165B82B52140C900; guid=0a7dca72a3ce1b654001dd2ade2ae857; udb_guiddata=af5dbdbf76254a6e8a0a293ccae9b688; udb_deviceid=w_761623483861815296; udb_passdata=3; __yasmid=0.8029935065011269; _yasids=__rootsid%3DCA767045C1100001EC5A145C1E90FE00; Hm_lvt_51700b6c722f5bb4cf39906a596ea41f=1696473760,1696476745,1696483565,1696484212; Hm_lpvt_51700b6c722f5bb4cf39906a596ea41f=1696484212; huya_ua=webh5&0.0.1&activity; _rep_cnt=2; sdid=0UnHUgv0/qmfD4KAKlwzhqX98QrnPCcck6fN494iawS5Kmymgreu89o7gYta/QvQsBDeSeSRp4/grQ5fEuFAYrL59coAKuxuukiwgTLjfjEDWVkn9LtfFJw/Qo4kgKr8OZHDqNnuwg612sGyflFn1dkUeZYTToCzzl4GCHq7MUDahxGuPR8mUddfImFtjccs1; huya_flash_rep_cnt=74; huya_web_rep_cnt=125; rep_cnt=44"); - getLivingInfoReq.setLPresenterUid(roomInfo.get("lChannelId").asLong()); - - WupReq wupReq = new WupReq(); - wupReq.getTarsServantRequest().setServantName("huyaliveui"); - wupReq.getTarsServantRequest().setFunctionName("getLivingInfo"); - wupReq.getUniAttribute().put("tReq", getLivingInfoReq); - - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmd_WupReq.getCode()); - webSocketCommand.setVData(wupReq.encode()); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - public BinaryWebSocketFrame createLiveLaunchReq(String ver, String cookie) { - LiveLaunchReq liveLaunchReq = new LiveLaunchReq(); - liveLaunchReq.setBSupportDomain(true); -// liveLaunchReq.getTId().setSGuid(UUID.fastUUID().toString(true)); - liveLaunchReq.getTId().setSHuYaUA("webh5&" + ver + "&websocket"); - liveLaunchReq.getTId().setSDeviceInfo("chrome"); - liveLaunchReq.getTId().setSCookie(StrUtil.nullToEmpty(cookie)); - liveLaunchReq.getTLiveUB().setESource(HuyaLiveSource.WEB_HUYA.getCode()); - - WupReq wupReq = new WupReq(); - wupReq.getTarsServantRequest().setServantName("liveui"); - wupReq.getTarsServantRequest().setFunctionName("doLaunch"); - wupReq.getUniAttribute().put("tReq", liveLaunchReq); - - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmd_WupReq.getCode()); - webSocketCommand.setVData(wupReq.encode()); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - public BinaryWebSocketFrame createRegisterGroupReq() { - String lYyid = roomInfo.get("lChannelId").asText(); - - RegisterGroupReq registerGroupReq = new RegisterGroupReq(); - registerGroupReq.setVGroupId(CollUtil.newArrayList("live:" + lYyid, "chat:" + lYyid)); - - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmdC2S_RegisterGroupReq.getCode()); - webSocketCommand.setVData(registerGroupReq.toByteArray()); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - public BinaryWebSocketFrame createUpdateUserInfoReq() { - UpdateUserInfoReq updateUserInfoReq = new UpdateUserInfoReq(); - updateUserInfoReq.setSAppSrc("HUYA&ZH&2052"); - updateUserInfoReq.getTWSMsgStatInfo().setISupportAckMsgStat(1); - - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmdC2S_UpdateUserInfoReq.getCode()); - webSocketCommand.setVData(updateUserInfoReq.toByteArray()); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - /** - * 创建获取礼物列表请求包 - * - * @return BinaryWebSocketFrame - */ - public BinaryWebSocketFrame createGiftListReq(String ver) { - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmd_WupReq.getCode()); - webSocketCommand.setVData(this.getGiftListReqMsg(ver)); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - public BinaryWebSocketFrame createHeartbeat(String ver, String cookie) { - WebSocketCommand webSocketCommand = new WebSocketCommand(); - webSocketCommand.setOperation(HuyaOperationEnum.EWSCmdC2S_HeartBeatReq.getCode()); - webSocketCommand.setVData(this.getHeartbeatMsg(ver, cookie)); - return new BinaryWebSocketFrame(Unpooled.wrappedBuffer(webSocketCommand.toByteArray())); - } - - /** - * 心跳包单例模式 - */ - public byte[] getHeartbeatMsg(String ver, String cookie) { - if (heartbeatMsg == null) { - synchronized (HuyaWebSocketFrameFactory.this) { - if (heartbeatMsg == null) { - UserHeartBeatReq userHeartBeatReq = new UserHeartBeatReq(); -// userHeartBeatReq.getTId().setSGuid(""); - userHeartBeatReq.getTId().setSHuYaUA("webh5&" + ver + "&websocket"); - userHeartBeatReq.getTId().setSDeviceInfo("chrome"); - userHeartBeatReq.getTId().setSCookie(StrUtil.nullToEmpty(cookie)); -// userHeartBeatReq.setLSid(roomInfo.get("lSubChannelId").asLong()); - userHeartBeatReq.setLPid(roomInfo.get("lChannelId").asLong()); -// userHeartBeatReq.setELineType(HuyaStreamLineTypeEnum.STREAM_LINE_WS.getCode()); - userHeartBeatReq.setELineType(-1); - - heartbeatMsg = HuyaCodecUtil.encode("onlineui", HuyaWupFunctionEnum.OnUserHeartBeat, userHeartBeatReq); - } - } - } - return heartbeatMsg; - } - - /** - * 礼物列表请求包单例模式 - */ - public byte[] getGiftListReqMsg(String ver) { - if (giftListReqMsg == null) { - synchronized (HuyaWebSocketFrameFactory.this) { - if (giftListReqMsg == null) { - GetPropsListReq getPropsListReq = new GetPropsListReq(); - getPropsListReq.getTUserId().setLUid(roomInfo.get("lYyid").asLong()); - getPropsListReq.getTUserId().setSHuYaUA("webh5&" + ver + "&websocket"); - getPropsListReq.setITemplateType(HuyaClientTemplateTypeEnum.TPL_MIRROR.getCode()); - - giftListReqMsg = HuyaCodecUtil.encode("PropsUIServer", HuyaWupFunctionEnum.getPropsList, getPropsListReq); - } - } - } - return giftListReqMsg; - } - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/handler/HuyaBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/handler/HuyaBinaryFrameHandler.java deleted file mode 100644 index 81a4f436..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/handler/HuyaBinaryFrameHandler.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.netty.handler; - -import com.qq.tars.protocol.tars.TarsInputStream; -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.huya.api.HuyaApis; -import tech.ordinaryroad.live.chat.client.huya.client.HuyaLiveChatClient; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaCmdEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaWupFunctionEnum; -import tech.ordinaryroad.live.chat.client.huya.listener.IHuyaMsgListener; -import tech.ordinaryroad.live.chat.client.huya.msg.*; -import tech.ordinaryroad.live.chat.client.huya.msg.base.IHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.MsgItem; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.PropsItem; -import tech.ordinaryroad.live.chat.client.huya.msg.req.GetPropsListRsp; -import tech.ordinaryroad.live.chat.client.huya.netty.frame.factory.HuyaWebSocketFrameFactory; -import tech.ordinaryroad.live.chat.client.huya.util.HuyaCodecUtil; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientBinaryFrameHandler; - -import java.util.List; - - -/** - * 消息处理器 - * - * @author mjz - * @date 2023/9/5 - */ -@Slf4j -@ChannelHandler.Sharable -public class HuyaBinaryFrameHandler extends BaseNettyClientBinaryFrameHandler { - - /** - * 以ClientConfig为主 - */ - private final String ver; - private ChannelHandlerContext channelHandlerContext; - - public HuyaBinaryFrameHandler(List iHuyaMsgListeners, HuyaLiveChatClient client, long roomId) { - super(iHuyaMsgListeners, client, roomId); - this.ver = client.getConfig().getVer(); - } - - public HuyaBinaryFrameHandler(List iHuyaMsgListeners, HuyaLiveChatClient client) { - super(iHuyaMsgListeners, client); - this.ver = client.getConfig().getVer(); - } - - public HuyaBinaryFrameHandler(List iHuyaMsgListeners, long roomId, String ver) { - super(iHuyaMsgListeners, roomId); - this.ver = ver; - } - - @Override - public void handlerAdded(ChannelHandlerContext ctx) throws Exception { - super.handlerAdded(ctx); - channelHandlerContext = ctx; - } - - @Override - public void handlerRemoved(ChannelHandlerContext ctx) throws Exception { - super.handlerRemoved(ctx); - channelHandlerContext = null; - } - - @Override - public void onMsg(IMsg msg) { - IHuyaMsg iHuyaMsg = (IHuyaMsg) msg; - HuyaOperationEnum operationEnum = iHuyaMsg.getOperationEnum(); - if (operationEnum == HuyaOperationEnum.EWSCmdS2C_RegisterGroupRsp) { -// channelHandlerContext.writeAndFlush(HuyaWebSocketFrameFactory.getInstance(getRoomId()).createUpdateUserInfoReq()); - // 获取礼物列表 -// if (channelHandlerContext == null) { -// log.error("channelHandlerContext is null, cannot get gift list"); -// return; -// } -// if (log.isDebugEnabled()) { -// log.debug("获取礼物列表"); -// } - channelHandlerContext.writeAndFlush(HuyaWebSocketFrameFactory.getInstance(getRoomId()).createGiftListReq(getVer())); - } else if (operationEnum == HuyaOperationEnum.EWSCmd_WupRsp) { - WupRsp wupRsp = (WupRsp) msg; - String functionName = wupRsp.getTarsServantRequest().getFunctionName(); - HuyaWupFunctionEnum wupFunctionEnum = HuyaWupFunctionEnum.getByName(functionName); - if (wupFunctionEnum == null) { - if (log.isWarnEnabled()) { - log.warn("未知 function {}", functionName); - } - return; - } - - switch (wupFunctionEnum) { - case doLaunch: { -// LiveLaunchRsp liveLaunchRsp = new LiveLaunchRsp(); -// liveLaunchRsp = wupRsp.getUniAttribute().getByClass("tRsp", liveLaunchRsp); - channelHandlerContext.writeAndFlush(HuyaWebSocketFrameFactory.getInstance(getRoomId()).createRegisterGroupReq()); - break; - } - case getPropsList: { - GetPropsListRsp getPropsListRsp = new GetPropsListRsp(); - getPropsListRsp = wupRsp.getUniAttribute().getByClass("tRsp", getPropsListRsp); - for (PropsItem propsItem : getPropsListRsp.getVPropsItemList()) { - HuyaApis.GIFT_ITEMS.put(propsItem.getIPropsId(), propsItem); - } - break; - } - default: { - if (log.isDebugEnabled()) { - log.debug("暂不支持 function {}", wupFunctionEnum); - } - } - } - } else { - // ignore - } - } - - @Override - public void onCmdMsg(HuyaCmdEnum cmd, ICmdMsg cmdMsg) { - if (super.msgListeners.isEmpty()) { - return; - } - - byte[] dataBytes; - if (cmdMsg instanceof PushMessage) { - PushMessage pushMessage = (PushMessage) cmdMsg; - dataBytes = pushMessage.getDataBytes(); - } else if (cmdMsg instanceof MsgItem) { - MsgItem msgItem = (MsgItem) cmdMsg; - dataBytes = msgItem.getSMsg(); - } else { - if (log.isDebugEnabled()) { - log.debug("非HuyaCmdMsg {}", cmdMsg.getClass()); - } - return; - } - TarsInputStream tarsInputStream = HuyaCodecUtil.newUtf8TarsInputStream(dataBytes); - - switch (cmd) { - case MessageNotice: { - MessageNoticeMsg messageNoticeMsg = new MessageNoticeMsg(tarsInputStream); - iteratorMsgListeners(msgListener -> msgListener.onDanmuMsg(HuyaBinaryFrameHandler.this, messageNoticeMsg)); - break; - } - case SendItemSubBroadcastPacket: { - SendItemSubBroadcastPacketMsg sendItemSubBroadcastPacketMsg = new SendItemSubBroadcastPacketMsg(tarsInputStream); - sendItemSubBroadcastPacketMsg.setPropsItem(HuyaApis.GIFT_ITEMS.getOrDefault(sendItemSubBroadcastPacketMsg.getIItemType(), PropsItem.DEFAULT)); - iteratorMsgListeners(msgListener -> msgListener.onGiftMsg(HuyaBinaryFrameHandler.this, sendItemSubBroadcastPacketMsg)); - break; - } - case VipEnterBanner: { - VipEnterBannerMsg vipEnterBannerMsg = new VipEnterBannerMsg(tarsInputStream); - iteratorMsgListeners(msgListener -> msgListener.onEnterRoomMsg(HuyaBinaryFrameHandler.this, vipEnterBannerMsg)); - break; - } - default: { - iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(HuyaBinaryFrameHandler.this, cmd, cmdMsg)); - } - } - } - - public String getVer() { - return client != null ? client.getConfig().getVer() : ver; - } - - @Override - protected List decode(ByteBuf byteBuf) { - return HuyaCodecUtil.decode(byteBuf); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/handler/HuyaConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/handler/HuyaConnectionHandler.java deleted file mode 100644 index ad052fcd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/netty/handler/HuyaConnectionHandler.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.netty.handler; - -import io.netty.channel.Channel; -import io.netty.channel.ChannelFutureListener; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.huya.client.HuyaLiveChatClient; -import tech.ordinaryroad.live.chat.client.huya.config.HuyaLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.huya.netty.frame.factory.HuyaWebSocketFrameFactory; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler; - - -/** - * 连接处理器 - * - * @author mjz - * @date 2023/8/21 - */ -@Slf4j -@ChannelHandler.Sharable -public class HuyaConnectionHandler extends BaseNettyClientConnectionHandler { - - /** - * 以ClientConfig为主 - */ - private final Object roomId; - /** - * 以ClientConfig为主 - */ - private final String ver; - /** - * 以ClientConfig为主 - */ - private String cookie; - - public HuyaConnectionHandler(WebSocketClientHandshaker handshaker, HuyaLiveChatClient client, IBaseConnectionListener listener) { - super(handshaker, client, listener); - this.roomId = client.getConfig().getRoomId(); - this.ver = client.getConfig().getVer(); - this.cookie = client.getConfig().getCookie(); - } - - public HuyaConnectionHandler(WebSocketClientHandshaker handshaker, HuyaLiveChatClient client) { - this(handshaker, client, null); - } - - public HuyaConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, String ver, IBaseConnectionListener listener, String cookie) { - super(handshaker, listener); - this.roomId = roomId; - this.ver = ver; - this.cookie = cookie; - } - - public HuyaConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, String ver, IBaseConnectionListener listener) { - this(handshaker, roomId, ver, listener, null); - } - - public HuyaConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, String ver, String cookie) { - this(handshaker, roomId, ver, null, cookie); - } - - public HuyaConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, String ver) { - this(handshaker, roomId, ver, null, null); - } - - @Override - protected void sendHeartbeat(ChannelHandlerContext ctx) { - if (log.isDebugEnabled()) { - log.debug("发送心跳包"); - } - ctx.writeAndFlush( - getWebSocketFrameFactory(getRoomId()).createHeartbeat(getVer(), getCookie()) - ).addListener((ChannelFutureListener) future -> { - if (future.isSuccess()) { - if (log.isDebugEnabled()) { - log.debug("心跳包发送完成"); - } - } else { - log.error("心跳包发送失败", future.cause()); - } - }); - } - - private static HuyaWebSocketFrameFactory getWebSocketFrameFactory(Object roomId) { - return HuyaWebSocketFrameFactory.getInstance(roomId); - } - - @Override - public void sendAuthRequest(Channel channel) { - if (log.isDebugEnabled()) { - log.debug("发送认证包"); - } - channel.writeAndFlush(getWebSocketFrameFactory(getRoomId()).createAuth(getVer(), getCookie())); - } - - public Object getRoomId() { - return client != null ? client.getConfig().getRoomId() : roomId; - } - - public String getVer() { - return client != null ? client.getConfig().getVer() : ver; - } - - private String getCookie() { - return client != null ? client.getConfig().getCookie() : cookie; - } - - @Override - protected long getHeartbeatPeriod() { - if (client == null) { - return HuyaLiveChatClientConfig.DEFAULT_HEARTBEAT_PERIOD; - } else { - return client.getConfig().getHeartbeatPeriod(); - } - } - - @Override - protected long getHeartbeatInitialDelay() { - if (client == null) { - return HuyaLiveChatClientConfig.DEFAULT_HEARTBEAT_INITIAL_DELAY; - } else { - return client.getConfig().getHeartbeatInitialDelay(); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/util/HuyaCodecUtil.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/util/HuyaCodecUtil.java deleted file mode 100644 index e5b479ea..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/main/java/tech/ordinaryroad/live/chat/client/huya/util/HuyaCodecUtil.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.util; - -import cn.hutool.core.codec.Base64; -import cn.hutool.core.util.ArrayUtil; -import cn.hutool.core.util.ByteUtil; -import com.qq.tars.protocol.tars.TarsInputStream; -import com.qq.tars.protocol.tars.TarsStructBase; -import io.netty.buffer.ByteBuf; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaDecorationAppTypeEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaDecorationViewTypeEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaOperationEnum; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaWupFunctionEnum; -import tech.ordinaryroad.live.chat.client.huya.msg.*; -import tech.ordinaryroad.live.chat.client.huya.msg.base.IHuyaMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.BadgeInfo; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.DecorationInfo; -import tech.ordinaryroad.live.chat.client.huya.msg.req.WupReq; - -import java.nio.charset.StandardCharsets; -import java.util.*; - -/** - * @author mjz - * @date 2023/9/5 - */ -@Slf4j -public class HuyaCodecUtil { - - public static List decode(ByteBuf in) { - List msgList = new ArrayList<>(); - Queue pendingByteBuf = new LinkedList<>(); - - do { - msgList.addAll(doDecode(in, pendingByteBuf)); - in = pendingByteBuf.poll(); - } while (in != null); - - return msgList; - } - - /** - * 执行解码操作,有压缩则先解压,解压后可能得到多条消息 - * - * @param in handler收到的一条消息 - * @param pendingByteBuf 用于存放未读取完的ByteBuf - */ - private static List doDecode(ByteBuf in, Queue pendingByteBuf) { - byte[] bytes = new byte[in.readableBytes()]; - in.readBytes(bytes); - - WebSocketCommand webSocketCommand = new WebSocketCommand(newUtf8TarsInputStream(bytes)); - HuyaOperationEnum operationEnum = webSocketCommand.getOperationEnum(); - if (operationEnum == null) { - throw new BaseException(String.format("未知operation: %d", webSocketCommand.getOperation())); - } - - switch (operationEnum) { - case EWSCmd_RegisterRsp: { - return Collections.singletonList(new RegisterRsp(newUtf8TarsInputStream(webSocketCommand.getVData()))); - } - case EWSCmdS2C_RegisterGroupRsp: { - return Collections.singletonList(new RegisterGroupRsp(newUtf8TarsInputStream(webSocketCommand.getVData()))); - } - case EWSCmd_WupRsp: { - return Collections.singletonList(new WupRsp(webSocketCommand.getVData())); - } - case EWSCmdS2C_MsgPushReq: { - return Collections.singletonList(new PushMessage(newUtf8TarsInputStream(webSocketCommand.getVData()))); - } - case EWSCmdS2C_VerifyCookieRsp: { - return Collections.singletonList(new VerifyCookieRsp(newUtf8TarsInputStream(webSocketCommand.getVData()))); - } - case EWSCmdS2C_MsgPushReq_V2: { - PushMessage_V2 pushMessageV2 = new PushMessage_V2(newUtf8TarsInputStream(webSocketCommand.getVData())); - return pushMessageV2.getVMsgItem(); - } - default: { - return Collections.singletonList(webSocketCommand); - } - } - } - - public static byte[] encode(String servantName, HuyaWupFunctionEnum function, TarsStructBase req) { - WupReq wupReq = new WupReq(); - wupReq.getTarsServantRequest().setServantName(servantName); - wupReq.getTarsServantRequest().setFunctionName(function.name()); - wupReq.getUniAttribute().put("tReq", req); - return wupReq.encode(); - } - - public static TarsInputStream newUtf8TarsInputStream(byte[] bytes) { - TarsInputStream tarsInputStream = new TarsInputStream(bytes); - tarsInputStream.setServerEncoding(StandardCharsets.UTF_8.name()); - return tarsInputStream; - } - - public static Optional decodeDecorationInfo(DecorationInfo decorationInfo) { - int iViewType = decorationInfo.getIViewType(); - HuyaDecorationViewTypeEnum huyaDecorationViewTypeEnum = HuyaDecorationViewTypeEnum.getByCode(iViewType); - if (huyaDecorationViewTypeEnum == null) { - return Optional.empty(); - } - - switch (huyaDecorationViewTypeEnum) { - case kDecorationViewTypeCustomized: { - int iAppId = decorationInfo.getIAppId(); - HuyaDecorationAppTypeEnum huyaDecorationAppTypeEnum = HuyaDecorationAppTypeEnum.getByCode(iAppId); - if (huyaDecorationAppTypeEnum == null) { - return Optional.empty(); - } - - switch (huyaDecorationAppTypeEnum) { - case kDecorationAppTypeFans: { - BadgeInfo badgeInfo = new BadgeInfo(); - badgeInfo.readFrom(HuyaCodecUtil.newUtf8TarsInputStream(decorationInfo.getVData())); - return Optional.of(badgeInfo); - } - default: { - return Optional.empty(); - } - } - } - default: { - return Optional.empty(); - } - } - } - - public static String ab2str(byte[] bytes) { - char[] chars = new char[bytes.length]; - for (int i = 0; i < bytes.length; i++) { - int unsignedInt = ByteUtil.byteToUnsignedInt(bytes[i]); - chars[i] = (char) unsignedInt; - } - return ArrayUtil.join(chars, ""); - } - - public static String btoa(String string) { - return Base64.encode(string); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/api/HuyaApisTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/api/HuyaApisTest.java deleted file mode 100644 index 3de00e25..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/api/HuyaApisTest.java +++ /dev/null @@ -1,20 +0,0 @@ -package tech.ordinaryroad.live.chat.client.huya.api; - -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; - -/** - * @author mjz - * @date 2023/10/1 - */ -class HuyaApisTest { - - @Test - void roomInit() { - assertEquals(HuyaApis.roomInit(189201).size(), 3); - assertThrows(BaseException.class, () -> HuyaApis.roomInit(-1)); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/client/HuyaLiveChatClientTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/client/HuyaLiveChatClientTest.java deleted file mode 100644 index e8b83892..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/client/HuyaLiveChatClientTest.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.huya.client; - -import cn.hutool.core.thread.ThreadUtil; -import cn.hutool.core.util.RandomUtil; -import cn.hutool.core.util.StrUtil; -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.huya.config.HuyaLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.huya.constant.HuyaCmdEnum; -import tech.ordinaryroad.live.chat.client.huya.listener.IHuyaMsgListener; -import tech.ordinaryroad.live.chat.client.huya.msg.MessageNoticeMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.SendItemSubBroadcastPacketMsg; -import tech.ordinaryroad.live.chat.client.huya.msg.VipEnterBannerMsg; -import tech.ordinaryroad.live.chat.client.huya.netty.handler.HuyaBinaryFrameHandler; - -import static org.junit.jupiter.api.Assertions.assertTrue; - -/** - * @author mjz - * @date 2023/9/5 - */ -@Slf4j -class HuyaLiveChatClientTest { - - static Object lock = new Object(); - HuyaLiveChatClient client; - - @Test - void example() throws InterruptedException { - HuyaLiveChatClientConfig config = HuyaLiveChatClientConfig.builder() - .roomId(353322) - .roomId(390001) - .roomId(527988) - .roomId(1995) - .roomId(116) - // bagea - .roomId(189201) - .build(); - - client = new HuyaLiveChatClient(config, new IHuyaMsgListener() { - @Override - public void onDanmuMsg(HuyaBinaryFrameHandler binaryFrameHandler, MessageNoticeMsg msg) { - log.info("{} 收到弹幕 {} {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(HuyaBinaryFrameHandler binaryFrameHandler, SendItemSubBroadcastPacketMsg msg) { - long lPayTotal = msg.getLPayTotal(); - if (lPayTotal != 0) { - int giftPrice = msg.getGiftPrice(); - } - log.info("{} 收到礼物 {}({}) {} {}({})x{}({})", binaryFrameHandler.getRoomId(), msg.getUsername(), msg.getUid(), "赠送", msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice()); - } - - @Override - public void onEnterRoomMsg(HuyaBinaryFrameHandler binaryFrameHandler, VipEnterBannerMsg msg) { - // 虎牙目前只支持监听VIP用户的入房消息 - log.info("{} {}({}) 进入直播间", msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - - @Override - public void onMsg(HuyaBinaryFrameHandler binaryFrameHandler, IMsg msg) { - log.debug("{} 收到{}消息 {}", binaryFrameHandler.getRoomId(), msg.getClass(), msg); - } - - @Override - public void onCmdMsg(HuyaBinaryFrameHandler binaryFrameHandler, HuyaCmdEnum cmd, ICmdMsg cmdMsg) { - log.info("{} 收到CMD消息{} {}", binaryFrameHandler.getRoomId(), cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(HuyaBinaryFrameHandler binaryFrameHandler, HuyaCmdEnum cmd, ICmdMsg cmdMsg) { - log.debug("{} 收到其他CMD消息 {}", binaryFrameHandler.getRoomId(), cmd); - } - - @Override - public void onUnknownCmd(HuyaBinaryFrameHandler binaryFrameHandler, String cmdString, IMsg msg) { - log.debug("{} 收到未知CMD消息 {}", binaryFrameHandler.getRoomId(), cmdString); - } - }); - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void sendDanmuTest() throws InterruptedException { - String cookie = System.getenv("cookie"); - assertTrue(StrUtil.isNotBlank(cookie)); - log.error("cookie: {}", cookie); - - HuyaLiveChatClientConfig config = HuyaLiveChatClientConfig.builder() - .cookie(cookie) - .roomId(189201) - .build(); - - client = new HuyaLiveChatClient(config); - client.connect(() -> { - String danmu = "66666" + RandomUtil.randomNumber(); - log.info("连接成功,5s后发送弹幕{}", danmu); - ThreadUtil.sleep(5000); - client.sendDanmu(danmu); - }); - client.addMsgListener(new IHuyaMsgListener() { - @Override - public void onMsg(IMsg msg) { - log.info("收到消息{}", msg); - } - }); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/util/HuyaCodecUtilTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/util/HuyaCodecUtilTest.java deleted file mode 100644 index aabfed7e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-huya/src/test/java/tech/ordinaryroad/live/chat/client/huya/util/HuyaCodecUtilTest.java +++ /dev/null @@ -1,99 +0,0 @@ -package tech.ordinaryroad.live.chat.client.huya.util; - -import cn.hutool.core.codec.Base64; -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.huya.msg.ConnectParaInfo; -import tech.ordinaryroad.live.chat.client.huya.msg.LiveLaunchRsp; -import tech.ordinaryroad.live.chat.client.huya.msg.WebSocketCommand; -import tech.ordinaryroad.live.chat.client.huya.msg.WupRsp; -import tech.ordinaryroad.live.chat.client.huya.msg.dto.UserId; -import tech.ordinaryroad.live.chat.client.huya.msg.req.*; - -import java.util.List; - -/** - * @author mjz - * @date 2023/10/3 - */ -class HuyaCodecUtilTest { - - private String ver = "2309271152"; - private String exp = "15547.23738,16582.25335,32083.50834"; - private String appSrc = "HUYA&ZH&2052"; - - @Test - void ab2str() { - ConnectParaInfo wsConnectParaInfo = ConnectParaInfo.newWSConnectParaInfo(ver, exp, appSrc); - byte[] byteArray = wsConnectParaInfo.toByteArray(); - String s = HuyaCodecUtil.ab2str(byteArray); - System.out.println(s); - } - - @Test - void btoa() { - ConnectParaInfo wsConnectParaInfo = ConnectParaInfo.newWSConnectParaInfo(ver, exp, appSrc); - byte[] byteArray = wsConnectParaInfo.toByteArray(); - String s = HuyaCodecUtil.ab2str(byteArray); - - String btoa = HuyaCodecUtil.btoa(s); - System.out.println(btoa); - } - - @Test - void decodeHeartbeatTest() { - byte[] decode = Base64.decode("AAMdAAEEKAAABCgQAyw8QAFWCG9ubGluZXVpZg9PblVzZXJIZWFydEJlYXR9AAED+QgAAQYEdFJlcR0AAQPrCgoMFiAwYTdkY2E3MmEzY2UxYjY1NDAwMWRkMmFkZTJhZTg1NyYANhp3ZWJoNSYyMzA5MjcxMTUyJndlYnNvY2tldEcAAAOKdnBsYXllcl9zYmFubmVyXzE3MjQ2OTFfMTcyNDY5MT0xOyBTb3VuZFZhbHVlPTAuNTA7IGFscGhhVmFsdWU9MC44MDsgZ2FtZV9kaWQ9UjI0SjJnMG1CenZkWEpmN2E5bmhlU2wzekljaTJCT3AwLXQ7IGlzSW5MaXZlUm9vbT10cnVlOyBndWlkPTBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3OyBfX3lhbWlkX3R0MT0wLjgwMjk5MzUwNjUwMTEyNjk7IF9feWFtaWRfbmV3PUNBNzVENENENUMxMDAwMDExNjVCODJCNTIxNDBDOTAwOyBndWlkPTBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3OyB1ZGJfZ3VpZGRhdGE9YWY1ZGJkYmY3NjI1NGE2ZThhMGEyOTNjY2FlOWI2ODg7IHVkYl9kZXZpY2VpZD13Xzc2MTYyMzQ4Mzg2MTgxNTI5NjsgdWRiX3Bhc3NkYXRhPTM7IF9feWFzbWlkPTAuODAyOTkzNTA2NTAxMTI2OTsgSG1fbHZ0XzUxNzAwYjZjNzIyZjViYjRjZjM5OTA2YTU5NmVhNDFmPTE2OTY0MDk0MjAsMTY5NjQxMTgwNiwxNjk2NDczNzYwLDE2OTY0NzY3NDU7IF95YXNpZHM9X19yb290c2lkJTNEQ0E3NjY5MjcwM0IwMDAwMTNGRkJCRkVBNjY4Nzk5RDA7IEhtX2xwdnRfNTE3MDBiNmM3MjJmNWJiNGNmMzk5MDZhNTk2ZWE0MWY9MTY5NjQ3Njg4MDsgaHV5YV91YT13ZWJoNSYwLjAuMSZhY3Rpdml0eTsgX3JlcF9jbnQ9Mzsgc2RpZD0wVW5IVWd2MC9xbWZENEtBS2x3emhxU1drU1d3a3RzZXhQSWNsTnQzUGJ3TVFha1dOTmZrMlc4KzFkNlFNZzVZYnU1bC9GcDRpaHRUTDdCd0Q2bTQ0MENHUUNkU0htZW1kOUNNLzVKRVZkanJXVmtuOUx0ZkZKdy9RbzRrZ0tyOE9aSERxTm51d2c2MTJzR3lmbEZuMWRrVWVaWVRUb0N6emw0R0NIcTdNVURhaHhHdVBSOG1VZGRmSW1GdGpjY3MxOyBodXlhX2ZsYXNoX3JlcF9jbnQ9NTc7IHJlcF9jbnQ9NDA7IGh1eWFfd2ViX3JlcF9jbnQ9MTY2XGYGY2hyb21lCxwsQgAaURNcYP98jJysC4yYDKgMLDYlYTgzMDdmMWM0YzRmNGVmMDphODMwN2YxYzRjNGY0ZWYwOjA6MExcZiAyYmZlZjAzNmEwMzBkOTgyN2ZjYmQwMmU5ZmM0NzY1OQ=="); - WupReq wupReq = new WupReq(); - wupReq.decode(decode); - UserHeartBeatReq userHeartBeatReq = new UserHeartBeatReq(); - userHeartBeatReq = wupReq.getUniAttribute().getByClass("tReq", userHeartBeatReq); - long lPid = userHeartBeatReq.getLPid(); - } - - @Test - void decodeRegisterGroupReq() { - byte[] decode = Base64.decode("ABAdAAAhCQACBgxsaXZlOjE3MjQ2OTEGDGNoYXQ6MTcyNDY5MRYAIAE2AExcZgA="); - WebSocketCommand webSocketCommand = new WebSocketCommand(HuyaCodecUtil.newUtf8TarsInputStream(decode)); - byte[] vData = webSocketCommand.getVData(); - RegisterGroupReq registerGroupReq = new RegisterGroupReq(); - registerGroupReq.readFrom(HuyaCodecUtil.newUtf8TarsInputStream(vData)); - List vGroupId = registerGroupReq.getVGroupId(); - } - - @Test - void decodeLiveLaunchReq() { - byte[] decode = Base64.decode("AAMdAAEEJAAABCQQAyw8QARWBmxpdmV1aWYIZG9MYXVuY2h9AAED/ggAAQYEdFJlcR0AAQPwCgoMFiAwYTdkY2E3MmEzY2UxYjY1NDAwMWRkMmFkZTJhZTg1NyYANhp3ZWJoNSYyMzA5MjcxMTUyJndlYnNvY2tldEcAAAOKdnBsYXllcl9zYmFubmVyXzE3MjQ2OTFfMTcyNDY5MT0xOyBTb3VuZFZhbHVlPTAuNTA7IGFscGhhVmFsdWU9MC44MDsgZ2FtZV9kaWQ9UjI0SjJnMG1CenZkWEpmN2E5bmhlU2wzekljaTJCT3AwLXQ7IGlzSW5MaXZlUm9vbT10cnVlOyBndWlkPTBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3OyBfX3lhbWlkX3R0MT0wLjgwMjk5MzUwNjUwMTEyNjk7IF9feWFtaWRfbmV3PUNBNzVENENENUMxMDAwMDExNjVCODJCNTIxNDBDOTAwOyBndWlkPTBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3OyB1ZGJfZ3VpZGRhdGE9YWY1ZGJkYmY3NjI1NGE2ZThhMGEyOTNjY2FlOWI2ODg7IHVkYl9kZXZpY2VpZD13Xzc2MTYyMzQ4Mzg2MTgxNTI5NjsgdWRiX3Bhc3NkYXRhPTM7IF9feWFzbWlkPTAuODAyOTkzNTA2NTAxMTI2OTsgSG1fbHZ0XzUxNzAwYjZjNzIyZjViYjRjZjM5OTA2YTU5NmVhNDFmPTE2OTY0MDk0MjAsMTY5NjQxMTgwNiwxNjk2NDczNzYwLDE2OTY0NzY3NDU7IF95YXNpZHM9X19yb290c2lkJTNEQ0E3NjY5MjcwM0IwMDAwMTNGRkJCRkVBNjY4Nzk5RDA7IEhtX2xwdnRfNTE3MDBiNmM3MjJmNWJiNGNmMzk5MDZhNTk2ZWE0MWY9MTY5NjQ3Njg4MDsgaHV5YV91YT13ZWJoNSYwLjAuMSZhY3Rpdml0eTsgX3JlcF9jbnQ9Mzsgc2RpZD0wVW5IVWd2MC9xbWZENEtBS2x3emhxU1drU1d3a3RzZXhQSWNsTnQzUGJ3TVFha1dOTmZrMlc4KzFkNlFNZzVZYnU1bC9GcDRpaHRUTDdCd0Q2bTQ0MENHUUNkU0htZW1kOUNNLzVKRVZkanJXVmtuOUx0ZkZKdy9RbzRrZ0tyOE9aSERxTm51d2c2MTJzR3lmbEZuMWRrVWVaWVRUb0N6emw0R0NIcTdNVURhaHhHdVBSOG1VZGRmSW1GdGpjY3MxOyBodXlhX2ZsYXNoX3JlcF9jbnQ9NTc7IHJlcF9jbnQ9NDA7IGh1eWFfd2ViX3JlcF9jbnQ9MTY2XGYGY2hyb21lCxoAAxwqFgAmADYARgBWAAsLIAELjJgMqAwsNiU5N2Q5NzQ4NTYyMzdiMWZiOjk3ZDk3NDg1NjIzN2IxZmI6MDowTFxmIGU2OTYzZjMwMTRmYzZlY2U2M2ExNmU3ZTlhMzMzOWVl"); - WupReq wupReq = new WupReq(); - wupReq.decode(decode); - LiveLaunchReq liveLaunchReq = new LiveLaunchReq(); - liveLaunchReq = wupReq.getUniAttribute().getByClass("tReq", liveLaunchReq); - UserId tId = liveLaunchReq.getTId(); - System.out.println(wupReq.getTarsServantRequest().getVersion()); - } - - @Test - void decodeLiveLaunchRsp() { - byte[] decode = Base64.decode("AAQdAAECXAAAAlwQAyw8QARWBmxpdmV1aWYIZG9MYXVuY2h9AAECNggAAgYAHQAAAQwGBHRSc3AdAAECIQoGIDBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3EmUeNXopAAUKAAEZAAQGETExMS4xOS4yMzkuMTExOjgwBhAxMTEuMTkuMjI1LjIzOjgwBhAxMTEuNjMuMTgwLjk4OjgwBhExMTEuNjMuMTgwLjEwMDo4MAsKAAUZAAQGFzZmMTNlZjZmLXdzLnZhLmh1eWEuY29tBhc2ZjEzZTExNy13cy52YS5odXlhLmNvbQYXNmYzZmI0NjItd3MudmEuaHV5YS5jb20GFzZmM2ZiNDY0LXdzLnZhLmh1eWEuY29tCwoABhkABAYRMTExLjE5LjIzOS4xMTE6ODAGEDExMS4xOS4yMjUuMjM6ODAGEDExMS42My4xODAuOTg6ODAGETExMS42My4xODAuMTAwOjgwCwoABxkABAYRMTExLjE5LjIzOS4xMTE6ODAGEDExMS4xOS4yMjUuMjM6ODAGEDExMS42My4xODAuOTg6ODAGETExMS42My4xODAuMTAwOjgwCwoACRkACAYOMTIwLjE5NS4xNTguNDYGDzExMy4xMDcuMjM2LjE5NQYMMTQuMTcuMTA5LjY2Bg8xMDMuMjI3LjEyMS4xMDAGDzExNS4yMzguMTg5LjIyNQYPMTgzLjIzMi4xMzYuMTMwBg4yMjEuMjI4Ljc5LjIyNQYMNjAuMjE3LjI1MC4xCzxGDTExMi40My45Mi4xMTgLjJgMqAwsNiU5N2Q5NzQ4NTYyMzdiMWZiOjk3ZDk3NDg1NjIzN2IxZmI6MDowTFxmAA=="); - WupRsp wupRsp = new WupRsp(); - wupRsp.decode(decode); - LiveLaunchRsp liveLaunchRsp = new LiveLaunchRsp(); - liveLaunchRsp = wupRsp.getUniAttribute().getByClass("tRsp", liveLaunchRsp); - int eAccess = liveLaunchRsp.getEAccess(); - } - - @Test - void decodeGetLivingInfoReq() { - byte[] decode = Base64.decode("AAMdAAEEKAAABCgQAyw8QAFWCmh1eWFsaXZldWlmDWdldExpdmluZ0luZm99AAED+QgAAQYEdFJlcR0AAQPrCgoMFiAwYTdkY2E3MmEzY2UxYjY1NDAwMWRkMmFkZTJhZTg1NyYANhp3ZWJoNSYyMzA5MjcxMTUyJndlYnNvY2tldEcAAAOKdnBsYXllcl9zYmFubmVyXzE3MjQ2OTFfMTcyNDY5MT0xOyBTb3VuZFZhbHVlPTAuNTA7IGFscGhhVmFsdWU9MC44MDsgZ2FtZV9kaWQ9UjI0SjJnMG1CenZkWEpmN2E5bmhlU2wzekljaTJCT3AwLXQ7IGlzSW5MaXZlUm9vbT10cnVlOyBndWlkPTBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3OyBfX3lhbWlkX3R0MT0wLjgwMjk5MzUwNjUwMTEyNjk7IF9feWFtaWRfbmV3PUNBNzVENENENUMxMDAwMDExNjVCODJCNTIxNDBDOTAwOyBndWlkPTBhN2RjYTcyYTNjZTFiNjU0MDAxZGQyYWRlMmFlODU3OyB1ZGJfZ3VpZGRhdGE9YWY1ZGJkYmY3NjI1NGE2ZThhMGEyOTNjY2FlOWI2ODg7IHVkYl9kZXZpY2VpZD13Xzc2MTYyMzQ4Mzg2MTgxNTI5NjsgdWRiX3Bhc3NkYXRhPTM7IF9feWFzbWlkPTAuODAyOTkzNTA2NTAxMTI2OTsgX3lhc2lkcz1fX3Jvb3RzaWQlM0RDQTc2NzA0NUMxMTAwMDAxRUM1QTE0NUMxRTkwRkUwMDsgSG1fbHZ0XzUxNzAwYjZjNzIyZjViYjRjZjM5OTA2YTU5NmVhNDFmPTE2OTY0NzM3NjAsMTY5NjQ3Njc0NSwxNjk2NDgzNTY1LDE2OTY0ODQyMTI7IEhtX2xwdnRfNTE3MDBiNmM3MjJmNWJiNGNmMzk5MDZhNTk2ZWE0MWY9MTY5NjQ4NDIxMjsgaHV5YV91YT13ZWJoNSYwLjAuMSZhY3Rpdml0eTsgX3JlcF9jbnQ9Mjsgc2RpZD0wVW5IVWd2MC9xbWZENEtBS2x3emhxWDk4UXJuUENjY2s2Zk40OTRpYXdTNUtteW1ncmV1ODlvN2dZdGEvUXZRc0JEZVNlU1JwNC9nclE1ZkV1RkFZckw1OWNvQUt1eHV1a2l3Z1RMamZqRURXVmtuOUx0ZkZKdy9RbzRrZ0tyOE9aSERxTm51d2c2MTJzR3lmbEZuMWRrVWVaWVRUb0N6emw0R0NIcTdNVURhaHhHdVBSOG1VZGRmSW1GdGpjY3MxOyBodXlhX2ZsYXNoX3JlcF9jbnQ9NzQ7IGh1eWFfd2ViX3JlcF9jbnQ9MTI1OyByZXBfY250PTQ0XGYGY2hyb21lCxwsMgAaURNGAFYAbHyMC4yYDKgMLDYlZTcxMDQ2OTExYzk2N2JjNDplNzEwNDY5MTFjOTY3YmM0OjA6MExcZiBjNTRlM2NkYmIyNGJjYzcyYmU1MjU5NTY4ZGVmY2Q1Ng=="); - WupReq wupReq = new WupReq(); - wupReq.decode(decode); - GetLivingInfoReq getLivingInfoReq = new GetLivingInfoReq(); - getLivingInfoReq = wupReq.getUniAttribute().getByClass("tReq", getLivingInfoReq); - - byte[] decode2 = Base64.decode("AAAEJxwsPEABVgpodXlhbGl2ZXVpZg1nZXRMaXZpbmdJbmZvfQABA/kIAAEGBHRSZXEdAAED6woKDBYgMGE3ZGNhNzJhM2NlMWI2NTQwMDFkZDJhZGUyYWU4NTcmADYad2ViaDUmMjMwOTI3MTE1MiZ3ZWJzb2NrZXRHAAADinZwbGF5ZXJfc2Jhbm5lcl8xNzI0NjkxXzE3MjQ2OTE9MTsgU291bmRWYWx1ZT0wLjUwOyBhbHBoYVZhbHVlPTAuODA7IGdhbWVfZGlkPVIyNEoyZzBtQnp2ZFhKZjdhOW5oZVNsM3pJY2kyQk9wMC10OyBpc0luTGl2ZVJvb209dHJ1ZTsgZ3VpZD0wYTdkY2E3MmEzY2UxYjY1NDAwMWRkMmFkZTJhZTg1NzsgX195YW1pZF90dDE9MC44MDI5OTM1MDY1MDExMjY5OyBfX3lhbWlkX25ldz1DQTc1RDRDRDVDMTAwMDAxMTY1QjgyQjUyMTQwQzkwMDsgZ3VpZD0wYTdkY2E3MmEzY2UxYjY1NDAwMWRkMmFkZTJhZTg1NzsgdWRiX2d1aWRkYXRhPWFmNWRiZGJmNzYyNTRhNmU4YTBhMjkzY2NhZTliNjg4OyB1ZGJfZGV2aWNlaWQ9d183NjE2MjM0ODM4NjE4MTUyOTY7IHVkYl9wYXNzZGF0YT0zOyBfX3lhc21pZD0wLjgwMjk5MzUwNjUwMTEyNjk7IF95YXNpZHM9X19yb290c2lkJTNEQ0E3NjcwNDVDMTEwMDAwMUVDNUExNDVDMUU5MEZFMDA7IEhtX2x2dF81MTcwMGI2YzcyMmY1YmI0Y2YzOTkwNmE1OTZlYTQxZj0xNjk2NDczNzYwLDE2OTY0NzY3NDUsMTY5NjQ4MzU2NSwxNjk2NDg0MjEyOyBIbV9scHZ0XzUxNzAwYjZjNzIyZjViYjRjZjM5OTA2YTU5NmVhNDFmPTE2OTY0ODQyMTI7IGh1eWFfdWE9d2ViaDUmMC4wLjEmYWN0aXZpdHk7IF9yZXBfY250PTI7IHNkaWQ9MFVuSFVndjAvcW1mRDRLQUtsd3pocVg5OFFyblBDY2NrNmZONDk0aWF3UzVLbXltZ3JldTg5bzdnWXRhL1F2UXNCRGVTZVNScDQvZ3JRNWZFdUZBWXJMNTljb0FLdXh1dWtpd2dUTGpmakVEV1ZrbjlMdGZGSncvUW80a2dLcjhPWkhEcU5udXdnNjEyc0d5ZmxGbjFka1VlWllUVG9DenpsNEdDSHE3TVVEYWh4R3VQUjhtVWRkZkltRnRqY2NzMTsgaHV5YV9mbGFzaF9yZXBfY250PTc0OyBodXlhX3dlYl9yZXBfY250PTEyNTsgcmVwX2NudD00NFxmBmNocm9tZQscLDIAGlETRgBWAGx8jAuMmAyoDA=="); - WupReq wupReq2 = new WupReq(); - wupReq2.decode(decode2); - GetLivingInfoReq getLivingInfoReq2 = new GetLivingInfoReq(); - getLivingInfoReq2 = wupReq2.getUniAttribute().getByClass("tReq", getLivingInfoReq2); - - UserId tId = getLivingInfoReq.getTId(); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/pom.xml deleted file mode 100644 index 5522cffd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - - org.ruoyi - live-chat-clients - ${revision} - ../pom.xml - - jar - - live-chat-client-kuaishou - live-chat-client-kuaishou - - - UTF-8 - - - - - org.ruoyi - live-chat-client-servers-netty-client - - - - com.google.protobuf - protobuf-java-util - - - - ch.qos.logback - logback-classic - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/ClientModeExample.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/ClientModeExample.java deleted file mode 100644 index 7809fda8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/ClientModeExample.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou; - -import cn.hutool.core.util.RandomUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; -import tech.ordinaryroad.live.chat.client.kuaishou.client.KuaishouLiveChatClient; -import tech.ordinaryroad.live.chat.client.kuaishou.config.KuaishouLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.kuaishou.listener.IKuaishouMsgListener; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouDanmuMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouGiftMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass; - -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; - -public class ClientModeExample { - static Logger log = LoggerFactory.getLogger(ClientModeExample.class); - - public static void main(String[] args) { - // 1. 创建配置 - KuaishouLiveChatClientConfig config = KuaishouLiveChatClientConfig.builder() - // TODO 浏览器Cookie - .cookie("did=web_6c4ac2a8ef8855d35df4d564baeaa8e8; kuaishou.live.bfb1s=7206d814e5c089a58c910ed8bf52ace5; clientid=3; did=web_6c4ac2a8ef8855d35df4d564baeaa8e8; client_key=65890b29; kpn=GAME_ZONE; userId=3941614875; kuaishou.live.web_st=ChRrdWFpc2hvdS5saXZlLndlYi5zdBKgAbRhgemDxM_Z_lBn7EZ_-5unvtslsh7ci5VY_eg80qqjxy5yb7oBFrdcWSPlz6jMIBz9h_yoLzATE3ngj2WawpxvbJhmq0EnRYIHv308kTBmg4KN2JQf7w2mfrsp1vusFbZ3NkfsEO4PrGQfX0L6mJRbgXeBqyz4tUM5O0q2Jte_NzWkaOnezvIGRAG8Y6yA1dxGUmiA9syTrPrdnSOzZvAaEoJNhwQ4OUDtgURWN6k9Xgm8PSIgAfV-ZvahtgaYhopZno6OuS2pkaFZjrz4ymoEZ1DSnj0oBTAB; kuaishou.live.web_ph=a287be6ab01dce264c0554eed94c2d6ac991; userId=3941614875") - // TODO 直播间id(支持短id) - .roomId("tianci666") - .build(); - - // 2. 创建Client并传入配置、添加消息回调 - KuaishouLiveChatClient client = new KuaishouLiveChatClient(config, new IKuaishouMsgListener() { - @Override - public void onMsg(IMsg msg) { - log.debug("收到{}消息 {}", msg.getClass(), msg); - } - - @Override - public void onCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { - log.debug("收到CMD消息{} {}", cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { - log.debug("收到其他CMD消息 {}", cmd); - } - - @Override - public void onUnknownCmd(String cmdString, IMsg msg) { - log.debug("收到未知CMD消息 {}", cmdString); - } - - @Override - public void onDanmuMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouDanmuMsg msg) { - log.info("{} 收到弹幕 [{}] {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouGiftMsg msg) { - log.info("{} 收到礼物 [{}] {}({}) {} {}({})x{}({}) mergeKey:{},comboCount:{}, batchSize:{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), "赠送", msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice(), msg.getMsg().getMergeKey(), msg.getMsg().getComboCount(), msg.getMsg().getBatchSize()); - } - }); - // 3. 开始监听直播间 - client.connect(); - - // 客户端连接状态回调 - client.addStatusChangeListener(evt -> { - if (evt.getNewValue().equals(ClientStatusEnums.CONNECTED)) { - // TODO 要发送的弹幕内容,请注意控制发送频率;框架内置支持设置发送弹幕的最少时间间隔,小于时将忽略该次发送 - client.sendDanmu("666666" + RandomUtil.randomNumbers(1)); - } - }); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/api/KuaishouApis.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/api/KuaishouApis.java deleted file mode 100644 index 114f6970..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/api/KuaishouApis.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.api; - -import cn.hutool.cache.impl.TimedCache; -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.ReUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.core.util.URLUtil; -import cn.hutool.http.*; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.node.ArrayNode; -import lombok.*; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.util.OrLiveChatCookieUtil; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import java.util.function.Consumer; - -import static tech.ordinaryroad.live.chat.client.commons.base.msg.BaseMsg.OBJECT_MAPPER; - -/** - * @author mjz - * @date 2024/1/5 - */ -public class KuaishouApis { - - /** - * 接口返回结果缓存 - * {@link #KEY_RESULT_CACHE_GIFT_ITEMS}:所有礼物信息 - */ - public static final TimedCache> RESULT_CACHE = new TimedCache<>(TimeUnit.DAYS.toMillis(1)); - public static final String KEY_RESULT_CACHE_GIFT_ITEMS = "GIFT_ITEMS"; - - public static final String PATTERN_LIVE_STREAM_ID = "\"liveStream\":\\{\"id\":\"([\\w\\d-_]+)\""; - public static final String USER_AGENT = GlobalHeaders.INSTANCE.header(Header.USER_AGENT).replace("Hutool", ""); - - public static RoomInitResult roomInit(Object roomId, String cookie) { - @Cleanup - HttpResponse response = createGetRequest("https://live.kuaishou.com/u/" + roomId, cookie) - .execute(); - - if (StrUtil.isBlank(cookie)) { - cookie = OrLiveChatCookieUtil.toString(response.getCookies()); - } - - String body = response.body(); - String liveStreamId = ReUtil.getGroup1(PATTERN_LIVE_STREAM_ID, body); - JsonNode websocketinfo = websocketinfo(roomId, liveStreamId, cookie); - if (!websocketinfo.has("token")) { - throwExceptionWithTip("主播未开播,token获取失败 " + websocketinfo); - } - ArrayNode websocketUrls = websocketinfo.withArray("websocketUrls"); - ArrayList websocketUrlList = CollUtil.newArrayList(); - for (JsonNode websocketUrl : websocketUrls) { - websocketUrlList.add(websocketUrl.asText()); - } - return RoomInitResult.builder() - .token(websocketinfo.required("token").asText()) - .websocketUrls(websocketUrlList) - .liveStreamId(liveStreamId) - .build(); - } - - public static RoomInitResult roomInit(Object roomId) { - return roomInit(roomId, null); - } - - public static JsonNode websocketinfo(Object roomId, String liveStreamId, String cookie) { - if (StrUtil.isBlank(liveStreamId)) { - throwExceptionWithTip("主播未开播,liveStreamId为空"); - } - @Cleanup - HttpResponse response = createGetRequest("https://live.kuaishou.com/live_api/liveroom/websocketinfo?liveStreamId=" + liveStreamId, cookie) - .header(Header.REFERER, "https://live.kuaishou.com/u/" + roomId) - .execute(); - return responseInterceptor(response.body()); - } - - public static Map allgifts() { - Map map = new HashMap<>(); - @Cleanup - HttpResponse response = createGetRequest("https://live.kuaishou.com/live_api/emoji/allgifts", null).execute(); - JsonNode jsonNode = responseInterceptor(response.body()); - jsonNode.fields().forEachRemaining(new Consumer>() { - @Override - public void accept(Map.Entry stringJsonNodeEntry) { - map.put(stringJsonNodeEntry.getKey(), OBJECT_MAPPER.convertValue(stringJsonNodeEntry.getValue(), GiftInfo.class)); - } - }); - return map; - } - - /** - * 根据礼物ID获取礼物信息 - * - * @param id 礼物ID - * @return 礼物信息 - */ - public static GiftInfo getGiftInfoById(String id) { - if (!RESULT_CACHE.containsKey(KEY_RESULT_CACHE_GIFT_ITEMS)) { - RESULT_CACHE.put(KEY_RESULT_CACHE_GIFT_ITEMS, allgifts()); - } - return RESULT_CACHE.get(KEY_RESULT_CACHE_GIFT_ITEMS).get(id); - } - - @SneakyThrows - public static JsonNode sendComment(String cookie, Object roomId, SendCommentRequest request) { - @Cleanup - HttpResponse response = createPostRequest("https://live.kuaishou.com/live_api/liveroom/sendComment", cookie) - .body(OBJECT_MAPPER.writeValueAsString(request), ContentType.JSON.getValue()) - .header(Header.REFERER, "https://live.kuaishou.com/u/" + roomId) - .execute(); - return responseInterceptor(response.body()); - } - - @SneakyThrows - public static JsonNode clickLike(String cookie, Object roomId, String liveStreamId, int count) { - @Cleanup - HttpResponse response = createPostRequest("https://live.kuaishou.com/live_api/liveroom/like", cookie) - .body(OBJECT_MAPPER.createObjectNode() - .put("liveStreamId", liveStreamId) - .put("count", count) - .toString(), ContentType.JSON.getValue() - ) - .header(Header.ORIGIN, "https://live.kuaishou.com") - .header(Header.REFERER, "https://live.kuaishou.com/u/" + roomId) - .execute(); - return responseInterceptor(response.body()); - } - - public static HttpRequest createRequest(Method method, String url, String cookie) { - return HttpUtil.createRequest(method, url) - .cookie(cookie) - .header(Header.HOST, URLUtil.url(url).getHost()) - .header(Header.USER_AGENT, USER_AGENT); - } - - public static HttpRequest createGetRequest(String url, String cookie) { - return createRequest(Method.GET, url, cookie); - } - - public static HttpRequest createPostRequest(String url, String cookie) { - return createRequest(Method.POST, url, cookie); - } - - private static JsonNode responseInterceptor(String responseString) { - try { - JsonNode jsonNode = OBJECT_MAPPER.readTree(responseString); - JsonNode data = jsonNode.required("data"); - if (data.has("result")) { - int result = data.get("result").asInt(); - if (result != 1) { - String message = ""; - switch (result) { - case 2: { - message = "请求过快,请稍后重试"; - break; - } - case 400002: { - message = "需要进行验证"; - break; - } - default: { - message = ""; - } - } - throwExceptionWithTip("接口访问失败:" + message + ",返回结果:" + jsonNode); - } - } - return data; - } catch (JsonProcessingException e) { - throw new BaseException(e); - } - } - - private static void throwExceptionWithTip(String message) { - throw new BaseException("『可能已触发滑块验证,建议配置Cookie或打开浏览器进行滑块验证后重试』" + message); - } - - @Data - @AllArgsConstructor - @NoArgsConstructor - @Builder - public static class SendCommentRequest { - private String liveStreamId; - private String content; - private String color; - } - - @Data - @AllArgsConstructor - @NoArgsConstructor - @Builder - public static class RoomInitResult { - private String token; - private String liveStreamId; - private List websocketUrls; - } - - @Data - @AllArgsConstructor - @NoArgsConstructor - public static class GiftInfo { - private String giftName; - private String giftUrl; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/client/KuaishouLiveChatClient.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/client/KuaishouLiveChatClient.java deleted file mode 100644 index 7c52bdc4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/client/KuaishouLiveChatClient.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.client; - - -import cn.hutool.core.collection.CollUtil; -import cn.hutool.core.util.RandomUtil; -import com.fasterxml.jackson.databind.JsonNode; -import io.netty.channel.EventLoopGroup; -import io.netty.channel.nio.NioEventLoopGroup; -import io.netty.handler.codec.http.DefaultHttpHeaders; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshakerFactory; -import io.netty.handler.codec.http.websocketx.WebSocketVersion; -import lombok.Getter; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.kuaishou.api.KuaishouApis; -import tech.ordinaryroad.live.chat.client.kuaishou.config.KuaishouLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.kuaishou.listener.IKuaishouConnectionListener; -import tech.ordinaryroad.live.chat.client.kuaishou.listener.IKuaishouMsgListener; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.base.IKuaishouMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouConnectionHandler; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass; -import tech.ordinaryroad.live.chat.client.servers.netty.client.base.BaseNettyClient; - -import java.util.List; -import java.util.function.Consumer; - -/** - * @author mjz - * @date 2024/1/5 - */ -@Slf4j -public class KuaishouLiveChatClient extends BaseNettyClient< - KuaishouLiveChatClientConfig, - PayloadTypeOuterClass.PayloadType, - IKuaishouMsg, - IKuaishouMsgListener, - KuaishouConnectionHandler, - KuaishouBinaryFrameHandler> { - - @Getter - KuaishouApis.RoomInitResult roomInitResult = new KuaishouApis.RoomInitResult(); - - public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, List msgListeners, IKuaishouConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListeners(msgListeners); - - // 初始化 - this.init(); - } - - public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener, IKuaishouConnectionListener connectionListener, EventLoopGroup workerGroup) { - super(config, workerGroup, connectionListener); - addMsgListener(msgListener); - - // 初始化 - this.init(); - } - - public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener, IKuaishouConnectionListener connectionListener) { - this(config, msgListener, connectionListener, new NioEventLoopGroup()); - } - - public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config, IKuaishouMsgListener msgListener) { - this(config, msgListener, null, new NioEventLoopGroup()); - } - - public KuaishouLiveChatClient(KuaishouLiveChatClientConfig config) { - this(config, null); - } - - @Override - public void init() { - roomInitResult = KuaishouApis.roomInit(getConfig().getRoomId(), getConfig().getCookie()); - super.init(); - } - - @Override - protected String getWebSocketUriString() { - List websocketUrls = roomInitResult.getWebsocketUrls(); - return CollUtil.get(websocketUrls, RandomUtil.randomInt(0, websocketUrls.size())); - } - - @Override - public KuaishouConnectionHandler initConnectionHandler(IBaseConnectionListener clientConnectionListener) { - return new KuaishouConnectionHandler( - WebSocketClientHandshakerFactory.newHandshaker(getWebsocketUri(), WebSocketVersion.V13, null, true, new DefaultHttpHeaders(), getConfig().getMaxFramePayloadLength()), - KuaishouLiveChatClient.this, clientConnectionListener - ); - } - - @Override - public KuaishouBinaryFrameHandler initBinaryFrameHandler() { - return new KuaishouBinaryFrameHandler(super.msgListeners, KuaishouLiveChatClient.this); - } - - @Override - public void sendDanmu(Object danmu, Runnable success, Consumer failed) { - if (!checkCanSendDanmu()) { - return; - } - if (danmu instanceof String) { - String msg = (String) danmu; - try { - if (log.isDebugEnabled()) { - log.debug("{} kuaishou发送弹幕 {}", getConfig().getRoomId(), danmu); - } - - boolean sendSuccess = false; - try { - KuaishouApis.sendComment(getConfig().getCookie(), - getConfig().getRoomId(), - KuaishouApis.SendCommentRequest.builder() - .liveStreamId(roomInitResult.getLiveStreamId()) - .content(msg) - .build() - ); - sendSuccess = true; - } catch (Exception e) { - log.error("kuaishou弹幕发送失败", e); - if (failed != null) { - failed.accept(e); - } - } - if (!sendSuccess) { - return; - } - - if (log.isDebugEnabled()) { - log.debug("kuaishou弹幕发送成功 {}", danmu); - } - if (success != null) { - success.run(); - } - finishSendDanmu(); - } catch (Exception e) { - log.error("kuaishou弹幕发送失败", e); - if (failed != null) { - failed.accept(e); - } - } - } else { - super.sendDanmu(danmu, success, failed); - } - } - - @Override - public void clickLike(int count, Runnable success, Consumer failed) { - if (count <= 0) { - throw new BaseException("点赞次数必须大于0"); - } - - boolean successfullyClicked = false; - try { - JsonNode jsonNode = KuaishouApis.clickLike(getConfig().getCookie(), getConfig().getRoomId(), roomInitResult.getLiveStreamId(), count); - if (jsonNode.asBoolean()) { - successfullyClicked = true; - } - } catch (Exception e) { - log.error("kuaishou为直播间点赞失败", e); - if (failed != null) { - failed.accept(e); - } - } - if (!successfullyClicked) { - return; - } - - if (log.isDebugEnabled()) { - log.debug("kuaishou为直播间点赞成功"); - } - if (success != null) { - success.run(); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/config/KuaishouLiveChatClientConfig.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/config/KuaishouLiveChatClientConfig.java deleted file mode 100644 index d46ad215..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/config/KuaishouLiveChatClientConfig.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.config; - -import lombok.AllArgsConstructor; -import lombok.Builder; -import lombok.Data; -import lombok.NoArgsConstructor; -import lombok.experimental.SuperBuilder; -import tech.ordinaryroad.live.chat.client.servers.netty.client.config.BaseNettyClientConfig; - -/** - * @author mjz - * @date 2024/1/5 - */ -@Data -@NoArgsConstructor -@AllArgsConstructor -@SuperBuilder(toBuilder = true) -public class KuaishouLiveChatClientConfig extends BaseNettyClientConfig { - - @Builder.Default - private long heartbeatPeriod = 20; - -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/listener/IKuaishouConnectionListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/listener/IKuaishouConnectionListener.java deleted file mode 100644 index 56a73428..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/listener/IKuaishouConnectionListener.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.listener; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouConnectionHandler; - -/** - * @author mjz - * @date 2024/1/5 - */ -public interface IKuaishouConnectionListener extends IBaseConnectionListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/listener/IKuaishouMsgListener.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/listener/IKuaishouMsgListener.java deleted file mode 100644 index d280e060..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/listener/IKuaishouMsgListener.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.listener; - -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IDanmuMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IGiftMsgListener; -import tech.ordinaryroad.live.chat.client.commons.base.listener.ILikeMsgListener; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouDanmuMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouGiftMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouLikeMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass; - -/** - * @author mjz - * @date 2024/1/5 - */ -public interface IKuaishouMsgListener extends IBaseMsgListener, - IDanmuMsgListener, - IGiftMsgListener, - ILikeMsgListener { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouDanmuMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouDanmuMsg.java deleted file mode 100644 index fe4dabdb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouDanmuMsg.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.msg; - -import com.google.protobuf.ByteString; -import com.google.protobuf.UnknownFieldSet; -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IDanmuMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.base.IKuaishouMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass; - -import java.util.List; - -/** - * @author mjz - * @date 2024/1/9 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class KuaishouDanmuMsg implements IKuaishouMsg, IDanmuMsg { - - private WebCommentFeedOuterClass.WebCommentFeed msg; - - @Override - public String getBadgeName() { - String badgeName = null; - try { - UnknownFieldSet.Field field21 = msg.getSenderState().getUnknownFields().asMap().get(21); - List lengthDelimitedList = field21.getLengthDelimitedList(); - if (!lengthDelimitedList.isEmpty()) { - UnknownFieldSet.Field field21_1 = UnknownFieldSet.parseFrom( - lengthDelimitedList.size() > 1 ? lengthDelimitedList.get(1) : lengthDelimitedList.get(0) - ).getField(1); - List lengthDelimitedList1 = field21_1.getLengthDelimitedList(); - if (!lengthDelimitedList1.isEmpty()) { - UnknownFieldSet.Field field21_1_4 = UnknownFieldSet.parseFrom((lengthDelimitedList1.get(0))).getField(4); - List lengthDelimitedList2 = field21_1_4.getLengthDelimitedList(); - if (!lengthDelimitedList2.isEmpty()) { - badgeName = lengthDelimitedList2.get(0).toStringUtf8(); - } - } - } - } catch (Exception e) { - // ignore - } - return badgeName; - } - - @Override - public byte getBadgeLevel() { - return (byte) msg.getSenderState().getLiveFansGroupState().getIntimacyLevel(); - } - - @Override - public String getUid() { - return msg.getUser().getPrincipalId(); - } - - @Override - public String getUsername() { - return msg.getUser().getUserName(); - } - - @Override - public String getUserAvatar() { - return msg.getUser().getHeadUrl(); - } - - @Override - public String getContent() { - return msg.getContent(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouGiftMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouGiftMsg.java deleted file mode 100644 index 5ac39d94..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouGiftMsg.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IGiftMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.api.KuaishouApis; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.base.IKuaishouMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass; - -/** - * @author mjz - * @date 2024/1/9 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class KuaishouGiftMsg implements IKuaishouMsg, IGiftMsg { - - private WebGiftFeedOuterClass.WebGiftFeed msg; - - @Override - public String getBadgeName() { - return IGiftMsg.super.getBadgeName(); - } - - @Override - public byte getBadgeLevel() { - return IGiftMsg.super.getBadgeLevel(); - } - - @Override - public String getUid() { - return msg.getUser().getPrincipalId(); - } - - @Override - public String getUsername() { - return msg.getUser().getUserName(); - } - - @Override - public String getUserAvatar() { - return msg.getUser().getHeadUrl(); - } - - @Override - public String getGiftName() { - return KuaishouApis.getGiftInfoById(this.getGiftId()).getGiftName(); - } - - @Override - public String getGiftImg() { - return KuaishouApis.getGiftInfoById(this.getGiftId()).getGiftUrl(); - } - - @Override - public String getGiftId() { - return Integer.toString(msg.getIntGiftId()); - } - - @Override - public int getGiftCount() { - // TODO 礼物个数?网页上只显示赠送了什么东西,不显示个数,只会显示连击 - return 0; - } - - @Override - public int getGiftPrice() { - return 0; - } - - @Override - public String getReceiveUid() { - return null; - } - - @Override - public String getReceiveUsername() { - return null; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouLikeMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouLikeMsg.java deleted file mode 100644 index 01bcefb6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/KuaishouLikeMsg.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.msg; - -import lombok.AllArgsConstructor; -import lombok.Getter; -import lombok.NoArgsConstructor; -import lombok.Setter; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ILikeMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.base.IKuaishouMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass; - -/** - * @author mjz - * @date 2024/1/9 - */ -@Getter -@Setter -@AllArgsConstructor -@NoArgsConstructor -public class KuaishouLikeMsg implements IKuaishouMsg, ILikeMsg { - - private WebLikeFeedOuterClass.WebLikeFeed msg; - - @Override - public String getUid() { - return msg.getUser().getPrincipalId(); - } - - @Override - public String getUsername() { - return msg.getUser().getUserName(); - } - - @Override - public String getUserAvatar() { - return msg.getUser().getHeadUrl(); - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/base/IKuaishouCmdMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/base/IKuaishouCmdMsg.java deleted file mode 100644 index eaaa8bc6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/base/IKuaishouCmdMsg.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.msg.base; - -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass; - -/** - * @author mjz - * @date 2024/1/5 - */ -public interface IKuaishouCmdMsg extends IKuaishouMsg, ICmdMsg { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/base/IKuaishouMsg.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/base/IKuaishouMsg.java deleted file mode 100644 index 12ae6cdf..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/msg/base/IKuaishouMsg.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.msg.base; - -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; - -/** - * @author mjz - * @date 2024/1/5 - */ -public interface IKuaishouMsg extends IMsg { -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/netty/handler/KuaishouBinaryFrameHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/netty/handler/KuaishouBinaryFrameHandler.java deleted file mode 100644 index d6bcb6dc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/netty/handler/KuaishouBinaryFrameHandler.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.netty.handler; - -import cn.hutool.core.util.ZipUtil; -import com.google.protobuf.ByteString; -import com.google.protobuf.InvalidProtocolBufferException; -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandler; -import lombok.SneakyThrows; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.exception.BaseException; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.client.KuaishouLiveChatClient; -import tech.ordinaryroad.live.chat.client.kuaishou.listener.IKuaishouMsgListener; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouDanmuMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouGiftMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouLikeMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.base.IKuaishouMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.*; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientBinaryFrameHandler; - -import java.util.Collections; -import java.util.List; - -/** - * @author mjz - * @date 2024/1/5 - */ -@Slf4j -@ChannelHandler.Sharable -public class KuaishouBinaryFrameHandler extends BaseNettyClientBinaryFrameHandler { - - public KuaishouBinaryFrameHandler(List iKuaishouMsgListeners, KuaishouLiveChatClient client) { - super(iKuaishouMsgListeners, client); - } - - public KuaishouBinaryFrameHandler(List iKuaishouMsgListeners, long roomId) { - super(iKuaishouMsgListeners, roomId); - } - - @SneakyThrows - @Override - public void onCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { - if (super.msgListeners.isEmpty()) { - return; - } - - SocketMessageOuterClass.SocketMessage socketMessage = (SocketMessageOuterClass.SocketMessage) cmdMsg; - ByteString payloadByteString = socketMessage.getPayload(); - switch (socketMessage.getPayloadType()) { - case SC_FEED_PUSH: { - SCWebFeedPushOuterClass.SCWebFeedPush scWebFeedPush = SCWebFeedPushOuterClass.SCWebFeedPush.parseFrom(payloadByteString); - if (scWebFeedPush.getCommentFeedsCount() > 0) { - for (WebCommentFeedOuterClass.WebCommentFeed webCommentFeed : scWebFeedPush.getCommentFeedsList()) { - iteratorMsgListeners(msgListener -> msgListener.onDanmuMsg(KuaishouBinaryFrameHandler.this, new KuaishouDanmuMsg(webCommentFeed))); - } - } - if (scWebFeedPush.getGiftFeedsCount() > 0) { - for (WebGiftFeedOuterClass.WebGiftFeed webGiftFeed : scWebFeedPush.getGiftFeedsList()) { - iteratorMsgListeners(msgListener -> msgListener.onGiftMsg(KuaishouBinaryFrameHandler.this, new KuaishouGiftMsg(webGiftFeed))); - } - } - if (scWebFeedPush.getLikeFeedsCount() > 0) { - for (WebLikeFeedOuterClass.WebLikeFeed webLikeFeed : scWebFeedPush.getLikeFeedsList()) { - iteratorMsgListeners(msgListener -> msgListener.onLikeMsg(KuaishouBinaryFrameHandler.this, new KuaishouLikeMsg(webLikeFeed))); - } - } - break; - } - default: { - iteratorMsgListeners(msgListener -> msgListener.onOtherCmdMsg(KuaishouBinaryFrameHandler.this, cmd, socketMessage)); - } - } - } - - @Override - protected List decode(ByteBuf byteBuf) { - try { - SocketMessageOuterClass.SocketMessage socketMessage = SocketMessageOuterClass.SocketMessage.parseFrom(byteBuf.nioBuffer()); - SocketMessageOuterClass.SocketMessage.CompressionType compressionType = socketMessage.getCompressionType(); - ByteString payloadByteString = socketMessage.getPayload(); - byte[] payload; - switch (compressionType) { - case NONE: { - payload = payloadByteString.toByteArray(); - break; - } - case GZIP: { - payload = ZipUtil.unGzip(payloadByteString.newInput()); - break; - } - default: { - if (log.isWarnEnabled()) { - log.warn("暂不支持的压缩方式 " + compressionType); - } - return Collections.emptyList(); - } - } - return Collections.singletonList(socketMessage.toBuilder().setPayload(ByteString.copyFrom(payload)).build()); - } catch (InvalidProtocolBufferException e) { - throw new BaseException(e); - } - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/netty/handler/KuaishouConnectionHandler.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/netty/handler/KuaishouConnectionHandler.java deleted file mode 100644 index 977710dc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/netty/handler/KuaishouConnectionHandler.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package tech.ordinaryroad.live.chat.client.kuaishou.netty.handler; - -import cn.hutool.core.util.RandomUtil; -import io.netty.buffer.Unpooled; -import io.netty.channel.Channel; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.http.websocketx.BinaryWebSocketFrame; -import io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker; -import lombok.extern.slf4j.Slf4j; -import tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener; -import tech.ordinaryroad.live.chat.client.kuaishou.api.KuaishouApis; -import tech.ordinaryroad.live.chat.client.kuaishou.client.KuaishouLiveChatClient; -import tech.ordinaryroad.live.chat.client.kuaishou.config.KuaishouLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass; -import tech.ordinaryroad.live.chat.client.servers.netty.client.handler.BaseNettyClientConnectionHandler; - -/** - * @author mjz - * @date 2024/1/5 - */ -@Slf4j -@ChannelHandler.Sharable -public class KuaishouConnectionHandler extends BaseNettyClientConnectionHandler { - - /** - * 以ClientConfig为主 - */ - private final Object roomId; - /** - * 以ClientConfig为主 - */ - private String cookie; - private final KuaishouApis.RoomInitResult roomInitResult; - - public KuaishouConnectionHandler(WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client, IBaseConnectionListener listener) { - super(handshaker, client, listener); - this.roomId = client.getConfig().getRoomId(); - this.cookie = client.getConfig().getCookie(); - this.roomInitResult = client.getRoomInitResult(); - } - - public KuaishouConnectionHandler(WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client) { - this(handshaker, client, null); - } - - public KuaishouConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, IBaseConnectionListener listener, String cookie) { - super(handshaker, listener); - this.roomId = roomId; - this.cookie = cookie; - this.roomInitResult = roomInitResult; - } - - public KuaishouConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, IBaseConnectionListener listener) { - this(handshaker, roomId, roomInitResult, listener, null); - } - - public KuaishouConnectionHandler(WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, String cookie) { - this(handshaker, roomId, roomInitResult, null, cookie); - } - - public KuaishouConnectionHandler(WebSocketClientHandshaker handshaker, KuaishouApis.RoomInitResult roomInitResult, long roomId) { - this(handshaker, roomId, roomInitResult, null, null); - } - - @Override - protected void sendHeartbeat(ChannelHandlerContext ctx) { - ctx.writeAndFlush( - new BinaryWebSocketFrame( - Unpooled.wrappedBuffer(SocketMessageOuterClass.SocketMessage.newBuilder() - .setPayloadType(PayloadTypeOuterClass.PayloadType.CS_HEARTBEAT) - .setPayload( - CSHeartbeatOuterClass.CSHeartbeat.newBuilder() - .setTimestamp(System.currentTimeMillis()) - .build() - .toByteString() - ) - .build() - .toByteArray() - ) - ) - ); - } - - @Override - public void sendAuthRequest(Channel channel) { - channel.writeAndFlush( - new BinaryWebSocketFrame( - Unpooled.wrappedBuffer(SocketMessageOuterClass.SocketMessage.newBuilder() - .setPayloadType(PayloadTypeOuterClass.PayloadType.CS_ENTER_ROOM) - .setPayload( - CSWebEnterRoomOuterClass.CSWebEnterRoom.newBuilder() - .setToken(roomInitResult.getToken()) - .setLiveStreamId(roomInitResult.getLiveStreamId()) - .setPageId(RandomUtil.randomString(16) + System.currentTimeMillis()) - .build() - .toByteString() - ) - .build() - .toByteArray() - ) - ) - ); - } - - @Override - protected long getHeartbeatPeriod() { - if (client == null) { - return KuaishouLiveChatClientConfig.DEFAULT_HEARTBEAT_PERIOD; - } else { - return client.getConfig().getHeartbeatPeriod(); - } - } - - @Override - protected long getHeartbeatInitialDelay() { - if (client == null) { - return KuaishouLiveChatClientConfig.DEFAULT_HEARTBEAT_INITIAL_DELAY; - } else { - return client.getConfig().getHeartbeatInitialDelay(); - } - } - - public Object getRoomId() { - return client != null ? client.getConfig().getRoomId() : roomId; - } - - private String getCookie() { - return client != null ? client.getConfig().getCookie() : cookie; - } -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/AuditAudienceMaskOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/AuditAudienceMaskOuterClass.java deleted file mode 100644 index 7030eae1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/AuditAudienceMaskOuterClass.java +++ /dev/null @@ -1,1155 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AuditAudienceMask.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class AuditAudienceMaskOuterClass { - private AuditAudienceMaskOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface AuditAudienceMaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:AuditAudienceMask) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - java.util.List - getIconCdnNodeViewList(); - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView getIconCdnNodeView(int index); - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - int getIconCdnNodeViewCount(); - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - java.util.List - getIconCdnNodeViewOrBuilderList(); - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder getIconCdnNodeViewOrBuilder( - int index); - - /** - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - * string detail = 3; - * @return The detail. - */ - java.lang.String getDetail(); - /** - * string detail = 3; - * @return The bytes for detail. - */ - com.google.protobuf.ByteString - getDetailBytes(); - } - /** - * Protobuf type {@code AuditAudienceMask} - */ - public static final class AuditAudienceMask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:AuditAudienceMask) - AuditAudienceMaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditAudienceMask.newBuilder() to construct. - private AuditAudienceMask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuditAudienceMask() { - iconCdnNodeView_ = java.util.Collections.emptyList(); - title_ = ""; - detail_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AuditAudienceMask(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.internal_static_AuditAudienceMask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.internal_static_AuditAudienceMask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder.class); - } - - public static final int ICONCDNNODEVIEW_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List iconCdnNodeView_; - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - @java.lang.Override - public java.util.List getIconCdnNodeViewList() { - return iconCdnNodeView_; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - @java.lang.Override - public java.util.List - getIconCdnNodeViewOrBuilderList() { - return iconCdnNodeView_; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - @java.lang.Override - public int getIconCdnNodeViewCount() { - return iconCdnNodeView_.size(); - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView getIconCdnNodeView(int index) { - return iconCdnNodeView_.get(index); - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder getIconCdnNodeViewOrBuilder( - int index) { - return iconCdnNodeView_.get(index); - } - - public static final int TITLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DETAIL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object detail_ = ""; - /** - * string detail = 3; - * @return The detail. - */ - @java.lang.Override - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } - } - /** - * string detail = 3; - * @return The bytes for detail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < iconCdnNodeView_.size(); i++) { - output.writeMessage(1, iconCdnNodeView_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, detail_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < iconCdnNodeView_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, iconCdnNodeView_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, detail_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask) obj; - - if (!getIconCdnNodeViewList() - .equals(other.getIconCdnNodeViewList())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDetail() - .equals(other.getDetail())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIconCdnNodeViewCount() > 0) { - hash = (37 * hash) + ICONCDNNODEVIEW_FIELD_NUMBER; - hash = (53 * hash) + getIconCdnNodeViewList().hashCode(); - } - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDetail().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code AuditAudienceMask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:AuditAudienceMask) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.internal_static_AuditAudienceMask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.internal_static_AuditAudienceMask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (iconCdnNodeViewBuilder_ == null) { - iconCdnNodeView_ = java.util.Collections.emptyList(); - } else { - iconCdnNodeView_ = null; - iconCdnNodeViewBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - title_ = ""; - detail_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.internal_static_AuditAudienceMask_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask result) { - if (iconCdnNodeViewBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - iconCdnNodeView_ = java.util.Collections.unmodifiableList(iconCdnNodeView_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.iconCdnNodeView_ = iconCdnNodeView_; - } else { - result.iconCdnNodeView_ = iconCdnNodeViewBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.title_ = title_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.detail_ = detail_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance()) return this; - if (iconCdnNodeViewBuilder_ == null) { - if (!other.iconCdnNodeView_.isEmpty()) { - if (iconCdnNodeView_.isEmpty()) { - iconCdnNodeView_ = other.iconCdnNodeView_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.addAll(other.iconCdnNodeView_); - } - onChanged(); - } - } else { - if (!other.iconCdnNodeView_.isEmpty()) { - if (iconCdnNodeViewBuilder_.isEmpty()) { - iconCdnNodeViewBuilder_.dispose(); - iconCdnNodeViewBuilder_ = null; - iconCdnNodeView_ = other.iconCdnNodeView_; - bitField0_ = (bitField0_ & ~0x00000001); - iconCdnNodeViewBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIconCdnNodeViewFieldBuilder() : null; - } else { - iconCdnNodeViewBuilder_.addAllMessages(other.iconCdnNodeView_); - } - } - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.parser(), - extensionRegistry); - if (iconCdnNodeViewBuilder_ == null) { - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.add(m); - } else { - iconCdnNodeViewBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - detail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List iconCdnNodeView_ = - java.util.Collections.emptyList(); - private void ensureIconCdnNodeViewIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - iconCdnNodeView_ = new java.util.ArrayList(iconCdnNodeView_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder> iconCdnNodeViewBuilder_; - - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public java.util.List getIconCdnNodeViewList() { - if (iconCdnNodeViewBuilder_ == null) { - return java.util.Collections.unmodifiableList(iconCdnNodeView_); - } else { - return iconCdnNodeViewBuilder_.getMessageList(); - } - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public int getIconCdnNodeViewCount() { - if (iconCdnNodeViewBuilder_ == null) { - return iconCdnNodeView_.size(); - } else { - return iconCdnNodeViewBuilder_.getCount(); - } - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView getIconCdnNodeView(int index) { - if (iconCdnNodeViewBuilder_ == null) { - return iconCdnNodeView_.get(index); - } else { - return iconCdnNodeViewBuilder_.getMessage(index); - } - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder setIconCdnNodeView( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView value) { - if (iconCdnNodeViewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.set(index, value); - onChanged(); - } else { - iconCdnNodeViewBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder setIconCdnNodeView( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder builderForValue) { - if (iconCdnNodeViewBuilder_ == null) { - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.set(index, builderForValue.build()); - onChanged(); - } else { - iconCdnNodeViewBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder addIconCdnNodeView(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView value) { - if (iconCdnNodeViewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.add(value); - onChanged(); - } else { - iconCdnNodeViewBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder addIconCdnNodeView( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView value) { - if (iconCdnNodeViewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.add(index, value); - onChanged(); - } else { - iconCdnNodeViewBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder addIconCdnNodeView( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder builderForValue) { - if (iconCdnNodeViewBuilder_ == null) { - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.add(builderForValue.build()); - onChanged(); - } else { - iconCdnNodeViewBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder addIconCdnNodeView( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder builderForValue) { - if (iconCdnNodeViewBuilder_ == null) { - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.add(index, builderForValue.build()); - onChanged(); - } else { - iconCdnNodeViewBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder addAllIconCdnNodeView( - java.lang.Iterable values) { - if (iconCdnNodeViewBuilder_ == null) { - ensureIconCdnNodeViewIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, iconCdnNodeView_); - onChanged(); - } else { - iconCdnNodeViewBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder clearIconCdnNodeView() { - if (iconCdnNodeViewBuilder_ == null) { - iconCdnNodeView_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - iconCdnNodeViewBuilder_.clear(); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public Builder removeIconCdnNodeView(int index) { - if (iconCdnNodeViewBuilder_ == null) { - ensureIconCdnNodeViewIsMutable(); - iconCdnNodeView_.remove(index); - onChanged(); - } else { - iconCdnNodeViewBuilder_.remove(index); - } - return this; - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder getIconCdnNodeViewBuilder( - int index) { - return getIconCdnNodeViewFieldBuilder().getBuilder(index); - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder getIconCdnNodeViewOrBuilder( - int index) { - if (iconCdnNodeViewBuilder_ == null) { - return iconCdnNodeView_.get(index); } else { - return iconCdnNodeViewBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public java.util.List - getIconCdnNodeViewOrBuilderList() { - if (iconCdnNodeViewBuilder_ != null) { - return iconCdnNodeViewBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(iconCdnNodeView_); - } - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder addIconCdnNodeViewBuilder() { - return getIconCdnNodeViewFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.getDefaultInstance()); - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder addIconCdnNodeViewBuilder( - int index) { - return getIconCdnNodeViewFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.getDefaultInstance()); - } - /** - * repeated .LiveCdnNodeView iconCdnNodeView = 1; - */ - public java.util.List - getIconCdnNodeViewBuilderList() { - return getIconCdnNodeViewFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder> - getIconCdnNodeViewFieldBuilder() { - if (iconCdnNodeViewBuilder_ == null) { - iconCdnNodeViewBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder>( - iconCdnNodeView_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - iconCdnNodeView_ = null; - } - return iconCdnNodeViewBuilder_; - } - - private java.lang.Object title_ = ""; - /** - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - * string detail = 3; - * @return The detail. - */ - public java.lang.String getDetail() { - java.lang.Object ref = detail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - detail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string detail = 3; - * @return The bytes for detail. - */ - public com.google.protobuf.ByteString - getDetailBytes() { - java.lang.Object ref = detail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - detail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string detail = 3; - * @param value The detail to set. - * @return This builder for chaining. - */ - public Builder setDetail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - detail_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string detail = 3; - * @return This builder for chaining. - */ - public Builder clearDetail() { - detail_ = getDefaultInstance().getDetail(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string detail = 3; - * @param value The bytes for detail to set. - * @return This builder for chaining. - */ - public Builder setDetailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - detail_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:AuditAudienceMask) - } - - // @@protoc_insertion_point(class_scope:AuditAudienceMask) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditAudienceMask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_AuditAudienceMask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_AuditAudienceMask_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027AuditAudienceMask.proto\032\025LiveCdnNodeVi" + - "ew.proto\"]\n\021AuditAudienceMask\022)\n\017iconCdn" + - "NodeView\030\001 \003(\0132\020.LiveCdnNodeView\022\r\n\005titl" + - "e\030\002 \001(\t\022\016\n\006detail\030\003 \001(\tB6\n4tech.ordinary" + - "road.live.chat.client.kuaishou.protobufb" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.getDescriptor(), - }); - internal_static_AuditAudienceMask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_AuditAudienceMask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_AuditAudienceMask_descriptor, - new java.lang.String[] { "IconCdnNodeView", "Title", "Detail", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSErrorOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSErrorOuterClass.java deleted file mode 100644 index d1727084..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSErrorOuterClass.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSError.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSErrorOuterClass { - private CSErrorOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSError) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - * @return The code. - */ - int getCode(); - } - /** - * Protobuf type {@code CSError} - */ - public static final class CSError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSError) - CSErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSError.newBuilder() to construct. - private CSError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSError() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.internal_static_CSError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.internal_static_CSError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError) obj; - - if (getCode() - != other.getCode()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSError) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.internal_static_CSError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.internal_static_CSError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.internal_static_CSError_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 code = 1; - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSError) - } - - // @@protoc_insertion_point(class_scope:CSError) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSErrorOuterClass.CSError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rCSError.proto\"\027\n\007CSError\022\014\n\004code\030\001 \001(\r" + - "B6\n4tech.ordinaryroad.live.chat.client.k" + - "uaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CSError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSError_descriptor, - new java.lang.String[] { "Code", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSHeartbeatOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSHeartbeatOuterClass.java deleted file mode 100644 index 635a5777..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSHeartbeatOuterClass.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSHeartbeat.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSHeartbeatOuterClass { - private CSHeartbeatOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSHeartbeatOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSHeartbeat) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - * Protobuf type {@code CSHeartbeat} - */ - public static final class CSHeartbeat extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSHeartbeat) - CSHeartbeatOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSHeartbeat.newBuilder() to construct. - private CSHeartbeat(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSHeartbeat() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSHeartbeat(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.internal_static_CSHeartbeat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.internal_static_CSHeartbeat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.Builder.class); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_ = 0L; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != 0L) { - output.writeUInt64(1, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat) obj; - - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSHeartbeat} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSHeartbeat) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.internal_static_CSHeartbeat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.internal_static_CSHeartbeat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.internal_static_CSHeartbeat_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.timestamp_ = timestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat.getDefaultInstance()) return this; - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - timestamp_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long timestamp_ ; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 1; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 timestamp = 1; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSHeartbeat) - } - - // @@protoc_insertion_point(class_scope:CSHeartbeat) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSHeartbeat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSHeartbeatOuterClass.CSHeartbeat getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSHeartbeat_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSHeartbeat_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021CSHeartbeat.proto\" \n\013CSHeartbeat\022\021\n\tti" + - "mestamp\030\001 \001(\004B6\n4tech.ordinaryroad.live." + - "chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CSHeartbeat_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSHeartbeat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSHeartbeat_descriptor, - new java.lang.String[] { "Timestamp", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSPingOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSPingOuterClass.java deleted file mode 100644 index 1062bdc4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSPingOuterClass.java +++ /dev/null @@ -1,1029 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSPing.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSPingOuterClass { - private CSPingOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSPingOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSPing) - com.google.protobuf.MessageOrBuilder { - - /** - * string echoData = 1; - * @return The echoData. - */ - java.lang.String getEchoData(); - /** - * string echoData = 1; - * @return The bytes for echoData. - */ - com.google.protobuf.ByteString - getEchoDataBytes(); - - /** - * .ClientId clientId = 2; - * @return The enum numeric value on the wire for clientId. - */ - int getClientIdValue(); - /** - * .ClientId clientId = 2; - * @return The clientId. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId getClientId(); - - /** - * string deviceId = 3; - * @return The deviceId. - */ - java.lang.String getDeviceId(); - /** - * string deviceId = 3; - * @return The bytes for deviceId. - */ - com.google.protobuf.ByteString - getDeviceIdBytes(); - - /** - * string appVer = 4; - * @return The appVer. - */ - java.lang.String getAppVer(); - /** - * string appVer = 4; - * @return The bytes for appVer. - */ - com.google.protobuf.ByteString - getAppVerBytes(); - } - /** - * Protobuf type {@code CSPing} - */ - public static final class CSPing extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSPing) - CSPingOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSPing.newBuilder() to construct. - private CSPing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSPing() { - echoData_ = ""; - clientId_ = 0; - deviceId_ = ""; - appVer_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSPing(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.internal_static_CSPing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.internal_static_CSPing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.Builder.class); - } - - public static final int ECHODATA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object echoData_ = ""; - /** - * string echoData = 1; - * @return The echoData. - */ - @java.lang.Override - public java.lang.String getEchoData() { - java.lang.Object ref = echoData_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - echoData_ = s; - return s; - } - } - /** - * string echoData = 1; - * @return The bytes for echoData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEchoDataBytes() { - java.lang.Object ref = echoData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - echoData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENTID_FIELD_NUMBER = 2; - private int clientId_ = 0; - /** - * .ClientId clientId = 2; - * @return The enum numeric value on the wire for clientId. - */ - @java.lang.Override public int getClientIdValue() { - return clientId_; - } - /** - * .ClientId clientId = 2; - * @return The clientId. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId getClientId() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId.forNumber(clientId_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId.UNRECOGNIZED : result; - } - - public static final int DEVICEID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object deviceId_ = ""; - /** - * string deviceId = 3; - * @return The deviceId. - */ - @java.lang.Override - public java.lang.String getDeviceId() { - java.lang.Object ref = deviceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceId_ = s; - return s; - } - } - /** - * string deviceId = 3; - * @return The bytes for deviceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceIdBytes() { - java.lang.Object ref = deviceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPVER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object appVer_ = ""; - /** - * string appVer = 4; - * @return The appVer. - */ - @java.lang.Override - public java.lang.String getAppVer() { - java.lang.Object ref = appVer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appVer_ = s; - return s; - } - } - /** - * string appVer = 4; - * @return The bytes for appVer. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAppVerBytes() { - java.lang.Object ref = appVer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(echoData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, echoData_); - } - if (clientId_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId.NONE.getNumber()) { - output.writeEnum(2, clientId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appVer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appVer_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(echoData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, echoData_); - } - if (clientId_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId.NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, clientId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deviceId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appVer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appVer_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing) obj; - - if (!getEchoData() - .equals(other.getEchoData())) return false; - if (clientId_ != other.clientId_) return false; - if (!getDeviceId() - .equals(other.getDeviceId())) return false; - if (!getAppVer() - .equals(other.getAppVer())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ECHODATA_FIELD_NUMBER; - hash = (53 * hash) + getEchoData().hashCode(); - hash = (37 * hash) + CLIENTID_FIELD_NUMBER; - hash = (53 * hash) + clientId_; - hash = (37 * hash) + DEVICEID_FIELD_NUMBER; - hash = (53 * hash) + getDeviceId().hashCode(); - hash = (37 * hash) + APPVER_FIELD_NUMBER; - hash = (53 * hash) + getAppVer().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSPing} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSPing) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.internal_static_CSPing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.internal_static_CSPing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - echoData_ = ""; - clientId_ = 0; - deviceId_ = ""; - appVer_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.internal_static_CSPing_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.echoData_ = echoData_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clientId_ = clientId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.deviceId_ = deviceId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.appVer_ = appVer_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing.getDefaultInstance()) return this; - if (!other.getEchoData().isEmpty()) { - echoData_ = other.echoData_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.clientId_ != 0) { - setClientIdValue(other.getClientIdValue()); - } - if (!other.getDeviceId().isEmpty()) { - deviceId_ = other.deviceId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getAppVer().isEmpty()) { - appVer_ = other.appVer_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - echoData_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - clientId_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - deviceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - appVer_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object echoData_ = ""; - /** - * string echoData = 1; - * @return The echoData. - */ - public java.lang.String getEchoData() { - java.lang.Object ref = echoData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - echoData_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string echoData = 1; - * @return The bytes for echoData. - */ - public com.google.protobuf.ByteString - getEchoDataBytes() { - java.lang.Object ref = echoData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - echoData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string echoData = 1; - * @param value The echoData to set. - * @return This builder for chaining. - */ - public Builder setEchoData( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - echoData_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string echoData = 1; - * @return This builder for chaining. - */ - public Builder clearEchoData() { - echoData_ = getDefaultInstance().getEchoData(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string echoData = 1; - * @param value The bytes for echoData to set. - * @return This builder for chaining. - */ - public Builder setEchoDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - echoData_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int clientId_ = 0; - /** - * .ClientId clientId = 2; - * @return The enum numeric value on the wire for clientId. - */ - @java.lang.Override public int getClientIdValue() { - return clientId_; - } - /** - * .ClientId clientId = 2; - * @param value The enum numeric value on the wire for clientId to set. - * @return This builder for chaining. - */ - public Builder setClientIdValue(int value) { - clientId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .ClientId clientId = 2; - * @return The clientId. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId getClientId() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId.forNumber(clientId_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId.UNRECOGNIZED : result; - } - /** - * .ClientId clientId = 2; - * @param value The clientId to set. - * @return This builder for chaining. - */ - public Builder setClientId(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.ClientId value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - clientId_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ClientId clientId = 2; - * @return This builder for chaining. - */ - public Builder clearClientId() { - bitField0_ = (bitField0_ & ~0x00000002); - clientId_ = 0; - onChanged(); - return this; - } - - private java.lang.Object deviceId_ = ""; - /** - * string deviceId = 3; - * @return The deviceId. - */ - public java.lang.String getDeviceId() { - java.lang.Object ref = deviceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deviceId = 3; - * @return The bytes for deviceId. - */ - public com.google.protobuf.ByteString - getDeviceIdBytes() { - java.lang.Object ref = deviceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deviceId = 3; - * @param value The deviceId to set. - * @return This builder for chaining. - */ - public Builder setDeviceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - deviceId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string deviceId = 3; - * @return This builder for chaining. - */ - public Builder clearDeviceId() { - deviceId_ = getDefaultInstance().getDeviceId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string deviceId = 3; - * @param value The bytes for deviceId to set. - * @return This builder for chaining. - */ - public Builder setDeviceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - deviceId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object appVer_ = ""; - /** - * string appVer = 4; - * @return The appVer. - */ - public java.lang.String getAppVer() { - java.lang.Object ref = appVer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - appVer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string appVer = 4; - * @return The bytes for appVer. - */ - public com.google.protobuf.ByteString - getAppVerBytes() { - java.lang.Object ref = appVer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string appVer = 4; - * @param value The appVer to set. - * @return This builder for chaining. - */ - public Builder setAppVer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - appVer_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string appVer = 4; - * @return This builder for chaining. - */ - public Builder clearAppVer() { - appVer_ = getDefaultInstance().getAppVer(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string appVer = 4; - * @param value The bytes for appVer to set. - * @return This builder for chaining. - */ - public Builder setAppVerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - appVer_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSPing) - } - - // @@protoc_insertion_point(class_scope:CSPing) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSPing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSPingOuterClass.CSPing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSPing_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSPing_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014CSPing.proto\032\016ClientId.proto\"Y\n\006CSPing" + - "\022\020\n\010echoData\030\001 \001(\t\022\033\n\010clientId\030\002 \001(\0162\t.C" + - "lientId\022\020\n\010deviceId\030\003 \001(\t\022\016\n\006appVer\030\004 \001(" + - "\tB6\n4tech.ordinaryroad.live.chat.client." + - "kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.getDescriptor(), - }); - internal_static_CSPing_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSPing_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSPing_descriptor, - new java.lang.String[] { "EchoData", "ClientId", "DeviceId", "AppVer", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebEnterRoomOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebEnterRoomOuterClass.java deleted file mode 100644 index 8a6b1558..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebEnterRoomOuterClass.java +++ /dev/null @@ -1,1363 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSWebEnterRoom.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSWebEnterRoomOuterClass { - private CSWebEnterRoomOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSWebEnterRoomOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSWebEnterRoom) - com.google.protobuf.MessageOrBuilder { - - /** - * string token = 1; - * @return The token. - */ - java.lang.String getToken(); - /** - * string token = 1; - * @return The bytes for token. - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - * string liveStreamId = 2; - * @return The liveStreamId. - */ - java.lang.String getLiveStreamId(); - /** - * string liveStreamId = 2; - * @return The bytes for liveStreamId. - */ - com.google.protobuf.ByteString - getLiveStreamIdBytes(); - - /** - * uint32 reconnectCount = 3; - * @return The reconnectCount. - */ - int getReconnectCount(); - - /** - * uint32 lastErrorCode = 4; - * @return The lastErrorCode. - */ - int getLastErrorCode(); - - /** - * string expTag = 5; - * @return The expTag. - */ - java.lang.String getExpTag(); - /** - * string expTag = 5; - * @return The bytes for expTag. - */ - com.google.protobuf.ByteString - getExpTagBytes(); - - /** - * string attach = 6; - * @return The attach. - */ - java.lang.String getAttach(); - /** - * string attach = 6; - * @return The bytes for attach. - */ - com.google.protobuf.ByteString - getAttachBytes(); - - /** - * string pageId = 7; - * @return The pageId. - */ - java.lang.String getPageId(); - /** - * string pageId = 7; - * @return The bytes for pageId. - */ - com.google.protobuf.ByteString - getPageIdBytes(); - } - /** - * Protobuf type {@code CSWebEnterRoom} - */ - public static final class CSWebEnterRoom extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSWebEnterRoom) - CSWebEnterRoomOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSWebEnterRoom.newBuilder() to construct. - private CSWebEnterRoom(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSWebEnterRoom() { - token_ = ""; - liveStreamId_ = ""; - expTag_ = ""; - attach_ = ""; - pageId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSWebEnterRoom(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.internal_static_CSWebEnterRoom_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.internal_static_CSWebEnterRoom_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.Builder.class); - } - - public static final int TOKEN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object token_ = ""; - /** - * string token = 1; - * @return The token. - */ - @java.lang.Override - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - * string token = 1; - * @return The bytes for token. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIVESTREAMID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object liveStreamId_ = ""; - /** - * string liveStreamId = 2; - * @return The liveStreamId. - */ - @java.lang.Override - public java.lang.String getLiveStreamId() { - java.lang.Object ref = liveStreamId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - liveStreamId_ = s; - return s; - } - } - /** - * string liveStreamId = 2; - * @return The bytes for liveStreamId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getLiveStreamIdBytes() { - java.lang.Object ref = liveStreamId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - liveStreamId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RECONNECTCOUNT_FIELD_NUMBER = 3; - private int reconnectCount_ = 0; - /** - * uint32 reconnectCount = 3; - * @return The reconnectCount. - */ - @java.lang.Override - public int getReconnectCount() { - return reconnectCount_; - } - - public static final int LASTERRORCODE_FIELD_NUMBER = 4; - private int lastErrorCode_ = 0; - /** - * uint32 lastErrorCode = 4; - * @return The lastErrorCode. - */ - @java.lang.Override - public int getLastErrorCode() { - return lastErrorCode_; - } - - public static final int EXPTAG_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object expTag_ = ""; - /** - * string expTag = 5; - * @return The expTag. - */ - @java.lang.Override - public java.lang.String getExpTag() { - java.lang.Object ref = expTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expTag_ = s; - return s; - } - } - /** - * string expTag = 5; - * @return The bytes for expTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getExpTagBytes() { - java.lang.Object ref = expTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ATTACH_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object attach_ = ""; - /** - * string attach = 6; - * @return The attach. - */ - @java.lang.Override - public java.lang.String getAttach() { - java.lang.Object ref = attach_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attach_ = s; - return s; - } - } - /** - * string attach = 6; - * @return The bytes for attach. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAttachBytes() { - java.lang.Object ref = attach_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - attach_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGEID_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object pageId_ = ""; - /** - * string pageId = 7; - * @return The pageId. - */ - @java.lang.Override - public java.lang.String getPageId() { - java.lang.Object ref = pageId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageId_ = s; - return s; - } - } - /** - * string pageId = 7; - * @return The bytes for pageId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageIdBytes() { - java.lang.Object ref = pageId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(liveStreamId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, liveStreamId_); - } - if (reconnectCount_ != 0) { - output.writeUInt32(3, reconnectCount_); - } - if (lastErrorCode_ != 0) { - output.writeUInt32(4, lastErrorCode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expTag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, expTag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attach_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, attach_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, pageId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(liveStreamId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, liveStreamId_); - } - if (reconnectCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, reconnectCount_); - } - if (lastErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, lastErrorCode_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expTag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, expTag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attach_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, attach_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, pageId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom) obj; - - if (!getToken() - .equals(other.getToken())) return false; - if (!getLiveStreamId() - .equals(other.getLiveStreamId())) return false; - if (getReconnectCount() - != other.getReconnectCount()) return false; - if (getLastErrorCode() - != other.getLastErrorCode()) return false; - if (!getExpTag() - .equals(other.getExpTag())) return false; - if (!getAttach() - .equals(other.getAttach())) return false; - if (!getPageId() - .equals(other.getPageId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + LIVESTREAMID_FIELD_NUMBER; - hash = (53 * hash) + getLiveStreamId().hashCode(); - hash = (37 * hash) + RECONNECTCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getReconnectCount(); - hash = (37 * hash) + LASTERRORCODE_FIELD_NUMBER; - hash = (53 * hash) + getLastErrorCode(); - hash = (37 * hash) + EXPTAG_FIELD_NUMBER; - hash = (53 * hash) + getExpTag().hashCode(); - hash = (37 * hash) + ATTACH_FIELD_NUMBER; - hash = (53 * hash) + getAttach().hashCode(); - hash = (37 * hash) + PAGEID_FIELD_NUMBER; - hash = (53 * hash) + getPageId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSWebEnterRoom} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSWebEnterRoom) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoomOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.internal_static_CSWebEnterRoom_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.internal_static_CSWebEnterRoom_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - token_ = ""; - liveStreamId_ = ""; - reconnectCount_ = 0; - lastErrorCode_ = 0; - expTag_ = ""; - attach_ = ""; - pageId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.internal_static_CSWebEnterRoom_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.token_ = token_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.liveStreamId_ = liveStreamId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.reconnectCount_ = reconnectCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.lastErrorCode_ = lastErrorCode_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.expTag_ = expTag_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.attach_ = attach_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.pageId_ = pageId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom.getDefaultInstance()) return this; - if (!other.getToken().isEmpty()) { - token_ = other.token_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getLiveStreamId().isEmpty()) { - liveStreamId_ = other.liveStreamId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getReconnectCount() != 0) { - setReconnectCount(other.getReconnectCount()); - } - if (other.getLastErrorCode() != 0) { - setLastErrorCode(other.getLastErrorCode()); - } - if (!other.getExpTag().isEmpty()) { - expTag_ = other.expTag_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getAttach().isEmpty()) { - attach_ = other.attach_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (!other.getPageId().isEmpty()) { - pageId_ = other.pageId_; - bitField0_ |= 0x00000040; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - liveStreamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - reconnectCount_ = input.readUInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - lastErrorCode_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - expTag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - attach_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - pageId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object token_ = ""; - /** - * string token = 1; - * @return The token. - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string token = 1; - * @return The bytes for token. - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string token = 1; - * @param value The token to set. - * @return This builder for chaining. - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - token_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string token = 1; - * @return This builder for chaining. - */ - public Builder clearToken() { - token_ = getDefaultInstance().getToken(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string token = 1; - * @param value The bytes for token to set. - * @return This builder for chaining. - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - token_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object liveStreamId_ = ""; - /** - * string liveStreamId = 2; - * @return The liveStreamId. - */ - public java.lang.String getLiveStreamId() { - java.lang.Object ref = liveStreamId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - liveStreamId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string liveStreamId = 2; - * @return The bytes for liveStreamId. - */ - public com.google.protobuf.ByteString - getLiveStreamIdBytes() { - java.lang.Object ref = liveStreamId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - liveStreamId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string liveStreamId = 2; - * @param value The liveStreamId to set. - * @return This builder for chaining. - */ - public Builder setLiveStreamId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - liveStreamId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string liveStreamId = 2; - * @return This builder for chaining. - */ - public Builder clearLiveStreamId() { - liveStreamId_ = getDefaultInstance().getLiveStreamId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string liveStreamId = 2; - * @param value The bytes for liveStreamId to set. - * @return This builder for chaining. - */ - public Builder setLiveStreamIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - liveStreamId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int reconnectCount_ ; - /** - * uint32 reconnectCount = 3; - * @return The reconnectCount. - */ - @java.lang.Override - public int getReconnectCount() { - return reconnectCount_; - } - /** - * uint32 reconnectCount = 3; - * @param value The reconnectCount to set. - * @return This builder for chaining. - */ - public Builder setReconnectCount(int value) { - - reconnectCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 reconnectCount = 3; - * @return This builder for chaining. - */ - public Builder clearReconnectCount() { - bitField0_ = (bitField0_ & ~0x00000004); - reconnectCount_ = 0; - onChanged(); - return this; - } - - private int lastErrorCode_ ; - /** - * uint32 lastErrorCode = 4; - * @return The lastErrorCode. - */ - @java.lang.Override - public int getLastErrorCode() { - return lastErrorCode_; - } - /** - * uint32 lastErrorCode = 4; - * @param value The lastErrorCode to set. - * @return This builder for chaining. - */ - public Builder setLastErrorCode(int value) { - - lastErrorCode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 lastErrorCode = 4; - * @return This builder for chaining. - */ - public Builder clearLastErrorCode() { - bitField0_ = (bitField0_ & ~0x00000008); - lastErrorCode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object expTag_ = ""; - /** - * string expTag = 5; - * @return The expTag. - */ - public java.lang.String getExpTag() { - java.lang.Object ref = expTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string expTag = 5; - * @return The bytes for expTag. - */ - public com.google.protobuf.ByteString - getExpTagBytes() { - java.lang.Object ref = expTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - expTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string expTag = 5; - * @param value The expTag to set. - * @return This builder for chaining. - */ - public Builder setExpTag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - expTag_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string expTag = 5; - * @return This builder for chaining. - */ - public Builder clearExpTag() { - expTag_ = getDefaultInstance().getExpTag(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string expTag = 5; - * @param value The bytes for expTag to set. - * @return This builder for chaining. - */ - public Builder setExpTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - expTag_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object attach_ = ""; - /** - * string attach = 6; - * @return The attach. - */ - public java.lang.String getAttach() { - java.lang.Object ref = attach_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - attach_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string attach = 6; - * @return The bytes for attach. - */ - public com.google.protobuf.ByteString - getAttachBytes() { - java.lang.Object ref = attach_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - attach_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string attach = 6; - * @param value The attach to set. - * @return This builder for chaining. - */ - public Builder setAttach( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - attach_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string attach = 6; - * @return This builder for chaining. - */ - public Builder clearAttach() { - attach_ = getDefaultInstance().getAttach(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string attach = 6; - * @param value The bytes for attach to set. - * @return This builder for chaining. - */ - public Builder setAttachBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - attach_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.lang.Object pageId_ = ""; - /** - * string pageId = 7; - * @return The pageId. - */ - public java.lang.String getPageId() { - java.lang.Object ref = pageId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string pageId = 7; - * @return The bytes for pageId. - */ - public com.google.protobuf.ByteString - getPageIdBytes() { - java.lang.Object ref = pageId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string pageId = 7; - * @param value The pageId to set. - * @return This builder for chaining. - */ - public Builder setPageId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * string pageId = 7; - * @return This builder for chaining. - */ - public Builder clearPageId() { - pageId_ = getDefaultInstance().getPageId(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * string pageId = 7; - * @param value The bytes for pageId to set. - * @return This builder for chaining. - */ - public Builder setPageIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSWebEnterRoom) - } - - // @@protoc_insertion_point(class_scope:CSWebEnterRoom) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSWebEnterRoom parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebEnterRoomOuterClass.CSWebEnterRoom getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSWebEnterRoom_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSWebEnterRoom_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CSWebEnterRoom.proto\"\224\001\n\016CSWebEnterRoo" + - "m\022\r\n\005token\030\001 \001(\t\022\024\n\014liveStreamId\030\002 \001(\t\022\026" + - "\n\016reconnectCount\030\003 \001(\r\022\025\n\rlastErrorCode\030" + - "\004 \001(\r\022\016\n\006expTag\030\005 \001(\t\022\016\n\006attach\030\006 \001(\t\022\016\n" + - "\006pageId\030\007 \001(\tB6\n4tech.ordinaryroad.live." + - "chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CSWebEnterRoom_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSWebEnterRoom_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSWebEnterRoom_descriptor, - new java.lang.String[] { "Token", "LiveStreamId", "ReconnectCount", "LastErrorCode", "ExpTag", "Attach", "PageId", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebErrorOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebErrorOuterClass.java deleted file mode 100644 index 7eacbd52..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebErrorOuterClass.java +++ /dev/null @@ -1,697 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSWebError.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSWebErrorOuterClass { - private CSWebErrorOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSWebErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSWebError) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - * @return The code. - */ - int getCode(); - - /** - * string msg = 2; - * @return The msg. - */ - java.lang.String getMsg(); - /** - * string msg = 2; - * @return The bytes for msg. - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code CSWebError} - */ - public static final class CSWebError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSWebError) - CSWebErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSWebError.newBuilder() to construct. - private CSWebError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSWebError() { - msg_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSWebError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.internal_static_CSWebError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.internal_static_CSWebError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - public static final int MSG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - @java.lang.Override - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError) obj; - - if (getCode() - != other.getCode()) return false; - if (!getMsg() - .equals(other.getMsg())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSWebError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSWebError) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.internal_static_CSWebError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.internal_static_CSWebError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - msg_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.internal_static_CSWebError_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.msg_ = msg_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getMsg().isEmpty()) { - msg_ = other.msg_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - msg_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 code = 1; - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg = 2; - * @param value The msg to set. - * @return This builder for chaining. - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string msg = 2; - * @return This builder for chaining. - */ - public Builder clearMsg() { - msg_ = getDefaultInstance().getMsg(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string msg = 2; - * @param value The bytes for msg to set. - * @return This builder for chaining. - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSWebError) - } - - // @@protoc_insertion_point(class_scope:CSWebError) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSWebError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebErrorOuterClass.CSWebError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSWebError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSWebError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020CSWebError.proto\"\'\n\nCSWebError\022\014\n\004code" + - "\030\001 \001(\r\022\013\n\003msg\030\002 \001(\tB6\n4tech.ordinaryroad" + - ".live.chat.client.kuaishou.protobufb\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CSWebError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSWebError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSWebError_descriptor, - new java.lang.String[] { "Code", "Msg", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebHeartbeatOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebHeartbeatOuterClass.java deleted file mode 100644 index f2c5d4e9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebHeartbeatOuterClass.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSWebHeartbeat.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSWebHeartbeatOuterClass { - private CSWebHeartbeatOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSWebHeartbeatOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSWebHeartbeat) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - * Protobuf type {@code CSWebHeartbeat} - */ - public static final class CSWebHeartbeat extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSWebHeartbeat) - CSWebHeartbeatOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSWebHeartbeat.newBuilder() to construct. - private CSWebHeartbeat(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSWebHeartbeat() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSWebHeartbeat(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.internal_static_CSWebHeartbeat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.internal_static_CSWebHeartbeat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.Builder.class); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_ = 0L; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != 0L) { - output.writeUInt64(1, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat) obj; - - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSWebHeartbeat} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSWebHeartbeat) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.internal_static_CSWebHeartbeat_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.internal_static_CSWebHeartbeat_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.internal_static_CSWebHeartbeat_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.timestamp_ = timestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat.getDefaultInstance()) return this; - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - timestamp_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long timestamp_ ; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 1; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 timestamp = 1; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSWebHeartbeat) - } - - // @@protoc_insertion_point(class_scope:CSWebHeartbeat) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSWebHeartbeat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebHeartbeatOuterClass.CSWebHeartbeat getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSWebHeartbeat_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSWebHeartbeat_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CSWebHeartbeat.proto\"#\n\016CSWebHeartbeat" + - "\022\021\n\ttimestamp\030\001 \001(\004B6\n4tech.ordinaryroad" + - ".live.chat.client.kuaishou.protobufb\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CSWebHeartbeat_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSWebHeartbeat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSWebHeartbeat_descriptor, - new java.lang.String[] { "Timestamp", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebUserExitOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebUserExitOuterClass.java deleted file mode 100644 index ebd72e51..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebUserExitOuterClass.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSWebUserExit.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSWebUserExitOuterClass { - private CSWebUserExitOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSWebUserExitOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSWebUserExit) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - } - /** - * Protobuf type {@code CSWebUserExit} - */ - public static final class CSWebUserExit extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSWebUserExit) - CSWebUserExitOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSWebUserExit.newBuilder() to construct. - private CSWebUserExit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSWebUserExit() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSWebUserExit(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.internal_static_CSWebUserExit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.internal_static_CSWebUserExit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit) obj; - - if (getTime() - != other.getTime()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSWebUserExit} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSWebUserExit) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.internal_static_CSWebUserExit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.internal_static_CSWebUserExit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.internal_static_CSWebUserExit_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSWebUserExit) - } - - // @@protoc_insertion_point(class_scope:CSWebUserExit) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSWebUserExit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserExitOuterClass.CSWebUserExit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSWebUserExit_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSWebUserExit_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023CSWebUserExit.proto\"\035\n\rCSWebUserExit\022\014" + - "\n\004time\030\001 \001(\004B6\n4tech.ordinaryroad.live.c" + - "hat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_CSWebUserExit_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSWebUserExit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSWebUserExit_descriptor, - new java.lang.String[] { "Time", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebUserPauseOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebUserPauseOuterClass.java deleted file mode 100644 index a5527f18..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/CSWebUserPauseOuterClass.java +++ /dev/null @@ -1,658 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CSWebUserPause.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class CSWebUserPauseOuterClass { - private CSWebUserPauseOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CSWebUserPauseOrBuilder extends - // @@protoc_insertion_point(interface_extends:CSWebUserPause) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - - /** - * .WebUserPauseType pauseType = 2; - * @return The enum numeric value on the wire for pauseType. - */ - int getPauseTypeValue(); - /** - * .WebUserPauseType pauseType = 2; - * @return The pauseType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType getPauseType(); - } - /** - * Protobuf type {@code CSWebUserPause} - */ - public static final class CSWebUserPause extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:CSWebUserPause) - CSWebUserPauseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CSWebUserPause.newBuilder() to construct. - private CSWebUserPause(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CSWebUserPause() { - pauseType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CSWebUserPause(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.internal_static_CSWebUserPause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.internal_static_CSWebUserPause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int PAUSETYPE_FIELD_NUMBER = 2; - private int pauseType_ = 0; - /** - * .WebUserPauseType pauseType = 2; - * @return The enum numeric value on the wire for pauseType. - */ - @java.lang.Override public int getPauseTypeValue() { - return pauseType_; - } - /** - * .WebUserPauseType pauseType = 2; - * @return The pauseType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType getPauseType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType.forNumber(pauseType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - if (pauseType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType.UNKNOWN_USER_PAUSE_TYPE.getNumber()) { - output.writeEnum(2, pauseType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - if (pauseType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType.UNKNOWN_USER_PAUSE_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, pauseType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause) obj; - - if (getTime() - != other.getTime()) return false; - if (pauseType_ != other.pauseType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + PAUSETYPE_FIELD_NUMBER; - hash = (53 * hash) + pauseType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CSWebUserPause} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:CSWebUserPause) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPauseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.internal_static_CSWebUserPause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.internal_static_CSWebUserPause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - pauseType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.internal_static_CSWebUserPause_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pauseType_ = pauseType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (other.pauseType_ != 0) { - setPauseTypeValue(other.getPauseTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - pauseType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - - private int pauseType_ = 0; - /** - * .WebUserPauseType pauseType = 2; - * @return The enum numeric value on the wire for pauseType. - */ - @java.lang.Override public int getPauseTypeValue() { - return pauseType_; - } - /** - * .WebUserPauseType pauseType = 2; - * @param value The enum numeric value on the wire for pauseType to set. - * @return This builder for chaining. - */ - public Builder setPauseTypeValue(int value) { - pauseType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .WebUserPauseType pauseType = 2; - * @return The pauseType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType getPauseType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType.forNumber(pauseType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType.UNRECOGNIZED : result; - } - /** - * .WebUserPauseType pauseType = 2; - * @param value The pauseType to set. - * @return This builder for chaining. - */ - public Builder setPauseType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.WebUserPauseType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - pauseType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebUserPauseType pauseType = 2; - * @return This builder for chaining. - */ - public Builder clearPauseType() { - bitField0_ = (bitField0_ & ~0x00000002); - pauseType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:CSWebUserPause) - } - - // @@protoc_insertion_point(class_scope:CSWebUserPause) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CSWebUserPause parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.CSWebUserPauseOuterClass.CSWebUserPause getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_CSWebUserPause_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_CSWebUserPause_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024CSWebUserPause.proto\032\026WebUserPauseType" + - ".proto\"D\n\016CSWebUserPause\022\014\n\004time\030\001 \001(\004\022$" + - "\n\tpauseType\030\002 \001(\0162\021.WebUserPauseTypeB6\n4" + - "tech.ordinaryroad.live.chat.client.kuais" + - "hou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.getDescriptor(), - }); - internal_static_CSWebUserPause_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_CSWebUserPause_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_CSWebUserPause_descriptor, - new java.lang.String[] { "Time", "PauseType", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ClientIdOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ClientIdOuterClass.java deleted file mode 100644 index 41434dea..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ClientIdOuterClass.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ClientId.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class ClientIdOuterClass { - private ClientIdOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ClientId} - */ - public enum ClientId - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NONE = 0; - */ - NONE(0), - /** - * IPHONE = 1; - */ - IPHONE(1), - /** - * ANDROID = 2; - */ - ANDROID(2), - /** - * WEB = 3; - */ - WEB(3), - /** - * PC = 6; - */ - PC(6), - /** - * IPHONE_LIVE_MATE = 8; - */ - IPHONE_LIVE_MATE(8), - /** - * ANDROID_LIVE_MATE = 9; - */ - ANDROID_LIVE_MATE(9), - UNRECOGNIZED(-1), - ; - - /** - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - /** - * IPHONE = 1; - */ - public static final int IPHONE_VALUE = 1; - /** - * ANDROID = 2; - */ - public static final int ANDROID_VALUE = 2; - /** - * WEB = 3; - */ - public static final int WEB_VALUE = 3; - /** - * PC = 6; - */ - public static final int PC_VALUE = 6; - /** - * IPHONE_LIVE_MATE = 8; - */ - public static final int IPHONE_LIVE_MATE_VALUE = 8; - /** - * ANDROID_LIVE_MATE = 9; - */ - public static final int ANDROID_LIVE_MATE_VALUE = 9; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ClientId valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ClientId forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return IPHONE; - case 2: return ANDROID; - case 3: return WEB; - case 6: return PC; - case 8: return IPHONE_LIVE_MATE; - case 9: return ANDROID_LIVE_MATE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ClientId> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ClientId findValueByNumber(int number) { - return ClientId.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ClientIdOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ClientId[] VALUES = values(); - - public static ClientId valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ClientId(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ClientId) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016ClientId.proto*k\n\010ClientId\022\010\n\004NONE\020\000\022\n" + - "\n\006IPHONE\020\001\022\013\n\007ANDROID\020\002\022\007\n\003WEB\020\003\022\006\n\002PC\020\006" + - "\022\024\n\020IPHONE_LIVE_MATE\020\010\022\025\n\021ANDROID_LIVE_M" + - "ATE\020\tB6\n4tech.ordinaryroad.live.chat.cli" + - "ent.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ConfigSwitchItemOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ConfigSwitchItemOuterClass.java deleted file mode 100644 index f73716d1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ConfigSwitchItemOuterClass.java +++ /dev/null @@ -1,658 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ConfigSwitchItem.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class ConfigSwitchItemOuterClass { - private ConfigSwitchItemOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ConfigSwitchItemOrBuilder extends - // @@protoc_insertion_point(interface_extends:ConfigSwitchItem) - com.google.protobuf.MessageOrBuilder { - - /** - * .ConfigSwitchType configSwitchType = 1; - * @return The enum numeric value on the wire for configSwitchType. - */ - int getConfigSwitchTypeValue(); - /** - * .ConfigSwitchType configSwitchType = 1; - * @return The configSwitchType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType getConfigSwitchType(); - - /** - * bool value = 2; - * @return The value. - */ - boolean getValue(); - } - /** - * Protobuf type {@code ConfigSwitchItem} - */ - public static final class ConfigSwitchItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:ConfigSwitchItem) - ConfigSwitchItemOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigSwitchItem.newBuilder() to construct. - private ConfigSwitchItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigSwitchItem() { - configSwitchType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConfigSwitchItem(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.internal_static_ConfigSwitchItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.internal_static_ConfigSwitchItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder.class); - } - - public static final int CONFIGSWITCHTYPE_FIELD_NUMBER = 1; - private int configSwitchType_ = 0; - /** - * .ConfigSwitchType configSwitchType = 1; - * @return The enum numeric value on the wire for configSwitchType. - */ - @java.lang.Override public int getConfigSwitchTypeValue() { - return configSwitchType_; - } - /** - * .ConfigSwitchType configSwitchType = 1; - * @return The configSwitchType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType getConfigSwitchType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType.forNumber(configSwitchType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private boolean value_ = false; - /** - * bool value = 2; - * @return The value. - */ - @java.lang.Override - public boolean getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (configSwitchType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType.UNKNOWN.getNumber()) { - output.writeEnum(1, configSwitchType_); - } - if (value_ != false) { - output.writeBool(2, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (configSwitchType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, configSwitchType_); - } - if (value_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, value_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem) obj; - - if (configSwitchType_ != other.configSwitchType_) return false; - if (getValue() - != other.getValue()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONFIGSWITCHTYPE_FIELD_NUMBER; - hash = (53 * hash) + configSwitchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValue()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ConfigSwitchItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:ConfigSwitchItem) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.internal_static_ConfigSwitchItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.internal_static_ConfigSwitchItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - configSwitchType_ = 0; - value_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.internal_static_ConfigSwitchItem_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.configSwitchType_ = configSwitchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.getDefaultInstance()) return this; - if (other.configSwitchType_ != 0) { - setConfigSwitchTypeValue(other.getConfigSwitchTypeValue()); - } - if (other.getValue() != false) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - configSwitchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - value_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int configSwitchType_ = 0; - /** - * .ConfigSwitchType configSwitchType = 1; - * @return The enum numeric value on the wire for configSwitchType. - */ - @java.lang.Override public int getConfigSwitchTypeValue() { - return configSwitchType_; - } - /** - * .ConfigSwitchType configSwitchType = 1; - * @param value The enum numeric value on the wire for configSwitchType to set. - * @return This builder for chaining. - */ - public Builder setConfigSwitchTypeValue(int value) { - configSwitchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .ConfigSwitchType configSwitchType = 1; - * @return The configSwitchType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType getConfigSwitchType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType.forNumber(configSwitchType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType.UNRECOGNIZED : result; - } - /** - * .ConfigSwitchType configSwitchType = 1; - * @param value The configSwitchType to set. - * @return This builder for chaining. - */ - public Builder setConfigSwitchType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.ConfigSwitchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - configSwitchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .ConfigSwitchType configSwitchType = 1; - * @return This builder for chaining. - */ - public Builder clearConfigSwitchType() { - bitField0_ = (bitField0_ & ~0x00000001); - configSwitchType_ = 0; - onChanged(); - return this; - } - - private boolean value_ ; - /** - * bool value = 2; - * @return The value. - */ - @java.lang.Override - public boolean getValue() { - return value_; - } - /** - * bool value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(boolean value) { - - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:ConfigSwitchItem) - } - - // @@protoc_insertion_point(class_scope:ConfigSwitchItem) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSwitchItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_ConfigSwitchItem_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_ConfigSwitchItem_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026ConfigSwitchItem.proto\032\026ConfigSwitchTy" + - "pe.proto\"N\n\020ConfigSwitchItem\022+\n\020configSw" + - "itchType\030\001 \001(\0162\021.ConfigSwitchType\022\r\n\005val" + - "ue\030\002 \001(\010B6\n4tech.ordinaryroad.live.chat." + - "client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.getDescriptor(), - }); - internal_static_ConfigSwitchItem_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ConfigSwitchItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_ConfigSwitchItem_descriptor, - new java.lang.String[] { "ConfigSwitchType", "Value", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ConfigSwitchTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ConfigSwitchTypeOuterClass.java deleted file mode 100644 index 0a53ef22..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/ConfigSwitchTypeOuterClass.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ConfigSwitchType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class ConfigSwitchTypeOuterClass { - private ConfigSwitchTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code ConfigSwitchType} - */ - public enum ConfigSwitchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * HIDE_BARRAGE = 1; - */ - HIDE_BARRAGE(1), - /** - * HIDE_SPECIAL_EFFECT = 2; - */ - HIDE_SPECIAL_EFFECT(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * HIDE_BARRAGE = 1; - */ - public static final int HIDE_BARRAGE_VALUE = 1; - /** - * HIDE_SPECIAL_EFFECT = 2; - */ - public static final int HIDE_SPECIAL_EFFECT_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConfigSwitchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ConfigSwitchType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return HIDE_BARRAGE; - case 2: return HIDE_SPECIAL_EFFECT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ConfigSwitchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConfigSwitchType findValueByNumber(int number) { - return ConfigSwitchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ConfigSwitchType[] VALUES = values(); - - public static ConfigSwitchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ConfigSwitchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ConfigSwitchType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026ConfigSwitchType.proto*J\n\020ConfigSwitch" + - "Type\022\013\n\007UNKNOWN\020\000\022\020\n\014HIDE_BARRAGE\020\001\022\027\n\023H" + - "IDE_SPECIAL_EFFECT\020\002B6\n4tech.ordinaryroa" + - "d.live.chat.client.kuaishou.protobufb\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/GzoneNameplateOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/GzoneNameplateOuterClass.java deleted file mode 100644 index 318cd1d5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/GzoneNameplateOuterClass.java +++ /dev/null @@ -1,1079 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GzoneNameplate.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class GzoneNameplateOuterClass { - private GzoneNameplateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GzoneNameplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:GzoneNameplate) - com.google.protobuf.MessageOrBuilder { - - /** - * int64 id = 1; - * @return The id. - */ - long getId(); - - /** - * string name = 2; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 2; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .PicUrl urls = 3; - */ - java.util.List - getUrlsList(); - /** - * repeated .PicUrl urls = 3; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getUrls(int index); - /** - * repeated .PicUrl urls = 3; - */ - int getUrlsCount(); - /** - * repeated .PicUrl urls = 3; - */ - java.util.List - getUrlsOrBuilderList(); - /** - * repeated .PicUrl urls = 3; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getUrlsOrBuilder( - int index); - } - /** - * Protobuf type {@code GzoneNameplate} - */ - public static final class GzoneNameplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:GzoneNameplate) - GzoneNameplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use GzoneNameplate.newBuilder() to construct. - private GzoneNameplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GzoneNameplate() { - name_ = ""; - urls_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GzoneNameplate(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.internal_static_GzoneNameplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.internal_static_GzoneNameplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private long id_ = 0L; - /** - * int64 id = 1; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - - public static final int NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * string name = 2; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URLS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List urls_; - /** - * repeated .PicUrl urls = 3; - */ - @java.lang.Override - public java.util.List getUrlsList() { - return urls_; - } - /** - * repeated .PicUrl urls = 3; - */ - @java.lang.Override - public java.util.List - getUrlsOrBuilderList() { - return urls_; - } - /** - * repeated .PicUrl urls = 3; - */ - @java.lang.Override - public int getUrlsCount() { - return urls_.size(); - } - /** - * repeated .PicUrl urls = 3; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getUrls(int index) { - return urls_.get(index); - } - /** - * repeated .PicUrl urls = 3; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getUrlsOrBuilder( - int index) { - return urls_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (id_ != 0L) { - output.writeInt64(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - for (int i = 0; i < urls_.size(); i++) { - output.writeMessage(3, urls_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (id_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - for (int i = 0; i < urls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, urls_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate) obj; - - if (getId() - != other.getId()) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getUrlsList() - .equals(other.getUrlsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getId()); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getUrlsCount() > 0) { - hash = (37 * hash) + URLS_FIELD_NUMBER; - hash = (53 * hash) + getUrlsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code GzoneNameplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:GzoneNameplate) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.internal_static_GzoneNameplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.internal_static_GzoneNameplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = 0L; - name_ = ""; - if (urlsBuilder_ == null) { - urls_ = java.util.Collections.emptyList(); - } else { - urls_ = null; - urlsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.internal_static_GzoneNameplate_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate result) { - if (urlsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - urls_ = java.util.Collections.unmodifiableList(urls_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.urls_ = urls_; - } else { - result.urls_ = urlsBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance()) return this; - if (other.getId() != 0L) { - setId(other.getId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (urlsBuilder_ == null) { - if (!other.urls_.isEmpty()) { - if (urls_.isEmpty()) { - urls_ = other.urls_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureUrlsIsMutable(); - urls_.addAll(other.urls_); - } - onChanged(); - } - } else { - if (!other.urls_.isEmpty()) { - if (urlsBuilder_.isEmpty()) { - urlsBuilder_.dispose(); - urlsBuilder_ = null; - urls_ = other.urls_; - bitField0_ = (bitField0_ & ~0x00000004); - urlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUrlsFieldBuilder() : null; - } else { - urlsBuilder_.addAllMessages(other.urls_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - id_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.parser(), - extensionRegistry); - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.add(m); - } else { - urlsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long id_ ; - /** - * int64 id = 1; - * @return The id. - */ - @java.lang.Override - public long getId() { - return id_; - } - /** - * int64 id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(long value) { - - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * int64 id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string name = 2; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string name = 2; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List urls_ = - java.util.Collections.emptyList(); - private void ensureUrlsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - urls_ = new java.util.ArrayList(urls_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder> urlsBuilder_; - - /** - * repeated .PicUrl urls = 3; - */ - public java.util.List getUrlsList() { - if (urlsBuilder_ == null) { - return java.util.Collections.unmodifiableList(urls_); - } else { - return urlsBuilder_.getMessageList(); - } - } - /** - * repeated .PicUrl urls = 3; - */ - public int getUrlsCount() { - if (urlsBuilder_ == null) { - return urls_.size(); - } else { - return urlsBuilder_.getCount(); - } - } - /** - * repeated .PicUrl urls = 3; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getUrls(int index) { - if (urlsBuilder_ == null) { - return urls_.get(index); - } else { - return urlsBuilder_.getMessage(index); - } - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder setUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (urlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlsIsMutable(); - urls_.set(index, value); - onChanged(); - } else { - urlsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder setUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.set(index, builderForValue.build()); - onChanged(); - } else { - urlsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder addUrls(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (urlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlsIsMutable(); - urls_.add(value); - onChanged(); - } else { - urlsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder addUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (urlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUrlsIsMutable(); - urls_.add(index, value); - onChanged(); - } else { - urlsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder addUrls( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.add(builderForValue.build()); - onChanged(); - } else { - urlsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder addUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.add(index, builderForValue.build()); - onChanged(); - } else { - urlsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder addAllUrls( - java.lang.Iterable values) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, urls_); - onChanged(); - } else { - urlsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder clearUrls() { - if (urlsBuilder_ == null) { - urls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - urlsBuilder_.clear(); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public Builder removeUrls(int index) { - if (urlsBuilder_ == null) { - ensureUrlsIsMutable(); - urls_.remove(index); - onChanged(); - } else { - urlsBuilder_.remove(index); - } - return this; - } - /** - * repeated .PicUrl urls = 3; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder getUrlsBuilder( - int index) { - return getUrlsFieldBuilder().getBuilder(index); - } - /** - * repeated .PicUrl urls = 3; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getUrlsOrBuilder( - int index) { - if (urlsBuilder_ == null) { - return urls_.get(index); } else { - return urlsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .PicUrl urls = 3; - */ - public java.util.List - getUrlsOrBuilderList() { - if (urlsBuilder_ != null) { - return urlsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(urls_); - } - } - /** - * repeated .PicUrl urls = 3; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder addUrlsBuilder() { - return getUrlsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()); - } - /** - * repeated .PicUrl urls = 3; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder addUrlsBuilder( - int index) { - return getUrlsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()); - } - /** - * repeated .PicUrl urls = 3; - */ - public java.util.List - getUrlsBuilderList() { - return getUrlsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder> - getUrlsFieldBuilder() { - if (urlsBuilder_ == null) { - urlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder>( - urls_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - urls_ = null; - } - return urlsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:GzoneNameplate) - } - - // @@protoc_insertion_point(class_scope:GzoneNameplate) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GzoneNameplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_GzoneNameplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_GzoneNameplate_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024GzoneNameplate.proto\032\014PicUrl.proto\"A\n\016" + - "GzoneNameplate\022\n\n\002id\030\001 \001(\003\022\014\n\004name\030\002 \001(\t" + - "\022\025\n\004urls\030\003 \003(\0132\007.PicUrlB6\n4tech.ordinary" + - "road.live.chat.client.kuaishou.protobufb" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.getDescriptor(), - }); - internal_static_GzoneNameplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_GzoneNameplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_GzoneNameplate_descriptor, - new java.lang.String[] { "Id", "Name", "Urls", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveAudienceStateOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveAudienceStateOuterClass.java deleted file mode 100644 index b5f94ecb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveAudienceStateOuterClass.java +++ /dev/null @@ -1,1541 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: LiveAudienceState.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class LiveAudienceStateOuterClass { - private LiveAudienceStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface LiveAudienceStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:LiveAudienceState) - com.google.protobuf.MessageOrBuilder { - - /** - * bool isFromFansTop = 1; - * @return The isFromFansTop. - */ - boolean getIsFromFansTop(); - - /** - * bool isKoi = 2; - * @return The isKoi. - */ - boolean getIsKoi(); - - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return The enum numeric value on the wire for assistantType. - */ - int getAssistantTypeValue(); - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return The assistantType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType getAssistantType(); - - /** - * uint32 fansGroupIntimacyLevel = 4; - * @return The fansGroupIntimacyLevel. - */ - int getFansGroupIntimacyLevel(); - - /** - * .GzoneNameplate nameplate = 5; - * @return Whether the nameplate field is set. - */ - boolean hasNameplate(); - /** - * .GzoneNameplate nameplate = 5; - * @return The nameplate. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate getNameplate(); - /** - * .GzoneNameplate nameplate = 5; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder getNameplateOrBuilder(); - - /** - * .LiveFansGroupState liveFansGroupState = 6; - * @return Whether the liveFansGroupState field is set. - */ - boolean hasLiveFansGroupState(); - /** - * .LiveFansGroupState liveFansGroupState = 6; - * @return The liveFansGroupState. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState getLiveFansGroupState(); - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder getLiveFansGroupStateOrBuilder(); - - /** - * uint32 wealthGrade = 7; - * @return The wealthGrade. - */ - int getWealthGrade(); - - /** - * string badgeKey = 8; - * @return The badgeKey. - */ - java.lang.String getBadgeKey(); - /** - * string badgeKey = 8; - * @return The bytes for badgeKey. - */ - com.google.protobuf.ByteString - getBadgeKeyBytes(); - } - /** - * Protobuf type {@code LiveAudienceState} - */ - public static final class LiveAudienceState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LiveAudienceState) - LiveAudienceStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiveAudienceState.newBuilder() to construct. - private LiveAudienceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiveAudienceState() { - assistantType_ = 0; - badgeKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiveAudienceState(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.internal_static_LiveAudienceState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.internal_static_LiveAudienceState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder.class); - } - - /** - * Protobuf enum {@code LiveAudienceState.AssistantType} - */ - public enum AssistantType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_ASSISTANT_TYPE = 0; - */ - UNKNOWN_ASSISTANT_TYPE(0), - /** - * SUPER = 1; - */ - SUPER(1), - /** - * JUNIOR = 2; - */ - JUNIOR(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_ASSISTANT_TYPE = 0; - */ - public static final int UNKNOWN_ASSISTANT_TYPE_VALUE = 0; - /** - * SUPER = 1; - */ - public static final int SUPER_VALUE = 1; - /** - * JUNIOR = 2; - */ - public static final int JUNIOR_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AssistantType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AssistantType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_ASSISTANT_TYPE; - case 1: return SUPER; - case 2: return JUNIOR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AssistantType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AssistantType findValueByNumber(int number) { - return AssistantType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDescriptor().getEnumTypes().get(0); - } - - private static final AssistantType[] VALUES = values(); - - public static AssistantType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AssistantType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:LiveAudienceState.AssistantType) - } - - public static final int ISFROMFANSTOP_FIELD_NUMBER = 1; - private boolean isFromFansTop_ = false; - /** - * bool isFromFansTop = 1; - * @return The isFromFansTop. - */ - @java.lang.Override - public boolean getIsFromFansTop() { - return isFromFansTop_; - } - - public static final int ISKOI_FIELD_NUMBER = 2; - private boolean isKoi_ = false; - /** - * bool isKoi = 2; - * @return The isKoi. - */ - @java.lang.Override - public boolean getIsKoi() { - return isKoi_; - } - - public static final int ASSISTANTTYPE_FIELD_NUMBER = 3; - private int assistantType_ = 0; - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return The enum numeric value on the wire for assistantType. - */ - @java.lang.Override public int getAssistantTypeValue() { - return assistantType_; - } - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return The assistantType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType getAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType.forNumber(assistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType.UNRECOGNIZED : result; - } - - public static final int FANSGROUPINTIMACYLEVEL_FIELD_NUMBER = 4; - private int fansGroupIntimacyLevel_ = 0; - /** - * uint32 fansGroupIntimacyLevel = 4; - * @return The fansGroupIntimacyLevel. - */ - @java.lang.Override - public int getFansGroupIntimacyLevel() { - return fansGroupIntimacyLevel_; - } - - public static final int NAMEPLATE_FIELD_NUMBER = 5; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate nameplate_; - /** - * .GzoneNameplate nameplate = 5; - * @return Whether the nameplate field is set. - */ - @java.lang.Override - public boolean hasNameplate() { - return nameplate_ != null; - } - /** - * .GzoneNameplate nameplate = 5; - * @return The nameplate. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate getNameplate() { - return nameplate_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance() : nameplate_; - } - /** - * .GzoneNameplate nameplate = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder getNameplateOrBuilder() { - return nameplate_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance() : nameplate_; - } - - public static final int LIVEFANSGROUPSTATE_FIELD_NUMBER = 6; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState liveFansGroupState_; - /** - * .LiveFansGroupState liveFansGroupState = 6; - * @return Whether the liveFansGroupState field is set. - */ - @java.lang.Override - public boolean hasLiveFansGroupState() { - return liveFansGroupState_ != null; - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - * @return The liveFansGroupState. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState getLiveFansGroupState() { - return liveFansGroupState_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance() : liveFansGroupState_; - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder getLiveFansGroupStateOrBuilder() { - return liveFansGroupState_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance() : liveFansGroupState_; - } - - public static final int WEALTHGRADE_FIELD_NUMBER = 7; - private int wealthGrade_ = 0; - /** - * uint32 wealthGrade = 7; - * @return The wealthGrade. - */ - @java.lang.Override - public int getWealthGrade() { - return wealthGrade_; - } - - public static final int BADGEKEY_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object badgeKey_ = ""; - /** - * string badgeKey = 8; - * @return The badgeKey. - */ - @java.lang.Override - public java.lang.String getBadgeKey() { - java.lang.Object ref = badgeKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - badgeKey_ = s; - return s; - } - } - /** - * string badgeKey = 8; - * @return The bytes for badgeKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBadgeKeyBytes() { - java.lang.Object ref = badgeKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - badgeKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (isFromFansTop_ != false) { - output.writeBool(1, isFromFansTop_); - } - if (isKoi_ != false) { - output.writeBool(2, isKoi_); - } - if (assistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - output.writeEnum(3, assistantType_); - } - if (fansGroupIntimacyLevel_ != 0) { - output.writeUInt32(4, fansGroupIntimacyLevel_); - } - if (nameplate_ != null) { - output.writeMessage(5, getNameplate()); - } - if (liveFansGroupState_ != null) { - output.writeMessage(6, getLiveFansGroupState()); - } - if (wealthGrade_ != 0) { - output.writeUInt32(7, wealthGrade_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(badgeKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, badgeKey_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isFromFansTop_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isFromFansTop_); - } - if (isKoi_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isKoi_); - } - if (assistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, assistantType_); - } - if (fansGroupIntimacyLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, fansGroupIntimacyLevel_); - } - if (nameplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getNameplate()); - } - if (liveFansGroupState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLiveFansGroupState()); - } - if (wealthGrade_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, wealthGrade_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(badgeKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, badgeKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState) obj; - - if (getIsFromFansTop() - != other.getIsFromFansTop()) return false; - if (getIsKoi() - != other.getIsKoi()) return false; - if (assistantType_ != other.assistantType_) return false; - if (getFansGroupIntimacyLevel() - != other.getFansGroupIntimacyLevel()) return false; - if (hasNameplate() != other.hasNameplate()) return false; - if (hasNameplate()) { - if (!getNameplate() - .equals(other.getNameplate())) return false; - } - if (hasLiveFansGroupState() != other.hasLiveFansGroupState()) return false; - if (hasLiveFansGroupState()) { - if (!getLiveFansGroupState() - .equals(other.getLiveFansGroupState())) return false; - } - if (getWealthGrade() - != other.getWealthGrade()) return false; - if (!getBadgeKey() - .equals(other.getBadgeKey())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ISFROMFANSTOP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFromFansTop()); - hash = (37 * hash) + ISKOI_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsKoi()); - hash = (37 * hash) + ASSISTANTTYPE_FIELD_NUMBER; - hash = (53 * hash) + assistantType_; - hash = (37 * hash) + FANSGROUPINTIMACYLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getFansGroupIntimacyLevel(); - if (hasNameplate()) { - hash = (37 * hash) + NAMEPLATE_FIELD_NUMBER; - hash = (53 * hash) + getNameplate().hashCode(); - } - if (hasLiveFansGroupState()) { - hash = (37 * hash) + LIVEFANSGROUPSTATE_FIELD_NUMBER; - hash = (53 * hash) + getLiveFansGroupState().hashCode(); - } - hash = (37 * hash) + WEALTHGRADE_FIELD_NUMBER; - hash = (53 * hash) + getWealthGrade(); - hash = (37 * hash) + BADGEKEY_FIELD_NUMBER; - hash = (53 * hash) + getBadgeKey().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code LiveAudienceState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:LiveAudienceState) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.internal_static_LiveAudienceState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.internal_static_LiveAudienceState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - isFromFansTop_ = false; - isKoi_ = false; - assistantType_ = 0; - fansGroupIntimacyLevel_ = 0; - nameplate_ = null; - if (nameplateBuilder_ != null) { - nameplateBuilder_.dispose(); - nameplateBuilder_ = null; - } - liveFansGroupState_ = null; - if (liveFansGroupStateBuilder_ != null) { - liveFansGroupStateBuilder_.dispose(); - liveFansGroupStateBuilder_ = null; - } - wealthGrade_ = 0; - badgeKey_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.internal_static_LiveAudienceState_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.isFromFansTop_ = isFromFansTop_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.isKoi_ = isKoi_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.assistantType_ = assistantType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.fansGroupIntimacyLevel_ = fansGroupIntimacyLevel_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.nameplate_ = nameplateBuilder_ == null - ? nameplate_ - : nameplateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.liveFansGroupState_ = liveFansGroupStateBuilder_ == null - ? liveFansGroupState_ - : liveFansGroupStateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.wealthGrade_ = wealthGrade_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.badgeKey_ = badgeKey_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance()) return this; - if (other.getIsFromFansTop() != false) { - setIsFromFansTop(other.getIsFromFansTop()); - } - if (other.getIsKoi() != false) { - setIsKoi(other.getIsKoi()); - } - if (other.assistantType_ != 0) { - setAssistantTypeValue(other.getAssistantTypeValue()); - } - if (other.getFansGroupIntimacyLevel() != 0) { - setFansGroupIntimacyLevel(other.getFansGroupIntimacyLevel()); - } - if (other.hasNameplate()) { - mergeNameplate(other.getNameplate()); - } - if (other.hasLiveFansGroupState()) { - mergeLiveFansGroupState(other.getLiveFansGroupState()); - } - if (other.getWealthGrade() != 0) { - setWealthGrade(other.getWealthGrade()); - } - if (!other.getBadgeKey().isEmpty()) { - badgeKey_ = other.badgeKey_; - bitField0_ |= 0x00000080; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - isFromFansTop_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - isKoi_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - assistantType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - fansGroupIntimacyLevel_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getNameplateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getLiveFansGroupStateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - wealthGrade_ = input.readUInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - badgeKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean isFromFansTop_ ; - /** - * bool isFromFansTop = 1; - * @return The isFromFansTop. - */ - @java.lang.Override - public boolean getIsFromFansTop() { - return isFromFansTop_; - } - /** - * bool isFromFansTop = 1; - * @param value The isFromFansTop to set. - * @return This builder for chaining. - */ - public Builder setIsFromFansTop(boolean value) { - - isFromFansTop_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool isFromFansTop = 1; - * @return This builder for chaining. - */ - public Builder clearIsFromFansTop() { - bitField0_ = (bitField0_ & ~0x00000001); - isFromFansTop_ = false; - onChanged(); - return this; - } - - private boolean isKoi_ ; - /** - * bool isKoi = 2; - * @return The isKoi. - */ - @java.lang.Override - public boolean getIsKoi() { - return isKoi_; - } - /** - * bool isKoi = 2; - * @param value The isKoi to set. - * @return This builder for chaining. - */ - public Builder setIsKoi(boolean value) { - - isKoi_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool isKoi = 2; - * @return This builder for chaining. - */ - public Builder clearIsKoi() { - bitField0_ = (bitField0_ & ~0x00000002); - isKoi_ = false; - onChanged(); - return this; - } - - private int assistantType_ = 0; - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return The enum numeric value on the wire for assistantType. - */ - @java.lang.Override public int getAssistantTypeValue() { - return assistantType_; - } - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @param value The enum numeric value on the wire for assistantType to set. - * @return This builder for chaining. - */ - public Builder setAssistantTypeValue(int value) { - assistantType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return The assistantType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType getAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType.forNumber(assistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType.UNRECOGNIZED : result; - } - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @param value The assistantType to set. - * @return This builder for chaining. - */ - public Builder setAssistantType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.AssistantType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - assistantType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .LiveAudienceState.AssistantType assistantType = 3; - * @return This builder for chaining. - */ - public Builder clearAssistantType() { - bitField0_ = (bitField0_ & ~0x00000004); - assistantType_ = 0; - onChanged(); - return this; - } - - private int fansGroupIntimacyLevel_ ; - /** - * uint32 fansGroupIntimacyLevel = 4; - * @return The fansGroupIntimacyLevel. - */ - @java.lang.Override - public int getFansGroupIntimacyLevel() { - return fansGroupIntimacyLevel_; - } - /** - * uint32 fansGroupIntimacyLevel = 4; - * @param value The fansGroupIntimacyLevel to set. - * @return This builder for chaining. - */ - public Builder setFansGroupIntimacyLevel(int value) { - - fansGroupIntimacyLevel_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 fansGroupIntimacyLevel = 4; - * @return This builder for chaining. - */ - public Builder clearFansGroupIntimacyLevel() { - bitField0_ = (bitField0_ & ~0x00000008); - fansGroupIntimacyLevel_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate nameplate_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder> nameplateBuilder_; - /** - * .GzoneNameplate nameplate = 5; - * @return Whether the nameplate field is set. - */ - public boolean hasNameplate() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * .GzoneNameplate nameplate = 5; - * @return The nameplate. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate getNameplate() { - if (nameplateBuilder_ == null) { - return nameplate_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance() : nameplate_; - } else { - return nameplateBuilder_.getMessage(); - } - } - /** - * .GzoneNameplate nameplate = 5; - */ - public Builder setNameplate(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate value) { - if (nameplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nameplate_ = value; - } else { - nameplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .GzoneNameplate nameplate = 5; - */ - public Builder setNameplate( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder builderForValue) { - if (nameplateBuilder_ == null) { - nameplate_ = builderForValue.build(); - } else { - nameplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .GzoneNameplate nameplate = 5; - */ - public Builder mergeNameplate(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate value) { - if (nameplateBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - nameplate_ != null && - nameplate_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance()) { - getNameplateBuilder().mergeFrom(value); - } else { - nameplate_ = value; - } - } else { - nameplateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * .GzoneNameplate nameplate = 5; - */ - public Builder clearNameplate() { - bitField0_ = (bitField0_ & ~0x00000010); - nameplate_ = null; - if (nameplateBuilder_ != null) { - nameplateBuilder_.dispose(); - nameplateBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .GzoneNameplate nameplate = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder getNameplateBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getNameplateFieldBuilder().getBuilder(); - } - /** - * .GzoneNameplate nameplate = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder getNameplateOrBuilder() { - if (nameplateBuilder_ != null) { - return nameplateBuilder_.getMessageOrBuilder(); - } else { - return nameplate_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.getDefaultInstance() : nameplate_; - } - } - /** - * .GzoneNameplate nameplate = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder> - getNameplateFieldBuilder() { - if (nameplateBuilder_ == null) { - nameplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplate.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.GzoneNameplateOrBuilder>( - getNameplate(), - getParentForChildren(), - isClean()); - nameplate_ = null; - } - return nameplateBuilder_; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState liveFansGroupState_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder> liveFansGroupStateBuilder_; - /** - * .LiveFansGroupState liveFansGroupState = 6; - * @return Whether the liveFansGroupState field is set. - */ - public boolean hasLiveFansGroupState() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - * @return The liveFansGroupState. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState getLiveFansGroupState() { - if (liveFansGroupStateBuilder_ == null) { - return liveFansGroupState_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance() : liveFansGroupState_; - } else { - return liveFansGroupStateBuilder_.getMessage(); - } - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - public Builder setLiveFansGroupState(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState value) { - if (liveFansGroupStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - liveFansGroupState_ = value; - } else { - liveFansGroupStateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - public Builder setLiveFansGroupState( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder builderForValue) { - if (liveFansGroupStateBuilder_ == null) { - liveFansGroupState_ = builderForValue.build(); - } else { - liveFansGroupStateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - public Builder mergeLiveFansGroupState(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState value) { - if (liveFansGroupStateBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - liveFansGroupState_ != null && - liveFansGroupState_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance()) { - getLiveFansGroupStateBuilder().mergeFrom(value); - } else { - liveFansGroupState_ = value; - } - } else { - liveFansGroupStateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - public Builder clearLiveFansGroupState() { - bitField0_ = (bitField0_ & ~0x00000020); - liveFansGroupState_ = null; - if (liveFansGroupStateBuilder_ != null) { - liveFansGroupStateBuilder_.dispose(); - liveFansGroupStateBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder getLiveFansGroupStateBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getLiveFansGroupStateFieldBuilder().getBuilder(); - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder getLiveFansGroupStateOrBuilder() { - if (liveFansGroupStateBuilder_ != null) { - return liveFansGroupStateBuilder_.getMessageOrBuilder(); - } else { - return liveFansGroupState_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance() : liveFansGroupState_; - } - } - /** - * .LiveFansGroupState liveFansGroupState = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder> - getLiveFansGroupStateFieldBuilder() { - if (liveFansGroupStateBuilder_ == null) { - liveFansGroupStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder>( - getLiveFansGroupState(), - getParentForChildren(), - isClean()); - liveFansGroupState_ = null; - } - return liveFansGroupStateBuilder_; - } - - private int wealthGrade_ ; - /** - * uint32 wealthGrade = 7; - * @return The wealthGrade. - */ - @java.lang.Override - public int getWealthGrade() { - return wealthGrade_; - } - /** - * uint32 wealthGrade = 7; - * @param value The wealthGrade to set. - * @return This builder for chaining. - */ - public Builder setWealthGrade(int value) { - - wealthGrade_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * uint32 wealthGrade = 7; - * @return This builder for chaining. - */ - public Builder clearWealthGrade() { - bitField0_ = (bitField0_ & ~0x00000040); - wealthGrade_ = 0; - onChanged(); - return this; - } - - private java.lang.Object badgeKey_ = ""; - /** - * string badgeKey = 8; - * @return The badgeKey. - */ - public java.lang.String getBadgeKey() { - java.lang.Object ref = badgeKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - badgeKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string badgeKey = 8; - * @return The bytes for badgeKey. - */ - public com.google.protobuf.ByteString - getBadgeKeyBytes() { - java.lang.Object ref = badgeKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - badgeKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string badgeKey = 8; - * @param value The badgeKey to set. - * @return This builder for chaining. - */ - public Builder setBadgeKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - badgeKey_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * string badgeKey = 8; - * @return This builder for chaining. - */ - public Builder clearBadgeKey() { - badgeKey_ = getDefaultInstance().getBadgeKey(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * string badgeKey = 8; - * @param value The bytes for badgeKey to set. - * @return This builder for chaining. - */ - public Builder setBadgeKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - badgeKey_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LiveAudienceState) - } - - // @@protoc_insertion_point(class_scope:LiveAudienceState) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiveAudienceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LiveAudienceState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LiveAudienceState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027LiveAudienceState.proto\032\024GzoneNameplat" + - "e.proto\032\030LiveFansGroupState.proto\"\322\002\n\021Li" + - "veAudienceState\022\025\n\risFromFansTop\030\001 \001(\010\022\r" + - "\n\005isKoi\030\002 \001(\010\0227\n\rassistantType\030\003 \001(\0162 .L" + - "iveAudienceState.AssistantType\022\036\n\026fansGr" + - "oupIntimacyLevel\030\004 \001(\r\022\"\n\tnameplate\030\005 \001(" + - "\0132\017.GzoneNameplate\022/\n\022liveFansGroupState" + - "\030\006 \001(\0132\023.LiveFansGroupState\022\023\n\013wealthGra" + - "de\030\007 \001(\r\022\020\n\010badgeKey\030\010 \001(\t\"B\n\rAssistantT" + - "ype\022\032\n\026UNKNOWN_ASSISTANT_TYPE\020\000\022\t\n\005SUPER" + - "\020\001\022\n\n\006JUNIOR\020\002B6\n4tech.ordinaryroad.live" + - ".chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.getDescriptor(), - }); - internal_static_LiveAudienceState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_LiveAudienceState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LiveAudienceState_descriptor, - new java.lang.String[] { "IsFromFansTop", "IsKoi", "AssistantType", "FansGroupIntimacyLevel", "Nameplate", "LiveFansGroupState", "WealthGrade", "BadgeKey", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.GzoneNameplateOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveCdnNodeViewOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveCdnNodeViewOuterClass.java deleted file mode 100644 index 683bf82e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveCdnNodeViewOuterClass.java +++ /dev/null @@ -1,846 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: LiveCdnNodeView.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class LiveCdnNodeViewOuterClass { - private LiveCdnNodeViewOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface LiveCdnNodeViewOrBuilder extends - // @@protoc_insertion_point(interface_extends:LiveCdnNodeView) - com.google.protobuf.MessageOrBuilder { - - /** - * string cdn = 1; - * @return The cdn. - */ - java.lang.String getCdn(); - /** - * string cdn = 1; - * @return The bytes for cdn. - */ - com.google.protobuf.ByteString - getCdnBytes(); - - /** - * string url = 2; - * @return The url. - */ - java.lang.String getUrl(); - /** - * string url = 2; - * @return The bytes for url. - */ - com.google.protobuf.ByteString - getUrlBytes(); - - /** - * bool freeTraffic = 3; - * @return The freeTraffic. - */ - boolean getFreeTraffic(); - } - /** - * Protobuf type {@code LiveCdnNodeView} - */ - public static final class LiveCdnNodeView extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LiveCdnNodeView) - LiveCdnNodeViewOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiveCdnNodeView.newBuilder() to construct. - private LiveCdnNodeView(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiveCdnNodeView() { - cdn_ = ""; - url_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiveCdnNodeView(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.internal_static_LiveCdnNodeView_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.internal_static_LiveCdnNodeView_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder.class); - } - - public static final int CDN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object cdn_ = ""; - /** - * string cdn = 1; - * @return The cdn. - */ - @java.lang.Override - public java.lang.String getCdn() { - java.lang.Object ref = cdn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cdn_ = s; - return s; - } - } - /** - * string cdn = 1; - * @return The bytes for cdn. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCdnBytes() { - java.lang.Object ref = cdn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cdn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; - /** - * string url = 2; - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - * string url = 2; - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FREETRAFFIC_FIELD_NUMBER = 3; - private boolean freeTraffic_ = false; - /** - * bool freeTraffic = 3; - * @return The freeTraffic. - */ - @java.lang.Override - public boolean getFreeTraffic() { - return freeTraffic_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cdn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cdn_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); - } - if (freeTraffic_ != false) { - output.writeBool(3, freeTraffic_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cdn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cdn_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); - } - if (freeTraffic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, freeTraffic_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView) obj; - - if (!getCdn() - .equals(other.getCdn())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; - if (getFreeTraffic() - != other.getFreeTraffic()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CDN_FIELD_NUMBER; - hash = (53 * hash) + getCdn().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + FREETRAFFIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFreeTraffic()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code LiveCdnNodeView} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:LiveCdnNodeView) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeViewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.internal_static_LiveCdnNodeView_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.internal_static_LiveCdnNodeView_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - cdn_ = ""; - url_ = ""; - freeTraffic_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.internal_static_LiveCdnNodeView_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.cdn_ = cdn_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.url_ = url_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.freeTraffic_ = freeTraffic_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView.getDefaultInstance()) return this; - if (!other.getCdn().isEmpty()) { - cdn_ = other.cdn_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getFreeTraffic() != false) { - setFreeTraffic(other.getFreeTraffic()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cdn_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - freeTraffic_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object cdn_ = ""; - /** - * string cdn = 1; - * @return The cdn. - */ - public java.lang.String getCdn() { - java.lang.Object ref = cdn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cdn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cdn = 1; - * @return The bytes for cdn. - */ - public com.google.protobuf.ByteString - getCdnBytes() { - java.lang.Object ref = cdn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cdn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cdn = 1; - * @param value The cdn to set. - * @return This builder for chaining. - */ - public Builder setCdn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - cdn_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string cdn = 1; - * @return This builder for chaining. - */ - public Builder clearCdn() { - cdn_ = getDefaultInstance().getCdn(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string cdn = 1; - * @param value The bytes for cdn to set. - * @return This builder for chaining. - */ - public Builder setCdnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - cdn_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object url_ = ""; - /** - * string url = 2; - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string url = 2; - * @return The bytes for url. - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string url = 2; - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string url = 2; - * @return This builder for chaining. - */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string url = 2; - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean freeTraffic_ ; - /** - * bool freeTraffic = 3; - * @return The freeTraffic. - */ - @java.lang.Override - public boolean getFreeTraffic() { - return freeTraffic_; - } - /** - * bool freeTraffic = 3; - * @param value The freeTraffic to set. - * @return This builder for chaining. - */ - public Builder setFreeTraffic(boolean value) { - - freeTraffic_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool freeTraffic = 3; - * @return This builder for chaining. - */ - public Builder clearFreeTraffic() { - bitField0_ = (bitField0_ & ~0x00000004); - freeTraffic_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LiveCdnNodeView) - } - - // @@protoc_insertion_point(class_scope:LiveCdnNodeView) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiveCdnNodeView parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveCdnNodeViewOuterClass.LiveCdnNodeView getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LiveCdnNodeView_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LiveCdnNodeView_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025LiveCdnNodeView.proto\"@\n\017LiveCdnNodeVi" + - "ew\022\013\n\003cdn\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\023\n\013freeTraf" + - "fic\030\003 \001(\010B6\n4tech.ordinaryroad.live.chat" + - ".client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_LiveCdnNodeView_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_LiveCdnNodeView_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LiveCdnNodeView_descriptor, - new java.lang.String[] { "Cdn", "Url", "FreeTraffic", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveFansGroupStateOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveFansGroupStateOuterClass.java deleted file mode 100644 index 6ba076fa..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/LiveFansGroupStateOuterClass.java +++ /dev/null @@ -1,622 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: LiveFansGroupState.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class LiveFansGroupStateOuterClass { - private LiveFansGroupStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface LiveFansGroupStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:LiveFansGroupState) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 intimacyLevel = 1; - * @return The intimacyLevel. - */ - int getIntimacyLevel(); - - /** - * uint32 enterRoomSpecialEffect = 2; - * @return The enterRoomSpecialEffect. - */ - int getEnterRoomSpecialEffect(); - } - /** - * Protobuf type {@code LiveFansGroupState} - */ - public static final class LiveFansGroupState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:LiveFansGroupState) - LiveFansGroupStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiveFansGroupState.newBuilder() to construct. - private LiveFansGroupState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiveFansGroupState() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LiveFansGroupState(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.internal_static_LiveFansGroupState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.internal_static_LiveFansGroupState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder.class); - } - - public static final int INTIMACYLEVEL_FIELD_NUMBER = 1; - private int intimacyLevel_ = 0; - /** - * uint32 intimacyLevel = 1; - * @return The intimacyLevel. - */ - @java.lang.Override - public int getIntimacyLevel() { - return intimacyLevel_; - } - - public static final int ENTERROOMSPECIALEFFECT_FIELD_NUMBER = 2; - private int enterRoomSpecialEffect_ = 0; - /** - * uint32 enterRoomSpecialEffect = 2; - * @return The enterRoomSpecialEffect. - */ - @java.lang.Override - public int getEnterRoomSpecialEffect() { - return enterRoomSpecialEffect_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (intimacyLevel_ != 0) { - output.writeUInt32(1, intimacyLevel_); - } - if (enterRoomSpecialEffect_ != 0) { - output.writeUInt32(2, enterRoomSpecialEffect_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (intimacyLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, intimacyLevel_); - } - if (enterRoomSpecialEffect_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, enterRoomSpecialEffect_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState) obj; - - if (getIntimacyLevel() - != other.getIntimacyLevel()) return false; - if (getEnterRoomSpecialEffect() - != other.getEnterRoomSpecialEffect()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INTIMACYLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getIntimacyLevel(); - hash = (37 * hash) + ENTERROOMSPECIALEFFECT_FIELD_NUMBER; - hash = (53 * hash) + getEnterRoomSpecialEffect(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code LiveFansGroupState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:LiveFansGroupState) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.internal_static_LiveFansGroupState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.internal_static_LiveFansGroupState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - intimacyLevel_ = 0; - enterRoomSpecialEffect_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.internal_static_LiveFansGroupState_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.intimacyLevel_ = intimacyLevel_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.enterRoomSpecialEffect_ = enterRoomSpecialEffect_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState.getDefaultInstance()) return this; - if (other.getIntimacyLevel() != 0) { - setIntimacyLevel(other.getIntimacyLevel()); - } - if (other.getEnterRoomSpecialEffect() != 0) { - setEnterRoomSpecialEffect(other.getEnterRoomSpecialEffect()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - intimacyLevel_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enterRoomSpecialEffect_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int intimacyLevel_ ; - /** - * uint32 intimacyLevel = 1; - * @return The intimacyLevel. - */ - @java.lang.Override - public int getIntimacyLevel() { - return intimacyLevel_; - } - /** - * uint32 intimacyLevel = 1; - * @param value The intimacyLevel to set. - * @return This builder for chaining. - */ - public Builder setIntimacyLevel(int value) { - - intimacyLevel_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 intimacyLevel = 1; - * @return This builder for chaining. - */ - public Builder clearIntimacyLevel() { - bitField0_ = (bitField0_ & ~0x00000001); - intimacyLevel_ = 0; - onChanged(); - return this; - } - - private int enterRoomSpecialEffect_ ; - /** - * uint32 enterRoomSpecialEffect = 2; - * @return The enterRoomSpecialEffect. - */ - @java.lang.Override - public int getEnterRoomSpecialEffect() { - return enterRoomSpecialEffect_; - } - /** - * uint32 enterRoomSpecialEffect = 2; - * @param value The enterRoomSpecialEffect to set. - * @return This builder for chaining. - */ - public Builder setEnterRoomSpecialEffect(int value) { - - enterRoomSpecialEffect_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 enterRoomSpecialEffect = 2; - * @return This builder for chaining. - */ - public Builder clearEnterRoomSpecialEffect() { - bitField0_ = (bitField0_ & ~0x00000002); - enterRoomSpecialEffect_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:LiveFansGroupState) - } - - // @@protoc_insertion_point(class_scope:LiveFansGroupState) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiveFansGroupState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveFansGroupStateOuterClass.LiveFansGroupState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_LiveFansGroupState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_LiveFansGroupState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030LiveFansGroupState.proto\"K\n\022LiveFansGr" + - "oupState\022\025\n\rintimacyLevel\030\001 \001(\r\022\036\n\026enter" + - "RoomSpecialEffect\030\002 \001(\rB6\n4tech.ordinary" + - "road.live.chat.client.kuaishou.protobufb" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_LiveFansGroupState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_LiveFansGroupState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_LiveFansGroupState_descriptor, - new java.lang.String[] { "IntimacyLevel", "EnterRoomSpecialEffect", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PSHostInfoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PSHostInfoOuterClass.java deleted file mode 100644 index 73bc328a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PSHostInfoOuterClass.java +++ /dev/null @@ -1,697 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PSHostInfo.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class PSHostInfoOuterClass { - private PSHostInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PSHostInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:PSHostInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string ip = 1; - * @return The ip. - */ - java.lang.String getIp(); - /** - * string ip = 1; - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - - /** - * int32 port = 2; - * @return The port. - */ - int getPort(); - } - /** - * Protobuf type {@code PSHostInfo} - */ - public static final class PSHostInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PSHostInfo) - PSHostInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PSHostInfo.newBuilder() to construct. - private PSHostInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PSHostInfo() { - ip_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PSHostInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.internal_static_PSHostInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.internal_static_PSHostInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.Builder.class); - } - - public static final int IP_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; - /** - * string ip = 1; - * @return The ip. - */ - @java.lang.Override - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - * string ip = 1; - * @return The bytes for ip. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PORT_FIELD_NUMBER = 2; - private int port_ = 0; - /** - * int32 port = 2; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); - } - if (port_ != 0) { - output.writeInt32(2, port_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); - } - if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo) obj; - - if (!getIp() - .equals(other.getIp())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PSHostInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PSHostInfo) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.internal_static_PSHostInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.internal_static_PSHostInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - ip_ = ""; - port_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.internal_static_PSHostInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.ip_ = ip_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.port_ = port_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo.getDefaultInstance()) return this; - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPort() != 0) { - setPort(other.getPort()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - ip_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object ip_ = ""; - /** - * string ip = 1; - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ip = 1; - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ip = 1; - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ip_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string ip = 1; - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string ip = 1; - * @param value The bytes for ip to set. - * @return This builder for chaining. - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ip_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int port_ ; - /** - * int32 port = 2; - * @return The port. - */ - @java.lang.Override - public int getPort() { - return port_; - } - /** - * int32 port = 2; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort(int value) { - - port_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * int32 port = 2; - * @return This builder for chaining. - */ - public Builder clearPort() { - bitField0_ = (bitField0_ & ~0x00000002); - port_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PSHostInfo) - } - - // @@protoc_insertion_point(class_scope:PSHostInfo) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PSHostInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PSHostInfoOuterClass.PSHostInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PSHostInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PSHostInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020PSHostInfo.proto\"&\n\nPSHostInfo\022\n\n\002ip\030\001" + - " \001(\t\022\014\n\004port\030\002 \001(\005B6\n4tech.ordinaryroad." + - "live.chat.client.kuaishou.protobufb\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PSHostInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PSHostInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PSHostInfo_descriptor, - new java.lang.String[] { "Ip", "Port", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PayloadTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PayloadTypeOuterClass.java deleted file mode 100644 index 5711bf4c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PayloadTypeOuterClass.java +++ /dev/null @@ -1,708 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PayloadType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class PayloadTypeOuterClass { - private PayloadTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code PayloadType} - */ - public enum PayloadType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CS_HEARTBEAT = 1; - */ - CS_HEARTBEAT(1), - /** - * CS_ERROR = 3; - */ - CS_ERROR(3), - /** - * CS_PING = 4; - */ - CS_PING(4), - /** - * PS_HOST_INFO = 51; - */ - PS_HOST_INFO(51), - /** - * SC_HEARTBEAT_ACK = 101; - */ - SC_HEARTBEAT_ACK(101), - /** - * SC_ECHO = 102; - */ - SC_ECHO(102), - /** - * SC_ERROR = 103; - */ - SC_ERROR(103), - /** - * SC_PING_ACK = 104; - */ - SC_PING_ACK(104), - /** - * SC_INFO = 105; - */ - SC_INFO(105), - /** - * CS_ENTER_ROOM = 200; - */ - CS_ENTER_ROOM(200), - /** - * CS_USER_PAUSE = 201; - */ - CS_USER_PAUSE(201), - /** - * CS_USER_EXIT = 202; - */ - CS_USER_EXIT(202), - /** - * CS_AUTHOR_PUSH_TRAFFIC_ZERO = 203; - */ - CS_AUTHOR_PUSH_TRAFFIC_ZERO(203), - /** - * CS_HORSE_RACING = 204; - */ - CS_HORSE_RACING(204), - /** - * CS_RACE_LOSE = 205; - */ - CS_RACE_LOSE(205), - /** - * CS_VOIP_SIGNAL = 206; - */ - CS_VOIP_SIGNAL(206), - /** - * SC_ENTER_ROOM_ACK = 300; - */ - SC_ENTER_ROOM_ACK(300), - /** - * SC_AUTHOR_PAUSE = 301; - */ - SC_AUTHOR_PAUSE(301), - /** - * SC_AUTHOR_RESUME = 302; - */ - SC_AUTHOR_RESUME(302), - /** - * SC_AUTHOR_PUSH_TRAFFIC_ZERO = 303; - */ - SC_AUTHOR_PUSH_TRAFFIC_ZERO(303), - /** - * SC_AUTHOR_HEARTBEAT_MISS = 304; - */ - SC_AUTHOR_HEARTBEAT_MISS(304), - /** - * SC_PIP_STARTED = 305; - */ - SC_PIP_STARTED(305), - /** - * SC_PIP_ENDED = 306; - */ - SC_PIP_ENDED(306), - /** - * SC_HORSE_RACING_ACK = 307; - */ - SC_HORSE_RACING_ACK(307), - /** - * SC_VOIP_SIGNAL = 308; - */ - SC_VOIP_SIGNAL(308), - /** - * SC_FEED_PUSH = 310; - */ - SC_FEED_PUSH(310), - /** - * SC_ASSISTANT_STATUS = 311; - */ - SC_ASSISTANT_STATUS(311), - /** - * SC_REFRESH_WALLET = 312; - */ - SC_REFRESH_WALLET(312), - /** - * SC_LIVE_CHAT_CALL = 320; - */ - SC_LIVE_CHAT_CALL(320), - /** - * SC_LIVE_CHAT_CALL_ACCEPTED = 321; - */ - SC_LIVE_CHAT_CALL_ACCEPTED(321), - /** - * SC_LIVE_CHAT_CALL_REJECTED = 322; - */ - SC_LIVE_CHAT_CALL_REJECTED(322), - /** - * SC_LIVE_CHAT_READY = 323; - */ - SC_LIVE_CHAT_READY(323), - /** - * SC_LIVE_CHAT_GUEST_END = 324; - */ - SC_LIVE_CHAT_GUEST_END(324), - /** - * SC_LIVE_CHAT_ENDED = 325; - */ - SC_LIVE_CHAT_ENDED(325), - /** - * SC_RENDERING_MAGIC_FACE_DISABLE = 326; - */ - SC_RENDERING_MAGIC_FACE_DISABLE(326), - /** - * SC_RENDERING_MAGIC_FACE_ENABLE = 327; - */ - SC_RENDERING_MAGIC_FACE_ENABLE(327), - /** - * SC_RED_PACK_FEED = 330; - */ - SC_RED_PACK_FEED(330), - /** - * SC_LIVE_WATCHING_LIST = 340; - */ - SC_LIVE_WATCHING_LIST(340), - /** - * SC_LIVE_QUIZ_QUESTION_ASKED = 350; - */ - SC_LIVE_QUIZ_QUESTION_ASKED(350), - /** - * SC_LIVE_QUIZ_QUESTION_REVIEWED = 351; - */ - SC_LIVE_QUIZ_QUESTION_REVIEWED(351), - /** - * SC_LIVE_QUIZ_SYNC = 352; - */ - SC_LIVE_QUIZ_SYNC(352), - /** - * SC_LIVE_QUIZ_ENDED = 353; - */ - SC_LIVE_QUIZ_ENDED(353), - /** - * SC_LIVE_QUIZ_WINNERS = 354; - */ - SC_LIVE_QUIZ_WINNERS(354), - /** - * SC_SUSPECTED_VIOLATION = 355; - */ - SC_SUSPECTED_VIOLATION(355), - /** - * SC_SHOP_OPENED = 360; - */ - SC_SHOP_OPENED(360), - /** - * SC_SHOP_CLOSED = 361; - */ - SC_SHOP_CLOSED(361), - /** - * SC_GUESS_OPENED = 370; - */ - SC_GUESS_OPENED(370), - /** - * SC_GUESS_CLOSED = 371; - */ - SC_GUESS_CLOSED(371), - /** - * SC_PK_INVITATION = 380; - */ - SC_PK_INVITATION(380), - /** - * SC_PK_STATISTIC = 381; - */ - SC_PK_STATISTIC(381), - /** - * SC_RIDDLE_OPENED = 390; - */ - SC_RIDDLE_OPENED(390), - /** - * SC_RIDDLE_CLOESED = 391; - */ - SC_RIDDLE_CLOESED(391), - /** - * SC_RIDE_CHANGED = 412; - */ - SC_RIDE_CHANGED(412), - /** - * SC_BET_CHANGED = 441; - */ - SC_BET_CHANGED(441), - /** - * SC_BET_CLOSED = 442; - */ - SC_BET_CLOSED(442), - /** - * SC_LIVE_SPECIAL_ACCOUNT_CONFIG_STATE = 645; - */ - SC_LIVE_SPECIAL_ACCOUNT_CONFIG_STATE(645), - /** - * SC_LIVE_WARNING_MASK_STATUS_CHANGED_AUDIENCE = 758; - */ - SC_LIVE_WARNING_MASK_STATUS_CHANGED_AUDIENCE(758), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CS_HEARTBEAT = 1; - */ - public static final int CS_HEARTBEAT_VALUE = 1; - /** - * CS_ERROR = 3; - */ - public static final int CS_ERROR_VALUE = 3; - /** - * CS_PING = 4; - */ - public static final int CS_PING_VALUE = 4; - /** - * PS_HOST_INFO = 51; - */ - public static final int PS_HOST_INFO_VALUE = 51; - /** - * SC_HEARTBEAT_ACK = 101; - */ - public static final int SC_HEARTBEAT_ACK_VALUE = 101; - /** - * SC_ECHO = 102; - */ - public static final int SC_ECHO_VALUE = 102; - /** - * SC_ERROR = 103; - */ - public static final int SC_ERROR_VALUE = 103; - /** - * SC_PING_ACK = 104; - */ - public static final int SC_PING_ACK_VALUE = 104; - /** - * SC_INFO = 105; - */ - public static final int SC_INFO_VALUE = 105; - /** - * CS_ENTER_ROOM = 200; - */ - public static final int CS_ENTER_ROOM_VALUE = 200; - /** - * CS_USER_PAUSE = 201; - */ - public static final int CS_USER_PAUSE_VALUE = 201; - /** - * CS_USER_EXIT = 202; - */ - public static final int CS_USER_EXIT_VALUE = 202; - /** - * CS_AUTHOR_PUSH_TRAFFIC_ZERO = 203; - */ - public static final int CS_AUTHOR_PUSH_TRAFFIC_ZERO_VALUE = 203; - /** - * CS_HORSE_RACING = 204; - */ - public static final int CS_HORSE_RACING_VALUE = 204; - /** - * CS_RACE_LOSE = 205; - */ - public static final int CS_RACE_LOSE_VALUE = 205; - /** - * CS_VOIP_SIGNAL = 206; - */ - public static final int CS_VOIP_SIGNAL_VALUE = 206; - /** - * SC_ENTER_ROOM_ACK = 300; - */ - public static final int SC_ENTER_ROOM_ACK_VALUE = 300; - /** - * SC_AUTHOR_PAUSE = 301; - */ - public static final int SC_AUTHOR_PAUSE_VALUE = 301; - /** - * SC_AUTHOR_RESUME = 302; - */ - public static final int SC_AUTHOR_RESUME_VALUE = 302; - /** - * SC_AUTHOR_PUSH_TRAFFIC_ZERO = 303; - */ - public static final int SC_AUTHOR_PUSH_TRAFFIC_ZERO_VALUE = 303; - /** - * SC_AUTHOR_HEARTBEAT_MISS = 304; - */ - public static final int SC_AUTHOR_HEARTBEAT_MISS_VALUE = 304; - /** - * SC_PIP_STARTED = 305; - */ - public static final int SC_PIP_STARTED_VALUE = 305; - /** - * SC_PIP_ENDED = 306; - */ - public static final int SC_PIP_ENDED_VALUE = 306; - /** - * SC_HORSE_RACING_ACK = 307; - */ - public static final int SC_HORSE_RACING_ACK_VALUE = 307; - /** - * SC_VOIP_SIGNAL = 308; - */ - public static final int SC_VOIP_SIGNAL_VALUE = 308; - /** - * SC_FEED_PUSH = 310; - */ - public static final int SC_FEED_PUSH_VALUE = 310; - /** - * SC_ASSISTANT_STATUS = 311; - */ - public static final int SC_ASSISTANT_STATUS_VALUE = 311; - /** - * SC_REFRESH_WALLET = 312; - */ - public static final int SC_REFRESH_WALLET_VALUE = 312; - /** - * SC_LIVE_CHAT_CALL = 320; - */ - public static final int SC_LIVE_CHAT_CALL_VALUE = 320; - /** - * SC_LIVE_CHAT_CALL_ACCEPTED = 321; - */ - public static final int SC_LIVE_CHAT_CALL_ACCEPTED_VALUE = 321; - /** - * SC_LIVE_CHAT_CALL_REJECTED = 322; - */ - public static final int SC_LIVE_CHAT_CALL_REJECTED_VALUE = 322; - /** - * SC_LIVE_CHAT_READY = 323; - */ - public static final int SC_LIVE_CHAT_READY_VALUE = 323; - /** - * SC_LIVE_CHAT_GUEST_END = 324; - */ - public static final int SC_LIVE_CHAT_GUEST_END_VALUE = 324; - /** - * SC_LIVE_CHAT_ENDED = 325; - */ - public static final int SC_LIVE_CHAT_ENDED_VALUE = 325; - /** - * SC_RENDERING_MAGIC_FACE_DISABLE = 326; - */ - public static final int SC_RENDERING_MAGIC_FACE_DISABLE_VALUE = 326; - /** - * SC_RENDERING_MAGIC_FACE_ENABLE = 327; - */ - public static final int SC_RENDERING_MAGIC_FACE_ENABLE_VALUE = 327; - /** - * SC_RED_PACK_FEED = 330; - */ - public static final int SC_RED_PACK_FEED_VALUE = 330; - /** - * SC_LIVE_WATCHING_LIST = 340; - */ - public static final int SC_LIVE_WATCHING_LIST_VALUE = 340; - /** - * SC_LIVE_QUIZ_QUESTION_ASKED = 350; - */ - public static final int SC_LIVE_QUIZ_QUESTION_ASKED_VALUE = 350; - /** - * SC_LIVE_QUIZ_QUESTION_REVIEWED = 351; - */ - public static final int SC_LIVE_QUIZ_QUESTION_REVIEWED_VALUE = 351; - /** - * SC_LIVE_QUIZ_SYNC = 352; - */ - public static final int SC_LIVE_QUIZ_SYNC_VALUE = 352; - /** - * SC_LIVE_QUIZ_ENDED = 353; - */ - public static final int SC_LIVE_QUIZ_ENDED_VALUE = 353; - /** - * SC_LIVE_QUIZ_WINNERS = 354; - */ - public static final int SC_LIVE_QUIZ_WINNERS_VALUE = 354; - /** - * SC_SUSPECTED_VIOLATION = 355; - */ - public static final int SC_SUSPECTED_VIOLATION_VALUE = 355; - /** - * SC_SHOP_OPENED = 360; - */ - public static final int SC_SHOP_OPENED_VALUE = 360; - /** - * SC_SHOP_CLOSED = 361; - */ - public static final int SC_SHOP_CLOSED_VALUE = 361; - /** - * SC_GUESS_OPENED = 370; - */ - public static final int SC_GUESS_OPENED_VALUE = 370; - /** - * SC_GUESS_CLOSED = 371; - */ - public static final int SC_GUESS_CLOSED_VALUE = 371; - /** - * SC_PK_INVITATION = 380; - */ - public static final int SC_PK_INVITATION_VALUE = 380; - /** - * SC_PK_STATISTIC = 381; - */ - public static final int SC_PK_STATISTIC_VALUE = 381; - /** - * SC_RIDDLE_OPENED = 390; - */ - public static final int SC_RIDDLE_OPENED_VALUE = 390; - /** - * SC_RIDDLE_CLOESED = 391; - */ - public static final int SC_RIDDLE_CLOESED_VALUE = 391; - /** - * SC_RIDE_CHANGED = 412; - */ - public static final int SC_RIDE_CHANGED_VALUE = 412; - /** - * SC_BET_CHANGED = 441; - */ - public static final int SC_BET_CHANGED_VALUE = 441; - /** - * SC_BET_CLOSED = 442; - */ - public static final int SC_BET_CLOSED_VALUE = 442; - /** - * SC_LIVE_SPECIAL_ACCOUNT_CONFIG_STATE = 645; - */ - public static final int SC_LIVE_SPECIAL_ACCOUNT_CONFIG_STATE_VALUE = 645; - /** - * SC_LIVE_WARNING_MASK_STATUS_CHANGED_AUDIENCE = 758; - */ - public static final int SC_LIVE_WARNING_MASK_STATUS_CHANGED_AUDIENCE_VALUE = 758; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PayloadType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CS_HEARTBEAT; - case 3: return CS_ERROR; - case 4: return CS_PING; - case 51: return PS_HOST_INFO; - case 101: return SC_HEARTBEAT_ACK; - case 102: return SC_ECHO; - case 103: return SC_ERROR; - case 104: return SC_PING_ACK; - case 105: return SC_INFO; - case 200: return CS_ENTER_ROOM; - case 201: return CS_USER_PAUSE; - case 202: return CS_USER_EXIT; - case 203: return CS_AUTHOR_PUSH_TRAFFIC_ZERO; - case 204: return CS_HORSE_RACING; - case 205: return CS_RACE_LOSE; - case 206: return CS_VOIP_SIGNAL; - case 300: return SC_ENTER_ROOM_ACK; - case 301: return SC_AUTHOR_PAUSE; - case 302: return SC_AUTHOR_RESUME; - case 303: return SC_AUTHOR_PUSH_TRAFFIC_ZERO; - case 304: return SC_AUTHOR_HEARTBEAT_MISS; - case 305: return SC_PIP_STARTED; - case 306: return SC_PIP_ENDED; - case 307: return SC_HORSE_RACING_ACK; - case 308: return SC_VOIP_SIGNAL; - case 310: return SC_FEED_PUSH; - case 311: return SC_ASSISTANT_STATUS; - case 312: return SC_REFRESH_WALLET; - case 320: return SC_LIVE_CHAT_CALL; - case 321: return SC_LIVE_CHAT_CALL_ACCEPTED; - case 322: return SC_LIVE_CHAT_CALL_REJECTED; - case 323: return SC_LIVE_CHAT_READY; - case 324: return SC_LIVE_CHAT_GUEST_END; - case 325: return SC_LIVE_CHAT_ENDED; - case 326: return SC_RENDERING_MAGIC_FACE_DISABLE; - case 327: return SC_RENDERING_MAGIC_FACE_ENABLE; - case 330: return SC_RED_PACK_FEED; - case 340: return SC_LIVE_WATCHING_LIST; - case 350: return SC_LIVE_QUIZ_QUESTION_ASKED; - case 351: return SC_LIVE_QUIZ_QUESTION_REVIEWED; - case 352: return SC_LIVE_QUIZ_SYNC; - case 353: return SC_LIVE_QUIZ_ENDED; - case 354: return SC_LIVE_QUIZ_WINNERS; - case 355: return SC_SUSPECTED_VIOLATION; - case 360: return SC_SHOP_OPENED; - case 361: return SC_SHOP_CLOSED; - case 370: return SC_GUESS_OPENED; - case 371: return SC_GUESS_CLOSED; - case 380: return SC_PK_INVITATION; - case 381: return SC_PK_STATISTIC; - case 390: return SC_RIDDLE_OPENED; - case 391: return SC_RIDDLE_CLOESED; - case 412: return SC_RIDE_CHANGED; - case 441: return SC_BET_CHANGED; - case 442: return SC_BET_CLOSED; - case 645: return SC_LIVE_SPECIAL_ACCOUNT_CONFIG_STATE; - case 758: return SC_LIVE_WARNING_MASK_STATUS_CHANGED_AUDIENCE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PayloadType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PayloadType findValueByNumber(int number) { - return PayloadType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final PayloadType[] VALUES = values(); - - public static PayloadType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PayloadType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:PayloadType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021PayloadType.proto*\213\013\n\013PayloadType\022\013\n\007U" + - "NKNOWN\020\000\022\020\n\014CS_HEARTBEAT\020\001\022\014\n\010CS_ERROR\020\003" + - "\022\013\n\007CS_PING\020\004\022\020\n\014PS_HOST_INFO\0203\022\024\n\020SC_HE" + - "ARTBEAT_ACK\020e\022\013\n\007SC_ECHO\020f\022\014\n\010SC_ERROR\020g" + - "\022\017\n\013SC_PING_ACK\020h\022\013\n\007SC_INFO\020i\022\022\n\rCS_ENT" + - "ER_ROOM\020\310\001\022\022\n\rCS_USER_PAUSE\020\311\001\022\021\n\014CS_USE" + - "R_EXIT\020\312\001\022 \n\033CS_AUTHOR_PUSH_TRAFFIC_ZERO" + - "\020\313\001\022\024\n\017CS_HORSE_RACING\020\314\001\022\021\n\014CS_RACE_LOS" + - "E\020\315\001\022\023\n\016CS_VOIP_SIGNAL\020\316\001\022\026\n\021SC_ENTER_RO" + - "OM_ACK\020\254\002\022\024\n\017SC_AUTHOR_PAUSE\020\255\002\022\025\n\020SC_AU" + - "THOR_RESUME\020\256\002\022 \n\033SC_AUTHOR_PUSH_TRAFFIC" + - "_ZERO\020\257\002\022\035\n\030SC_AUTHOR_HEARTBEAT_MISS\020\260\002\022" + - "\023\n\016SC_PIP_STARTED\020\261\002\022\021\n\014SC_PIP_ENDED\020\262\002\022" + - "\030\n\023SC_HORSE_RACING_ACK\020\263\002\022\023\n\016SC_VOIP_SIG" + - "NAL\020\264\002\022\021\n\014SC_FEED_PUSH\020\266\002\022\030\n\023SC_ASSISTAN" + - "T_STATUS\020\267\002\022\026\n\021SC_REFRESH_WALLET\020\270\002\022\026\n\021S" + - "C_LIVE_CHAT_CALL\020\300\002\022\037\n\032SC_LIVE_CHAT_CALL" + - "_ACCEPTED\020\301\002\022\037\n\032SC_LIVE_CHAT_CALL_REJECT" + - "ED\020\302\002\022\027\n\022SC_LIVE_CHAT_READY\020\303\002\022\033\n\026SC_LIV" + - "E_CHAT_GUEST_END\020\304\002\022\027\n\022SC_LIVE_CHAT_ENDE" + - "D\020\305\002\022$\n\037SC_RENDERING_MAGIC_FACE_DISABLE\020" + - "\306\002\022#\n\036SC_RENDERING_MAGIC_FACE_ENABLE\020\307\002\022" + - "\025\n\020SC_RED_PACK_FEED\020\312\002\022\032\n\025SC_LIVE_WATCHI" + - "NG_LIST\020\324\002\022 \n\033SC_LIVE_QUIZ_QUESTION_ASKE" + - "D\020\336\002\022#\n\036SC_LIVE_QUIZ_QUESTION_REVIEWED\020\337" + - "\002\022\026\n\021SC_LIVE_QUIZ_SYNC\020\340\002\022\027\n\022SC_LIVE_QUI" + - "Z_ENDED\020\341\002\022\031\n\024SC_LIVE_QUIZ_WINNERS\020\342\002\022\033\n" + - "\026SC_SUSPECTED_VIOLATION\020\343\002\022\023\n\016SC_SHOP_OP" + - "ENED\020\350\002\022\023\n\016SC_SHOP_CLOSED\020\351\002\022\024\n\017SC_GUESS" + - "_OPENED\020\362\002\022\024\n\017SC_GUESS_CLOSED\020\363\002\022\025\n\020SC_P" + - "K_INVITATION\020\374\002\022\024\n\017SC_PK_STATISTIC\020\375\002\022\025\n" + - "\020SC_RIDDLE_OPENED\020\206\003\022\026\n\021SC_RIDDLE_CLOESE" + - "D\020\207\003\022\024\n\017SC_RIDE_CHANGED\020\234\003\022\023\n\016SC_BET_CHA" + - "NGED\020\271\003\022\022\n\rSC_BET_CLOSED\020\272\003\022)\n$SC_LIVE_S" + - "PECIAL_ACCOUNT_CONFIG_STATE\020\205\005\0221\n,SC_LIV" + - "E_WARNING_MASK_STATUS_CHANGED_AUDIENCE\020\366" + - "\005B6\n4tech.ordinaryroad.live.chat.client." + - "kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PicUrlOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PicUrlOuterClass.java deleted file mode 100644 index 935c3bbe..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/PicUrlOuterClass.java +++ /dev/null @@ -1,1069 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PicUrl.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class PicUrlOuterClass { - private PicUrlOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PicUrlOrBuilder extends - // @@protoc_insertion_point(interface_extends:PicUrl) - com.google.protobuf.MessageOrBuilder { - - /** - * string cdn = 1; - * @return The cdn. - */ - java.lang.String getCdn(); - /** - * string cdn = 1; - * @return The bytes for cdn. - */ - com.google.protobuf.ByteString - getCdnBytes(); - - /** - * string url = 2; - * @return The url. - */ - java.lang.String getUrl(); - /** - * string url = 2; - * @return The bytes for url. - */ - com.google.protobuf.ByteString - getUrlBytes(); - - /** - * string urlPattern = 3; - * @return The urlPattern. - */ - java.lang.String getUrlPattern(); - /** - * string urlPattern = 3; - * @return The bytes for urlPattern. - */ - com.google.protobuf.ByteString - getUrlPatternBytes(); - - /** - * string ip = 4; - * @return The ip. - */ - java.lang.String getIp(); - /** - * string ip = 4; - * @return The bytes for ip. - */ - com.google.protobuf.ByteString - getIpBytes(); - } - /** - * Protobuf type {@code PicUrl} - */ - public static final class PicUrl extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:PicUrl) - PicUrlOrBuilder { - private static final long serialVersionUID = 0L; - // Use PicUrl.newBuilder() to construct. - private PicUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PicUrl() { - cdn_ = ""; - url_ = ""; - urlPattern_ = ""; - ip_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PicUrl(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.internal_static_PicUrl_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.internal_static_PicUrl_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder.class); - } - - public static final int CDN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object cdn_ = ""; - /** - * string cdn = 1; - * @return The cdn. - */ - @java.lang.Override - public java.lang.String getCdn() { - java.lang.Object ref = cdn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cdn_ = s; - return s; - } - } - /** - * string cdn = 1; - * @return The bytes for cdn. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCdnBytes() { - java.lang.Object ref = cdn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cdn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; - /** - * string url = 2; - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - * string url = 2; - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URLPATTERN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object urlPattern_ = ""; - /** - * string urlPattern = 3; - * @return The urlPattern. - */ - @java.lang.Override - public java.lang.String getUrlPattern() { - java.lang.Object ref = urlPattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - urlPattern_ = s; - return s; - } - } - /** - * string urlPattern = 3; - * @return The bytes for urlPattern. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUrlPatternBytes() { - java.lang.Object ref = urlPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - urlPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object ip_ = ""; - /** - * string ip = 4; - * @return The ip. - */ - @java.lang.Override - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } - } - /** - * string ip = 4; - * @return The bytes for ip. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cdn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cdn_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urlPattern_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, urlPattern_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ip_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cdn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cdn_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urlPattern_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, urlPattern_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ip_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl) obj; - - if (!getCdn() - .equals(other.getCdn())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getUrlPattern() - .equals(other.getUrlPattern())) return false; - if (!getIp() - .equals(other.getIp())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CDN_FIELD_NUMBER; - hash = (53 * hash) + getCdn().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + URLPATTERN_FIELD_NUMBER; - hash = (53 * hash) + getUrlPattern().hashCode(); - hash = (37 * hash) + IP_FIELD_NUMBER; - hash = (53 * hash) + getIp().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PicUrl} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:PicUrl) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.internal_static_PicUrl_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.internal_static_PicUrl_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - cdn_ = ""; - url_ = ""; - urlPattern_ = ""; - ip_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.internal_static_PicUrl_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.cdn_ = cdn_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.url_ = url_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.urlPattern_ = urlPattern_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.ip_ = ip_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()) return this; - if (!other.getCdn().isEmpty()) { - cdn_ = other.cdn_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getUrlPattern().isEmpty()) { - urlPattern_ = other.urlPattern_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getIp().isEmpty()) { - ip_ = other.ip_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - cdn_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - urlPattern_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - ip_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object cdn_ = ""; - /** - * string cdn = 1; - * @return The cdn. - */ - public java.lang.String getCdn() { - java.lang.Object ref = cdn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cdn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cdn = 1; - * @return The bytes for cdn. - */ - public com.google.protobuf.ByteString - getCdnBytes() { - java.lang.Object ref = cdn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cdn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cdn = 1; - * @param value The cdn to set. - * @return This builder for chaining. - */ - public Builder setCdn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - cdn_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string cdn = 1; - * @return This builder for chaining. - */ - public Builder clearCdn() { - cdn_ = getDefaultInstance().getCdn(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string cdn = 1; - * @param value The bytes for cdn to set. - * @return This builder for chaining. - */ - public Builder setCdnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - cdn_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object url_ = ""; - /** - * string url = 2; - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string url = 2; - * @return The bytes for url. - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string url = 2; - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string url = 2; - * @return This builder for chaining. - */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string url = 2; - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object urlPattern_ = ""; - /** - * string urlPattern = 3; - * @return The urlPattern. - */ - public java.lang.String getUrlPattern() { - java.lang.Object ref = urlPattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - urlPattern_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string urlPattern = 3; - * @return The bytes for urlPattern. - */ - public com.google.protobuf.ByteString - getUrlPatternBytes() { - java.lang.Object ref = urlPattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - urlPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string urlPattern = 3; - * @param value The urlPattern to set. - * @return This builder for chaining. - */ - public Builder setUrlPattern( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - urlPattern_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string urlPattern = 3; - * @return This builder for chaining. - */ - public Builder clearUrlPattern() { - urlPattern_ = getDefaultInstance().getUrlPattern(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string urlPattern = 3; - * @param value The bytes for urlPattern to set. - * @return This builder for chaining. - */ - public Builder setUrlPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - urlPattern_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object ip_ = ""; - /** - * string ip = 4; - * @return The ip. - */ - public java.lang.String getIp() { - java.lang.Object ref = ip_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ip_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ip = 4; - * @return The bytes for ip. - */ - public com.google.protobuf.ByteString - getIpBytes() { - java.lang.Object ref = ip_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ip_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ip = 4; - * @param value The ip to set. - * @return This builder for chaining. - */ - public Builder setIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ip_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string ip = 4; - * @return This builder for chaining. - */ - public Builder clearIp() { - ip_ = getDefaultInstance().getIp(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string ip = 4; - * @param value The bytes for ip to set. - * @return This builder for chaining. - */ - public Builder setIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ip_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:PicUrl) - } - - // @@protoc_insertion_point(class_scope:PicUrl) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PicUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_PicUrl_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_PicUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014PicUrl.proto\"B\n\006PicUrl\022\013\n\003cdn\030\001 \001(\t\022\013\n" + - "\003url\030\002 \001(\t\022\022\n\nurlPattern\030\003 \001(\t\022\n\n\002ip\030\004 \001" + - "(\tB6\n4tech.ordinaryroad.live.chat.client" + - ".kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_PicUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_PicUrl_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_PicUrl_descriptor, - new java.lang.String[] { "Cdn", "Url", "UrlPattern", "Ip", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCEchoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCEchoOuterClass.java deleted file mode 100644 index c39aa9cb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCEchoOuterClass.java +++ /dev/null @@ -1,624 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCEcho.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCEchoOuterClass { - private SCEchoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCEchoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCEcho) - com.google.protobuf.MessageOrBuilder { - - /** - * string content = 1; - * @return The content. - */ - java.lang.String getContent(); - /** - * string content = 1; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); - } - /** - * Protobuf type {@code SCEcho} - */ - public static final class SCEcho extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCEcho) - SCEchoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCEcho.newBuilder() to construct. - private SCEcho(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCEcho() { - content_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCEcho(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.internal_static_SCEcho_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.internal_static_SCEcho_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.Builder.class); - } - - public static final int CONTENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * string content = 1; - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } - } - /** - * string content = 1; - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho) obj; - - if (!getContent() - .equals(other.getContent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCEcho} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCEcho) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEchoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.internal_static_SCEcho_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.internal_static_SCEcho_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - content_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.internal_static_SCEcho_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.content_ = content_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho.getDefaultInstance()) return this; - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object content_ = ""; - /** - * string content = 1; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 1; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 1; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string content = 1; - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string content = 1; - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCEcho) - } - - // @@protoc_insertion_point(class_scope:SCEcho) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCEcho parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCEchoOuterClass.SCEcho getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCEcho_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCEcho_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014SCEcho.proto\"\031\n\006SCEcho\022\017\n\007content\030\001 \001(" + - "\tB6\n4tech.ordinaryroad.live.chat.client." + - "kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCEcho_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCEcho_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCEcho_descriptor, - new java.lang.String[] { "Content", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCErrorOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCErrorOuterClass.java deleted file mode 100644 index 4bb004ee..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCErrorOuterClass.java +++ /dev/null @@ -1,769 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCError.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCErrorOuterClass { - private SCErrorOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCError) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - * @return The code. - */ - int getCode(); - - /** - * string msg = 2; - * @return The msg. - */ - java.lang.String getMsg(); - /** - * string msg = 2; - * @return The bytes for msg. - */ - com.google.protobuf.ByteString - getMsgBytes(); - - /** - * uint32 subCode = 3; - * @return The subCode. - */ - int getSubCode(); - } - /** - * Protobuf type {@code SCError} - */ - public static final class SCError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCError) - SCErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCError.newBuilder() to construct. - private SCError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCError() { - msg_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.internal_static_SCError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.internal_static_SCError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - public static final int MSG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - @java.lang.Override - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBCODE_FIELD_NUMBER = 3; - private int subCode_ = 0; - /** - * uint32 subCode = 3; - * @return The subCode. - */ - @java.lang.Override - public int getSubCode() { - return subCode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); - } - if (subCode_ != 0) { - output.writeUInt32(3, subCode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); - } - if (subCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, subCode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError) obj; - - if (getCode() - != other.getCode()) return false; - if (!getMsg() - .equals(other.getMsg())) return false; - if (getSubCode() - != other.getSubCode()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (37 * hash) + SUBCODE_FIELD_NUMBER; - hash = (53 * hash) + getSubCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCError) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.internal_static_SCError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.internal_static_SCError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - msg_ = ""; - subCode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.internal_static_SCError_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.msg_ = msg_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.subCode_ = subCode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getMsg().isEmpty()) { - msg_ = other.msg_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getSubCode() != 0) { - setSubCode(other.getSubCode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - msg_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - subCode_ = input.readUInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 code = 1; - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg = 2; - * @param value The msg to set. - * @return This builder for chaining. - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string msg = 2; - * @return This builder for chaining. - */ - public Builder clearMsg() { - msg_ = getDefaultInstance().getMsg(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string msg = 2; - * @param value The bytes for msg to set. - * @return This builder for chaining. - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int subCode_ ; - /** - * uint32 subCode = 3; - * @return The subCode. - */ - @java.lang.Override - public int getSubCode() { - return subCode_; - } - /** - * uint32 subCode = 3; - * @param value The subCode to set. - * @return This builder for chaining. - */ - public Builder setSubCode(int value) { - - subCode_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 subCode = 3; - * @return This builder for chaining. - */ - public Builder clearSubCode() { - bitField0_ = (bitField0_ & ~0x00000004); - subCode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCError) - } - - // @@protoc_insertion_point(class_scope:SCError) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCErrorOuterClass.SCError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rSCError.proto\"5\n\007SCError\022\014\n\004code\030\001 \001(\r" + - "\022\013\n\003msg\030\002 \001(\t\022\017\n\007subCode\030\003 \001(\rB6\n4tech.o" + - "rdinaryroad.live.chat.client.kuaishou.pr" + - "otobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCError_descriptor, - new java.lang.String[] { "Code", "Msg", "SubCode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCHeartbeatAckOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCHeartbeatAckOuterClass.java deleted file mode 100644 index c2f9a231..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCHeartbeatAckOuterClass.java +++ /dev/null @@ -1,623 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCHeartbeatAck.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCHeartbeatAckOuterClass { - private SCHeartbeatAckOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCHeartbeatAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCHeartbeatAck) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * uint64 clientTimestamp = 2; - * @return The clientTimestamp. - */ - long getClientTimestamp(); - } - /** - * Protobuf type {@code SCHeartbeatAck} - */ - public static final class SCHeartbeatAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCHeartbeatAck) - SCHeartbeatAckOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCHeartbeatAck.newBuilder() to construct. - private SCHeartbeatAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCHeartbeatAck() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCHeartbeatAck(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.internal_static_SCHeartbeatAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.internal_static_SCHeartbeatAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.Builder.class); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_ = 0L; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 2; - private long clientTimestamp_ = 0L; - /** - * uint64 clientTimestamp = 2; - * @return The clientTimestamp. - */ - @java.lang.Override - public long getClientTimestamp() { - return clientTimestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != 0L) { - output.writeUInt64(1, timestamp_); - } - if (clientTimestamp_ != 0L) { - output.writeUInt64(2, clientTimestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, timestamp_); - } - if (clientTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, clientTimestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck) obj; - - if (getTimestamp() - != other.getTimestamp()) return false; - if (getClientTimestamp() - != other.getClientTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClientTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCHeartbeatAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCHeartbeatAck) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.internal_static_SCHeartbeatAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.internal_static_SCHeartbeatAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - timestamp_ = 0L; - clientTimestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.internal_static_SCHeartbeatAck_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.timestamp_ = timestamp_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clientTimestamp_ = clientTimestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck.getDefaultInstance()) return this; - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getClientTimestamp() != 0L) { - setClientTimestamp(other.getClientTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - timestamp_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - clientTimestamp_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long timestamp_ ; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 1; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 timestamp = 1; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - - private long clientTimestamp_ ; - /** - * uint64 clientTimestamp = 2; - * @return The clientTimestamp. - */ - @java.lang.Override - public long getClientTimestamp() { - return clientTimestamp_; - } - /** - * uint64 clientTimestamp = 2; - * @param value The clientTimestamp to set. - * @return This builder for chaining. - */ - public Builder setClientTimestamp(long value) { - - clientTimestamp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 clientTimestamp = 2; - * @return This builder for chaining. - */ - public Builder clearClientTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - clientTimestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCHeartbeatAck) - } - - // @@protoc_insertion_point(class_scope:SCHeartbeatAck) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCHeartbeatAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCHeartbeatAckOuterClass.SCHeartbeatAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCHeartbeatAck_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCHeartbeatAck_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024SCHeartbeatAck.proto\"<\n\016SCHeartbeatAck" + - "\022\021\n\ttimestamp\030\001 \001(\004\022\027\n\017clientTimestamp\030\002" + - " \001(\004B6\n4tech.ordinaryroad.live.chat.clie" + - "nt.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCHeartbeatAck_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCHeartbeatAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCHeartbeatAck_descriptor, - new java.lang.String[] { "Timestamp", "ClientTimestamp", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCInfoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCInfoOuterClass.java deleted file mode 100644 index 8191432a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCInfoOuterClass.java +++ /dev/null @@ -1,696 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCInfo.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCInfoOuterClass { - private SCInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - * @return The code. - */ - int getCode(); - - /** - * string msg = 2; - * @return The msg. - */ - java.lang.String getMsg(); - /** - * string msg = 2; - * @return The bytes for msg. - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code SCInfo} - */ - public static final class SCInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCInfo) - SCInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCInfo.newBuilder() to construct. - private SCInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCInfo() { - msg_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.internal_static_SCInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.internal_static_SCInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - public static final int MSG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - @java.lang.Override - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo) obj; - - if (getCode() - != other.getCode()) return false; - if (!getMsg() - .equals(other.getMsg())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCInfo) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.internal_static_SCInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.internal_static_SCInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - msg_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.internal_static_SCInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.msg_ = msg_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getMsg().isEmpty()) { - msg_ = other.msg_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - msg_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 code = 1; - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg = 2; - * @param value The msg to set. - * @return This builder for chaining. - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string msg = 2; - * @return This builder for chaining. - */ - public Builder clearMsg() { - msg_ = getDefaultInstance().getMsg(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string msg = 2; - * @param value The bytes for msg to set. - * @return This builder for chaining. - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCInfo) - } - - // @@protoc_insertion_point(class_scope:SCInfo) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCInfoOuterClass.SCInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014SCInfo.proto\"#\n\006SCInfo\022\014\n\004code\030\001 \001(\r\022\013" + - "\n\003msg\030\002 \001(\tB6\n4tech.ordinaryroad.live.ch" + - "at.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCInfo_descriptor, - new java.lang.String[] { "Code", "Msg", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCLiveWarningMaskStatusChangedAudienceOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCLiveWarningMaskStatusChangedAudienceOuterClass.java deleted file mode 100644 index 507aad29..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCLiveWarningMaskStatusChangedAudienceOuterClass.java +++ /dev/null @@ -1,750 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCLiveWarningMaskStatusChangedAudience.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCLiveWarningMaskStatusChangedAudienceOuterClass { - private SCLiveWarningMaskStatusChangedAudienceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCLiveWarningMaskStatusChangedAudienceOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCLiveWarningMaskStatusChangedAudience) - com.google.protobuf.MessageOrBuilder { - - /** - * bool displayMask = 1; - * @return The displayMask. - */ - boolean getDisplayMask(); - - /** - * .AuditAudienceMask warningMask = 2; - * @return Whether the warningMask field is set. - */ - boolean hasWarningMask(); - /** - * .AuditAudienceMask warningMask = 2; - * @return The warningMask. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask getWarningMask(); - /** - * .AuditAudienceMask warningMask = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder getWarningMaskOrBuilder(); - } - /** - * Protobuf type {@code SCLiveWarningMaskStatusChangedAudience} - */ - public static final class SCLiveWarningMaskStatusChangedAudience extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCLiveWarningMaskStatusChangedAudience) - SCLiveWarningMaskStatusChangedAudienceOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCLiveWarningMaskStatusChangedAudience.newBuilder() to construct. - private SCLiveWarningMaskStatusChangedAudience(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCLiveWarningMaskStatusChangedAudience() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCLiveWarningMaskStatusChangedAudience(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.internal_static_SCLiveWarningMaskStatusChangedAudience_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.internal_static_SCLiveWarningMaskStatusChangedAudience_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.Builder.class); - } - - public static final int DISPLAYMASK_FIELD_NUMBER = 1; - private boolean displayMask_ = false; - /** - * bool displayMask = 1; - * @return The displayMask. - */ - @java.lang.Override - public boolean getDisplayMask() { - return displayMask_; - } - - public static final int WARNINGMASK_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask warningMask_; - /** - * .AuditAudienceMask warningMask = 2; - * @return Whether the warningMask field is set. - */ - @java.lang.Override - public boolean hasWarningMask() { - return warningMask_ != null; - } - /** - * .AuditAudienceMask warningMask = 2; - * @return The warningMask. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask getWarningMask() { - return warningMask_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance() : warningMask_; - } - /** - * .AuditAudienceMask warningMask = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder getWarningMaskOrBuilder() { - return warningMask_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance() : warningMask_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (displayMask_ != false) { - output.writeBool(1, displayMask_); - } - if (warningMask_ != null) { - output.writeMessage(2, getWarningMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (displayMask_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, displayMask_); - } - if (warningMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWarningMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience) obj; - - if (getDisplayMask() - != other.getDisplayMask()) return false; - if (hasWarningMask() != other.hasWarningMask()) return false; - if (hasWarningMask()) { - if (!getWarningMask() - .equals(other.getWarningMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISPLAYMASK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisplayMask()); - if (hasWarningMask()) { - hash = (37 * hash) + WARNINGMASK_FIELD_NUMBER; - hash = (53 * hash) + getWarningMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCLiveWarningMaskStatusChangedAudience} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCLiveWarningMaskStatusChangedAudience) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudienceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.internal_static_SCLiveWarningMaskStatusChangedAudience_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.internal_static_SCLiveWarningMaskStatusChangedAudience_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayMask_ = false; - warningMask_ = null; - if (warningMaskBuilder_ != null) { - warningMaskBuilder_.dispose(); - warningMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.internal_static_SCLiveWarningMaskStatusChangedAudience_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayMask_ = displayMask_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.warningMask_ = warningMaskBuilder_ == null - ? warningMask_ - : warningMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience.getDefaultInstance()) return this; - if (other.getDisplayMask() != false) { - setDisplayMask(other.getDisplayMask()); - } - if (other.hasWarningMask()) { - mergeWarningMask(other.getWarningMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - displayMask_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getWarningMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean displayMask_ ; - /** - * bool displayMask = 1; - * @return The displayMask. - */ - @java.lang.Override - public boolean getDisplayMask() { - return displayMask_; - } - /** - * bool displayMask = 1; - * @param value The displayMask to set. - * @return This builder for chaining. - */ - public Builder setDisplayMask(boolean value) { - - displayMask_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool displayMask = 1; - * @return This builder for chaining. - */ - public Builder clearDisplayMask() { - bitField0_ = (bitField0_ & ~0x00000001); - displayMask_ = false; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask warningMask_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder> warningMaskBuilder_; - /** - * .AuditAudienceMask warningMask = 2; - * @return Whether the warningMask field is set. - */ - public boolean hasWarningMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .AuditAudienceMask warningMask = 2; - * @return The warningMask. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask getWarningMask() { - if (warningMaskBuilder_ == null) { - return warningMask_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance() : warningMask_; - } else { - return warningMaskBuilder_.getMessage(); - } - } - /** - * .AuditAudienceMask warningMask = 2; - */ - public Builder setWarningMask(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask value) { - if (warningMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - warningMask_ = value; - } else { - warningMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .AuditAudienceMask warningMask = 2; - */ - public Builder setWarningMask( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder builderForValue) { - if (warningMaskBuilder_ == null) { - warningMask_ = builderForValue.build(); - } else { - warningMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .AuditAudienceMask warningMask = 2; - */ - public Builder mergeWarningMask(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask value) { - if (warningMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - warningMask_ != null && - warningMask_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance()) { - getWarningMaskBuilder().mergeFrom(value); - } else { - warningMask_ = value; - } - } else { - warningMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .AuditAudienceMask warningMask = 2; - */ - public Builder clearWarningMask() { - bitField0_ = (bitField0_ & ~0x00000002); - warningMask_ = null; - if (warningMaskBuilder_ != null) { - warningMaskBuilder_.dispose(); - warningMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .AuditAudienceMask warningMask = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder getWarningMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getWarningMaskFieldBuilder().getBuilder(); - } - /** - * .AuditAudienceMask warningMask = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder getWarningMaskOrBuilder() { - if (warningMaskBuilder_ != null) { - return warningMaskBuilder_.getMessageOrBuilder(); - } else { - return warningMask_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.getDefaultInstance() : warningMask_; - } - } - /** - * .AuditAudienceMask warningMask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder> - getWarningMaskFieldBuilder() { - if (warningMaskBuilder_ == null) { - warningMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMask.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.AuditAudienceMaskOrBuilder>( - getWarningMask(), - getParentForChildren(), - isClean()); - warningMask_ = null; - } - return warningMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCLiveWarningMaskStatusChangedAudience) - } - - // @@protoc_insertion_point(class_scope:SCLiveWarningMaskStatusChangedAudience) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCLiveWarningMaskStatusChangedAudience parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCLiveWarningMaskStatusChangedAudienceOuterClass.SCLiveWarningMaskStatusChangedAudience getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCLiveWarningMaskStatusChangedAudience_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCLiveWarningMaskStatusChangedAudience_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,SCLiveWarningMaskStatusChangedAudience" + - ".proto\032\027AuditAudienceMask.proto\"f\n&SCLiv" + - "eWarningMaskStatusChangedAudience\022\023\n\013dis" + - "playMask\030\001 \001(\010\022\'\n\013warningMask\030\002 \001(\0132\022.Au" + - "ditAudienceMaskB6\n4tech.ordinaryroad.liv" + - "e.chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.getDescriptor(), - }); - internal_static_SCLiveWarningMaskStatusChangedAudience_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCLiveWarningMaskStatusChangedAudience_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCLiveWarningMaskStatusChangedAudience_descriptor, - new java.lang.String[] { "DisplayMask", "WarningMask", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.AuditAudienceMaskOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCPingAckOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCPingAckOuterClass.java deleted file mode 100644 index 68e4df33..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCPingAckOuterClass.java +++ /dev/null @@ -1,624 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCPingAck.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCPingAckOuterClass { - private SCPingAckOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCPingAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCPingAck) - com.google.protobuf.MessageOrBuilder { - - /** - * string echoData = 1; - * @return The echoData. - */ - java.lang.String getEchoData(); - /** - * string echoData = 1; - * @return The bytes for echoData. - */ - com.google.protobuf.ByteString - getEchoDataBytes(); - } - /** - * Protobuf type {@code SCPingAck} - */ - public static final class SCPingAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCPingAck) - SCPingAckOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCPingAck.newBuilder() to construct. - private SCPingAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCPingAck() { - echoData_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCPingAck(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.internal_static_SCPingAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.internal_static_SCPingAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.Builder.class); - } - - public static final int ECHODATA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object echoData_ = ""; - /** - * string echoData = 1; - * @return The echoData. - */ - @java.lang.Override - public java.lang.String getEchoData() { - java.lang.Object ref = echoData_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - echoData_ = s; - return s; - } - } - /** - * string echoData = 1; - * @return The bytes for echoData. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEchoDataBytes() { - java.lang.Object ref = echoData_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - echoData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(echoData_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, echoData_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(echoData_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, echoData_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck) obj; - - if (!getEchoData() - .equals(other.getEchoData())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ECHODATA_FIELD_NUMBER; - hash = (53 * hash) + getEchoData().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCPingAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCPingAck) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.internal_static_SCPingAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.internal_static_SCPingAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - echoData_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.internal_static_SCPingAck_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.echoData_ = echoData_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck.getDefaultInstance()) return this; - if (!other.getEchoData().isEmpty()) { - echoData_ = other.echoData_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - echoData_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object echoData_ = ""; - /** - * string echoData = 1; - * @return The echoData. - */ - public java.lang.String getEchoData() { - java.lang.Object ref = echoData_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - echoData_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string echoData = 1; - * @return The bytes for echoData. - */ - public com.google.protobuf.ByteString - getEchoDataBytes() { - java.lang.Object ref = echoData_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - echoData_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string echoData = 1; - * @param value The echoData to set. - * @return This builder for chaining. - */ - public Builder setEchoData( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - echoData_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string echoData = 1; - * @return This builder for chaining. - */ - public Builder clearEchoData() { - echoData_ = getDefaultInstance().getEchoData(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string echoData = 1; - * @param value The bytes for echoData to set. - * @return This builder for chaining. - */ - public Builder setEchoDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - echoData_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCPingAck) - } - - // @@protoc_insertion_point(class_scope:SCPingAck) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCPingAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCPingAckOuterClass.SCPingAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCPingAck_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCPingAck_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017SCPingAck.proto\"\035\n\tSCPingAck\022\020\n\010echoDa" + - "ta\030\001 \001(\tB6\n4tech.ordinaryroad.live.chat." + - "client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCPingAck_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCPingAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCPingAck_descriptor, - new java.lang.String[] { "EchoData", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebAuthorPauseOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebAuthorPauseOuterClass.java deleted file mode 100644 index c2e6f94f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebAuthorPauseOuterClass.java +++ /dev/null @@ -1,658 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebAuthorPause.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebAuthorPauseOuterClass { - private SCWebAuthorPauseOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebAuthorPauseOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebAuthorPause) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - - /** - * .WebPauseType pauseType = 2; - * @return The enum numeric value on the wire for pauseType. - */ - int getPauseTypeValue(); - /** - * .WebPauseType pauseType = 2; - * @return The pauseType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType getPauseType(); - } - /** - * Protobuf type {@code SCWebAuthorPause} - */ - public static final class SCWebAuthorPause extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebAuthorPause) - SCWebAuthorPauseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebAuthorPause.newBuilder() to construct. - private SCWebAuthorPause(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebAuthorPause() { - pauseType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebAuthorPause(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.internal_static_SCWebAuthorPause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.internal_static_SCWebAuthorPause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int PAUSETYPE_FIELD_NUMBER = 2; - private int pauseType_ = 0; - /** - * .WebPauseType pauseType = 2; - * @return The enum numeric value on the wire for pauseType. - */ - @java.lang.Override public int getPauseTypeValue() { - return pauseType_; - } - /** - * .WebPauseType pauseType = 2; - * @return The pauseType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType getPauseType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType.forNumber(pauseType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - if (pauseType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType.UNKNOWN_PAUSE_TYPE.getNumber()) { - output.writeEnum(2, pauseType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - if (pauseType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType.UNKNOWN_PAUSE_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, pauseType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause) obj; - - if (getTime() - != other.getTime()) return false; - if (pauseType_ != other.pauseType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + PAUSETYPE_FIELD_NUMBER; - hash = (53 * hash) + pauseType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebAuthorPause} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebAuthorPause) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPauseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.internal_static_SCWebAuthorPause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.internal_static_SCWebAuthorPause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - pauseType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.internal_static_SCWebAuthorPause_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pauseType_ = pauseType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (other.pauseType_ != 0) { - setPauseTypeValue(other.getPauseTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - pauseType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - - private int pauseType_ = 0; - /** - * .WebPauseType pauseType = 2; - * @return The enum numeric value on the wire for pauseType. - */ - @java.lang.Override public int getPauseTypeValue() { - return pauseType_; - } - /** - * .WebPauseType pauseType = 2; - * @param value The enum numeric value on the wire for pauseType to set. - * @return This builder for chaining. - */ - public Builder setPauseTypeValue(int value) { - pauseType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .WebPauseType pauseType = 2; - * @return The pauseType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType getPauseType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType.forNumber(pauseType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType.UNRECOGNIZED : result; - } - /** - * .WebPauseType pauseType = 2; - * @param value The pauseType to set. - * @return This builder for chaining. - */ - public Builder setPauseType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.WebPauseType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - pauseType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebPauseType pauseType = 2; - * @return This builder for chaining. - */ - public Builder clearPauseType() { - bitField0_ = (bitField0_ & ~0x00000002); - pauseType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebAuthorPause) - } - - // @@protoc_insertion_point(class_scope:SCWebAuthorPause) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebAuthorPause parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorPauseOuterClass.SCWebAuthorPause getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebAuthorPause_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebAuthorPause_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SCWebAuthorPause.proto\032\022WebPauseType.p" + - "roto\"B\n\020SCWebAuthorPause\022\014\n\004time\030\001 \001(\004\022 " + - "\n\tpauseType\030\002 \001(\0162\r.WebPauseTypeB6\n4tech" + - ".ordinaryroad.live.chat.client.kuaishou." + - "protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.getDescriptor(), - }); - internal_static_SCWebAuthorPause_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebAuthorPause_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebAuthorPause_descriptor, - new java.lang.String[] { "Time", "PauseType", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebAuthorResumeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebAuthorResumeOuterClass.java deleted file mode 100644 index 77e3c124..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebAuthorResumeOuterClass.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebAuthorResume.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebAuthorResumeOuterClass { - private SCWebAuthorResumeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebAuthorResumeOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebAuthorResume) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - } - /** - * Protobuf type {@code SCWebAuthorResume} - */ - public static final class SCWebAuthorResume extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebAuthorResume) - SCWebAuthorResumeOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebAuthorResume.newBuilder() to construct. - private SCWebAuthorResume(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebAuthorResume() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebAuthorResume(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.internal_static_SCWebAuthorResume_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.internal_static_SCWebAuthorResume_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume) obj; - - if (getTime() - != other.getTime()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebAuthorResume} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebAuthorResume) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.internal_static_SCWebAuthorResume_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.internal_static_SCWebAuthorResume_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.internal_static_SCWebAuthorResume_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebAuthorResume) - } - - // @@protoc_insertion_point(class_scope:SCWebAuthorResume) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebAuthorResume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebAuthorResumeOuterClass.SCWebAuthorResume getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebAuthorResume_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebAuthorResume_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027SCWebAuthorResume.proto\"!\n\021SCWebAuthor" + - "Resume\022\014\n\004time\030\001 \001(\004B6\n4tech.ordinaryroa" + - "d.live.chat.client.kuaishou.protobufb\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebAuthorResume_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebAuthorResume_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebAuthorResume_descriptor, - new java.lang.String[] { "Time", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebBetChangedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebBetChangedOuterClass.java deleted file mode 100644 index 2aa5e587..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebBetChangedOuterClass.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebBetChanged.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebBetChangedOuterClass { - private SCWebBetChangedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebBetChangedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebBetChanged) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 maxDelayMillis = 1; - * @return The maxDelayMillis. - */ - long getMaxDelayMillis(); - } - /** - * Protobuf type {@code SCWebBetChanged} - */ - public static final class SCWebBetChanged extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebBetChanged) - SCWebBetChangedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebBetChanged.newBuilder() to construct. - private SCWebBetChanged(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebBetChanged() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebBetChanged(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.internal_static_SCWebBetChanged_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.internal_static_SCWebBetChanged_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.Builder.class); - } - - public static final int MAXDELAYMILLIS_FIELD_NUMBER = 1; - private long maxDelayMillis_ = 0L; - /** - * uint64 maxDelayMillis = 1; - * @return The maxDelayMillis. - */ - @java.lang.Override - public long getMaxDelayMillis() { - return maxDelayMillis_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxDelayMillis_ != 0L) { - output.writeUInt64(1, maxDelayMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxDelayMillis_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, maxDelayMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged) obj; - - if (getMaxDelayMillis() - != other.getMaxDelayMillis()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAXDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxDelayMillis()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebBetChanged} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebBetChanged) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChangedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.internal_static_SCWebBetChanged_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.internal_static_SCWebBetChanged_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxDelayMillis_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.internal_static_SCWebBetChanged_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxDelayMillis_ = maxDelayMillis_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged.getDefaultInstance()) return this; - if (other.getMaxDelayMillis() != 0L) { - setMaxDelayMillis(other.getMaxDelayMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - maxDelayMillis_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long maxDelayMillis_ ; - /** - * uint64 maxDelayMillis = 1; - * @return The maxDelayMillis. - */ - @java.lang.Override - public long getMaxDelayMillis() { - return maxDelayMillis_; - } - /** - * uint64 maxDelayMillis = 1; - * @param value The maxDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setMaxDelayMillis(long value) { - - maxDelayMillis_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 maxDelayMillis = 1; - * @return This builder for chaining. - */ - public Builder clearMaxDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000001); - maxDelayMillis_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebBetChanged) - } - - // @@protoc_insertion_point(class_scope:SCWebBetChanged) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebBetChanged parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetChangedOuterClass.SCWebBetChanged getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebBetChanged_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebBetChanged_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SCWebBetChanged.proto\")\n\017SCWebBetChang" + - "ed\022\026\n\016maxDelayMillis\030\001 \001(\004B6\n4tech.ordin" + - "aryroad.live.chat.client.kuaishou.protob" + - "ufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebBetChanged_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebBetChanged_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebBetChanged_descriptor, - new java.lang.String[] { "MaxDelayMillis", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebBetClosedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebBetClosedOuterClass.java deleted file mode 100644 index 5fa5356c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebBetClosedOuterClass.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebBetClosed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebBetClosedOuterClass { - private SCWebBetClosedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebBetClosedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebBetClosed) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 maxDelayMillis = 1; - * @return The maxDelayMillis. - */ - long getMaxDelayMillis(); - } - /** - * Protobuf type {@code SCWebBetClosed} - */ - public static final class SCWebBetClosed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebBetClosed) - SCWebBetClosedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebBetClosed.newBuilder() to construct. - private SCWebBetClosed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebBetClosed() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebBetClosed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.internal_static_SCWebBetClosed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.internal_static_SCWebBetClosed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.Builder.class); - } - - public static final int MAXDELAYMILLIS_FIELD_NUMBER = 1; - private long maxDelayMillis_ = 0L; - /** - * uint64 maxDelayMillis = 1; - * @return The maxDelayMillis. - */ - @java.lang.Override - public long getMaxDelayMillis() { - return maxDelayMillis_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxDelayMillis_ != 0L) { - output.writeUInt64(1, maxDelayMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxDelayMillis_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, maxDelayMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed) obj; - - if (getMaxDelayMillis() - != other.getMaxDelayMillis()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAXDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxDelayMillis()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebBetClosed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebBetClosed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.internal_static_SCWebBetClosed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.internal_static_SCWebBetClosed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxDelayMillis_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.internal_static_SCWebBetClosed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxDelayMillis_ = maxDelayMillis_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed.getDefaultInstance()) return this; - if (other.getMaxDelayMillis() != 0L) { - setMaxDelayMillis(other.getMaxDelayMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - maxDelayMillis_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long maxDelayMillis_ ; - /** - * uint64 maxDelayMillis = 1; - * @return The maxDelayMillis. - */ - @java.lang.Override - public long getMaxDelayMillis() { - return maxDelayMillis_; - } - /** - * uint64 maxDelayMillis = 1; - * @param value The maxDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setMaxDelayMillis(long value) { - - maxDelayMillis_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 maxDelayMillis = 1; - * @return This builder for chaining. - */ - public Builder clearMaxDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000001); - maxDelayMillis_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebBetClosed) - } - - // @@protoc_insertion_point(class_scope:SCWebBetClosed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebBetClosed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebBetClosedOuterClass.SCWebBetClosed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebBetClosed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebBetClosed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024SCWebBetClosed.proto\"(\n\016SCWebBetClosed" + - "\022\026\n\016maxDelayMillis\030\001 \001(\004B6\n4tech.ordinar" + - "yroad.live.chat.client.kuaishou.protobuf" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebBetClosed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebBetClosed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebBetClosed_descriptor, - new java.lang.String[] { "MaxDelayMillis", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebCurrentRedPackFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebCurrentRedPackFeedOuterClass.java deleted file mode 100644 index fc3d24a5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebCurrentRedPackFeedOuterClass.java +++ /dev/null @@ -1,858 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebCurrentRedPackFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebCurrentRedPackFeedOuterClass { - private SCWebCurrentRedPackFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebCurrentRedPackFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebCurrentRedPackFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .WebRedPackInfo redPack = 1; - */ - java.util.List - getRedPackList(); - /** - * repeated .WebRedPackInfo redPack = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getRedPack(int index); - /** - * repeated .WebRedPackInfo redPack = 1; - */ - int getRedPackCount(); - /** - * repeated .WebRedPackInfo redPack = 1; - */ - java.util.List - getRedPackOrBuilderList(); - /** - * repeated .WebRedPackInfo redPack = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder getRedPackOrBuilder( - int index); - } - /** - * Protobuf type {@code SCWebCurrentRedPackFeed} - */ - public static final class SCWebCurrentRedPackFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebCurrentRedPackFeed) - SCWebCurrentRedPackFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebCurrentRedPackFeed.newBuilder() to construct. - private SCWebCurrentRedPackFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebCurrentRedPackFeed() { - redPack_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebCurrentRedPackFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.internal_static_SCWebCurrentRedPackFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.internal_static_SCWebCurrentRedPackFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.Builder.class); - } - - public static final int REDPACK_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List redPack_; - /** - * repeated .WebRedPackInfo redPack = 1; - */ - @java.lang.Override - public java.util.List getRedPackList() { - return redPack_; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - @java.lang.Override - public java.util.List - getRedPackOrBuilderList() { - return redPack_; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - @java.lang.Override - public int getRedPackCount() { - return redPack_.size(); - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getRedPack(int index) { - return redPack_.get(index); - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder getRedPackOrBuilder( - int index) { - return redPack_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < redPack_.size(); i++) { - output.writeMessage(1, redPack_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < redPack_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, redPack_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed) obj; - - if (!getRedPackList() - .equals(other.getRedPackList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRedPackCount() > 0) { - hash = (37 * hash) + REDPACK_FIELD_NUMBER; - hash = (53 * hash) + getRedPackList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebCurrentRedPackFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebCurrentRedPackFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.internal_static_SCWebCurrentRedPackFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.internal_static_SCWebCurrentRedPackFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (redPackBuilder_ == null) { - redPack_ = java.util.Collections.emptyList(); - } else { - redPack_ = null; - redPackBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.internal_static_SCWebCurrentRedPackFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed result) { - if (redPackBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - redPack_ = java.util.Collections.unmodifiableList(redPack_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.redPack_ = redPack_; - } else { - result.redPack_ = redPackBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed.getDefaultInstance()) return this; - if (redPackBuilder_ == null) { - if (!other.redPack_.isEmpty()) { - if (redPack_.isEmpty()) { - redPack_ = other.redPack_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRedPackIsMutable(); - redPack_.addAll(other.redPack_); - } - onChanged(); - } - } else { - if (!other.redPack_.isEmpty()) { - if (redPackBuilder_.isEmpty()) { - redPackBuilder_.dispose(); - redPackBuilder_ = null; - redPack_ = other.redPack_; - bitField0_ = (bitField0_ & ~0x00000001); - redPackBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRedPackFieldBuilder() : null; - } else { - redPackBuilder_.addAllMessages(other.redPack_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.parser(), - extensionRegistry); - if (redPackBuilder_ == null) { - ensureRedPackIsMutable(); - redPack_.add(m); - } else { - redPackBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List redPack_ = - java.util.Collections.emptyList(); - private void ensureRedPackIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - redPack_ = new java.util.ArrayList(redPack_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder> redPackBuilder_; - - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public java.util.List getRedPackList() { - if (redPackBuilder_ == null) { - return java.util.Collections.unmodifiableList(redPack_); - } else { - return redPackBuilder_.getMessageList(); - } - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public int getRedPackCount() { - if (redPackBuilder_ == null) { - return redPack_.size(); - } else { - return redPackBuilder_.getCount(); - } - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getRedPack(int index) { - if (redPackBuilder_ == null) { - return redPack_.get(index); - } else { - return redPackBuilder_.getMessage(index); - } - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder setRedPack( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo value) { - if (redPackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedPackIsMutable(); - redPack_.set(index, value); - onChanged(); - } else { - redPackBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder setRedPack( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder builderForValue) { - if (redPackBuilder_ == null) { - ensureRedPackIsMutable(); - redPack_.set(index, builderForValue.build()); - onChanged(); - } else { - redPackBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder addRedPack(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo value) { - if (redPackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedPackIsMutable(); - redPack_.add(value); - onChanged(); - } else { - redPackBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder addRedPack( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo value) { - if (redPackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRedPackIsMutable(); - redPack_.add(index, value); - onChanged(); - } else { - redPackBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder addRedPack( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder builderForValue) { - if (redPackBuilder_ == null) { - ensureRedPackIsMutable(); - redPack_.add(builderForValue.build()); - onChanged(); - } else { - redPackBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder addRedPack( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder builderForValue) { - if (redPackBuilder_ == null) { - ensureRedPackIsMutable(); - redPack_.add(index, builderForValue.build()); - onChanged(); - } else { - redPackBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder addAllRedPack( - java.lang.Iterable values) { - if (redPackBuilder_ == null) { - ensureRedPackIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, redPack_); - onChanged(); - } else { - redPackBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder clearRedPack() { - if (redPackBuilder_ == null) { - redPack_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - redPackBuilder_.clear(); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public Builder removeRedPack(int index) { - if (redPackBuilder_ == null) { - ensureRedPackIsMutable(); - redPack_.remove(index); - onChanged(); - } else { - redPackBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder getRedPackBuilder( - int index) { - return getRedPackFieldBuilder().getBuilder(index); - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder getRedPackOrBuilder( - int index) { - if (redPackBuilder_ == null) { - return redPack_.get(index); } else { - return redPackBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public java.util.List - getRedPackOrBuilderList() { - if (redPackBuilder_ != null) { - return redPackBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(redPack_); - } - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder addRedPackBuilder() { - return getRedPackFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.getDefaultInstance()); - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder addRedPackBuilder( - int index) { - return getRedPackFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.getDefaultInstance()); - } - /** - * repeated .WebRedPackInfo redPack = 1; - */ - public java.util.List - getRedPackBuilderList() { - return getRedPackFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder> - getRedPackFieldBuilder() { - if (redPackBuilder_ == null) { - redPackBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder>( - redPack_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - redPack_ = null; - } - return redPackBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebCurrentRedPackFeed) - } - - // @@protoc_insertion_point(class_scope:SCWebCurrentRedPackFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebCurrentRedPackFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebCurrentRedPackFeedOuterClass.SCWebCurrentRedPackFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebCurrentRedPackFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebCurrentRedPackFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035SCWebCurrentRedPackFeed.proto\032\024WebRedP" + - "ackInfo.proto\";\n\027SCWebCurrentRedPackFeed" + - "\022 \n\007redPack\030\001 \003(\0132\017.WebRedPackInfoB6\n4te" + - "ch.ordinaryroad.live.chat.client.kuaisho" + - "u.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.getDescriptor(), - }); - internal_static_SCWebCurrentRedPackFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebCurrentRedPackFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebCurrentRedPackFeed_descriptor, - new java.lang.String[] { "RedPack", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebEnterRoomAckOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebEnterRoomAckOuterClass.java deleted file mode 100644 index bc9092d2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebEnterRoomAckOuterClass.java +++ /dev/null @@ -1,697 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebEnterRoomAck.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebEnterRoomAckOuterClass { - private SCWebEnterRoomAckOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebEnterRoomAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebEnterRoomAck) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 minReconnectMs = 1; - * @return The minReconnectMs. - */ - long getMinReconnectMs(); - - /** - * uint64 maxReconnectMs = 2; - * @return The maxReconnectMs. - */ - long getMaxReconnectMs(); - - /** - * uint64 heartbeatIntervalMs = 3; - * @return The heartbeatIntervalMs. - */ - long getHeartbeatIntervalMs(); - } - /** - * Protobuf type {@code SCWebEnterRoomAck} - */ - public static final class SCWebEnterRoomAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebEnterRoomAck) - SCWebEnterRoomAckOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebEnterRoomAck.newBuilder() to construct. - private SCWebEnterRoomAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebEnterRoomAck() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebEnterRoomAck(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.internal_static_SCWebEnterRoomAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.internal_static_SCWebEnterRoomAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.Builder.class); - } - - public static final int MINRECONNECTMS_FIELD_NUMBER = 1; - private long minReconnectMs_ = 0L; - /** - * uint64 minReconnectMs = 1; - * @return The minReconnectMs. - */ - @java.lang.Override - public long getMinReconnectMs() { - return minReconnectMs_; - } - - public static final int MAXRECONNECTMS_FIELD_NUMBER = 2; - private long maxReconnectMs_ = 0L; - /** - * uint64 maxReconnectMs = 2; - * @return The maxReconnectMs. - */ - @java.lang.Override - public long getMaxReconnectMs() { - return maxReconnectMs_; - } - - public static final int HEARTBEATINTERVALMS_FIELD_NUMBER = 3; - private long heartbeatIntervalMs_ = 0L; - /** - * uint64 heartbeatIntervalMs = 3; - * @return The heartbeatIntervalMs. - */ - @java.lang.Override - public long getHeartbeatIntervalMs() { - return heartbeatIntervalMs_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (minReconnectMs_ != 0L) { - output.writeUInt64(1, minReconnectMs_); - } - if (maxReconnectMs_ != 0L) { - output.writeUInt64(2, maxReconnectMs_); - } - if (heartbeatIntervalMs_ != 0L) { - output.writeUInt64(3, heartbeatIntervalMs_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (minReconnectMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, minReconnectMs_); - } - if (maxReconnectMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, maxReconnectMs_); - } - if (heartbeatIntervalMs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, heartbeatIntervalMs_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck) obj; - - if (getMinReconnectMs() - != other.getMinReconnectMs()) return false; - if (getMaxReconnectMs() - != other.getMaxReconnectMs()) return false; - if (getHeartbeatIntervalMs() - != other.getHeartbeatIntervalMs()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MINRECONNECTMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinReconnectMs()); - hash = (37 * hash) + MAXRECONNECTMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxReconnectMs()); - hash = (37 * hash) + HEARTBEATINTERVALMS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getHeartbeatIntervalMs()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebEnterRoomAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebEnterRoomAck) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.internal_static_SCWebEnterRoomAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.internal_static_SCWebEnterRoomAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - minReconnectMs_ = 0L; - maxReconnectMs_ = 0L; - heartbeatIntervalMs_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.internal_static_SCWebEnterRoomAck_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.minReconnectMs_ = minReconnectMs_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxReconnectMs_ = maxReconnectMs_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.heartbeatIntervalMs_ = heartbeatIntervalMs_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck.getDefaultInstance()) return this; - if (other.getMinReconnectMs() != 0L) { - setMinReconnectMs(other.getMinReconnectMs()); - } - if (other.getMaxReconnectMs() != 0L) { - setMaxReconnectMs(other.getMaxReconnectMs()); - } - if (other.getHeartbeatIntervalMs() != 0L) { - setHeartbeatIntervalMs(other.getHeartbeatIntervalMs()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - minReconnectMs_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - maxReconnectMs_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - heartbeatIntervalMs_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long minReconnectMs_ ; - /** - * uint64 minReconnectMs = 1; - * @return The minReconnectMs. - */ - @java.lang.Override - public long getMinReconnectMs() { - return minReconnectMs_; - } - /** - * uint64 minReconnectMs = 1; - * @param value The minReconnectMs to set. - * @return This builder for chaining. - */ - public Builder setMinReconnectMs(long value) { - - minReconnectMs_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 minReconnectMs = 1; - * @return This builder for chaining. - */ - public Builder clearMinReconnectMs() { - bitField0_ = (bitField0_ & ~0x00000001); - minReconnectMs_ = 0L; - onChanged(); - return this; - } - - private long maxReconnectMs_ ; - /** - * uint64 maxReconnectMs = 2; - * @return The maxReconnectMs. - */ - @java.lang.Override - public long getMaxReconnectMs() { - return maxReconnectMs_; - } - /** - * uint64 maxReconnectMs = 2; - * @param value The maxReconnectMs to set. - * @return This builder for chaining. - */ - public Builder setMaxReconnectMs(long value) { - - maxReconnectMs_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 maxReconnectMs = 2; - * @return This builder for chaining. - */ - public Builder clearMaxReconnectMs() { - bitField0_ = (bitField0_ & ~0x00000002); - maxReconnectMs_ = 0L; - onChanged(); - return this; - } - - private long heartbeatIntervalMs_ ; - /** - * uint64 heartbeatIntervalMs = 3; - * @return The heartbeatIntervalMs. - */ - @java.lang.Override - public long getHeartbeatIntervalMs() { - return heartbeatIntervalMs_; - } - /** - * uint64 heartbeatIntervalMs = 3; - * @param value The heartbeatIntervalMs to set. - * @return This builder for chaining. - */ - public Builder setHeartbeatIntervalMs(long value) { - - heartbeatIntervalMs_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 heartbeatIntervalMs = 3; - * @return This builder for chaining. - */ - public Builder clearHeartbeatIntervalMs() { - bitField0_ = (bitField0_ & ~0x00000004); - heartbeatIntervalMs_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebEnterRoomAck) - } - - // @@protoc_insertion_point(class_scope:SCWebEnterRoomAck) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebEnterRoomAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebEnterRoomAckOuterClass.SCWebEnterRoomAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebEnterRoomAck_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebEnterRoomAck_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027SCWebEnterRoomAck.proto\"`\n\021SCWebEnterR" + - "oomAck\022\026\n\016minReconnectMs\030\001 \001(\004\022\026\n\016maxRec" + - "onnectMs\030\002 \001(\004\022\033\n\023heartbeatIntervalMs\030\003 " + - "\001(\004B6\n4tech.ordinaryroad.live.chat.clien" + - "t.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebEnterRoomAck_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebEnterRoomAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebEnterRoomAck_descriptor, - new java.lang.String[] { "MinReconnectMs", "MaxReconnectMs", "HeartbeatIntervalMs", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebErrorOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebErrorOuterClass.java deleted file mode 100644 index e033d815..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebErrorOuterClass.java +++ /dev/null @@ -1,769 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebError.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebErrorOuterClass { - private SCWebErrorOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebError) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 code = 1; - * @return The code. - */ - int getCode(); - - /** - * string msg = 2; - * @return The msg. - */ - java.lang.String getMsg(); - /** - * string msg = 2; - * @return The bytes for msg. - */ - com.google.protobuf.ByteString - getMsgBytes(); - - /** - * uint32 subCode = 3; - * @return The subCode. - */ - int getSubCode(); - } - /** - * Protobuf type {@code SCWebError} - */ - public static final class SCWebError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebError) - SCWebErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebError.newBuilder() to construct. - private SCWebError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebError() { - msg_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebError(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.internal_static_SCWebError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.internal_static_SCWebError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - public static final int MSG_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - @java.lang.Override - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBCODE_FIELD_NUMBER = 3; - private int subCode_ = 0; - /** - * uint32 subCode = 3; - * @return The subCode. - */ - @java.lang.Override - public int getSubCode() { - return subCode_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeUInt32(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, msg_); - } - if (subCode_ != 0) { - output.writeUInt32(3, subCode_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(msg_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, msg_); - } - if (subCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, subCode_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError) obj; - - if (getCode() - != other.getCode()) return false; - if (!getMsg() - .equals(other.getMsg())) return false; - if (getSubCode() - != other.getSubCode()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - hash = (37 * hash) + SUBCODE_FIELD_NUMBER; - hash = (53 * hash) + getSubCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebError) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.internal_static_SCWebError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.internal_static_SCWebError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - code_ = 0; - msg_ = ""; - subCode_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.internal_static_SCWebError_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.msg_ = msg_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.subCode_ = subCode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getMsg().isEmpty()) { - msg_ = other.msg_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getSubCode() != 0) { - setSubCode(other.getSubCode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readUInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - msg_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - subCode_ = input.readUInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int code_ ; - /** - * uint32 code = 1; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * uint32 code = 1; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint32 code = 1; - * @return This builder for chaining. - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * string msg = 2; - * @return The msg. - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - msg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string msg = 2; - * @return The bytes for msg. - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string msg = 2; - * @param value The msg to set. - * @return This builder for chaining. - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string msg = 2; - * @return This builder for chaining. - */ - public Builder clearMsg() { - msg_ = getDefaultInstance().getMsg(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string msg = 2; - * @param value The bytes for msg to set. - * @return This builder for chaining. - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - msg_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int subCode_ ; - /** - * uint32 subCode = 3; - * @return The subCode. - */ - @java.lang.Override - public int getSubCode() { - return subCode_; - } - /** - * uint32 subCode = 3; - * @param value The subCode to set. - * @return This builder for chaining. - */ - public Builder setSubCode(int value) { - - subCode_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 subCode = 3; - * @return This builder for chaining. - */ - public Builder clearSubCode() { - bitField0_ = (bitField0_ & ~0x00000004); - subCode_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebError) - } - - // @@protoc_insertion_point(class_scope:SCWebError) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebErrorOuterClass.SCWebError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020SCWebError.proto\"8\n\nSCWebError\022\014\n\004code" + - "\030\001 \001(\r\022\013\n\003msg\030\002 \001(\t\022\017\n\007subCode\030\003 \001(\rB6\n4" + - "tech.ordinaryroad.live.chat.client.kuais" + - "hou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebError_descriptor, - new java.lang.String[] { "Code", "Msg", "SubCode", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebFeedPushOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebFeedPushOuterClass.java deleted file mode 100644 index ab940c61..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebFeedPushOuterClass.java +++ /dev/null @@ -1,3487 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebFeedPush.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebFeedPushOuterClass { - private SCWebFeedPushOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebFeedPushOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebFeedPush) - com.google.protobuf.MessageOrBuilder { - - /** - * string displayWatchingCount = 1; - * @return The displayWatchingCount. - */ - java.lang.String getDisplayWatchingCount(); - /** - * string displayWatchingCount = 1; - * @return The bytes for displayWatchingCount. - */ - com.google.protobuf.ByteString - getDisplayWatchingCountBytes(); - - /** - * string displayLikeCount = 2; - * @return The displayLikeCount. - */ - java.lang.String getDisplayLikeCount(); - /** - * string displayLikeCount = 2; - * @return The bytes for displayLikeCount. - */ - com.google.protobuf.ByteString - getDisplayLikeCountBytes(); - - /** - * uint64 pendingLikeCount = 3; - * @return The pendingLikeCount. - */ - long getPendingLikeCount(); - - /** - * uint64 pushInterval = 4; - * @return The pushInterval. - */ - long getPushInterval(); - - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - java.util.List - getCommentFeedsList(); - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed getCommentFeeds(int index); - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - int getCommentFeedsCount(); - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - java.util.List - getCommentFeedsOrBuilderList(); - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder getCommentFeedsOrBuilder( - int index); - - /** - * string commentCursor = 6; - * @return The commentCursor. - */ - java.lang.String getCommentCursor(); - /** - * string commentCursor = 6; - * @return The bytes for commentCursor. - */ - com.google.protobuf.ByteString - getCommentCursorBytes(); - - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - java.util.List - getComboCommentFeedList(); - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed getComboCommentFeed(int index); - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - int getComboCommentFeedCount(); - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - java.util.List - getComboCommentFeedOrBuilderList(); - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder getComboCommentFeedOrBuilder( - int index); - - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - java.util.List - getLikeFeedsList(); - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed getLikeFeeds(int index); - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - int getLikeFeedsCount(); - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - java.util.List - getLikeFeedsOrBuilderList(); - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder getLikeFeedsOrBuilder( - int index); - - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - java.util.List - getGiftFeedsList(); - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed getGiftFeeds(int index); - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - int getGiftFeedsCount(); - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - java.util.List - getGiftFeedsOrBuilderList(); - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder getGiftFeedsOrBuilder( - int index); - - /** - * string giftCursor = 10; - * @return The giftCursor. - */ - java.lang.String getGiftCursor(); - /** - * string giftCursor = 10; - * @return The bytes for giftCursor. - */ - com.google.protobuf.ByteString - getGiftCursorBytes(); - - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - java.util.List - getSystemNoticeFeedsList(); - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed getSystemNoticeFeeds(int index); - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - int getSystemNoticeFeedsCount(); - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - java.util.List - getSystemNoticeFeedsOrBuilderList(); - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder getSystemNoticeFeedsOrBuilder( - int index); - - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - java.util.List - getShareFeedsList(); - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed getShareFeeds(int index); - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - int getShareFeedsCount(); - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - java.util.List - getShareFeedsOrBuilderList(); - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder getShareFeedsOrBuilder( - int index); - } - /** - * Protobuf type {@code SCWebFeedPush} - */ - public static final class SCWebFeedPush extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebFeedPush) - SCWebFeedPushOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebFeedPush.newBuilder() to construct. - private SCWebFeedPush(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebFeedPush() { - displayWatchingCount_ = ""; - displayLikeCount_ = ""; - commentFeeds_ = java.util.Collections.emptyList(); - commentCursor_ = ""; - comboCommentFeed_ = java.util.Collections.emptyList(); - likeFeeds_ = java.util.Collections.emptyList(); - giftFeeds_ = java.util.Collections.emptyList(); - giftCursor_ = ""; - systemNoticeFeeds_ = java.util.Collections.emptyList(); - shareFeeds_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebFeedPush(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.internal_static_SCWebFeedPush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.internal_static_SCWebFeedPush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.Builder.class); - } - - public static final int DISPLAYWATCHINGCOUNT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object displayWatchingCount_ = ""; - /** - * string displayWatchingCount = 1; - * @return The displayWatchingCount. - */ - @java.lang.Override - public java.lang.String getDisplayWatchingCount() { - java.lang.Object ref = displayWatchingCount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayWatchingCount_ = s; - return s; - } - } - /** - * string displayWatchingCount = 1; - * @return The bytes for displayWatchingCount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayWatchingCountBytes() { - java.lang.Object ref = displayWatchingCount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayWatchingCount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAYLIKECOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayLikeCount_ = ""; - /** - * string displayLikeCount = 2; - * @return The displayLikeCount. - */ - @java.lang.Override - public java.lang.String getDisplayLikeCount() { - java.lang.Object ref = displayLikeCount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayLikeCount_ = s; - return s; - } - } - /** - * string displayLikeCount = 2; - * @return The bytes for displayLikeCount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayLikeCountBytes() { - java.lang.Object ref = displayLikeCount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayLikeCount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PENDINGLIKECOUNT_FIELD_NUMBER = 3; - private long pendingLikeCount_ = 0L; - /** - * uint64 pendingLikeCount = 3; - * @return The pendingLikeCount. - */ - @java.lang.Override - public long getPendingLikeCount() { - return pendingLikeCount_; - } - - public static final int PUSHINTERVAL_FIELD_NUMBER = 4; - private long pushInterval_ = 0L; - /** - * uint64 pushInterval = 4; - * @return The pushInterval. - */ - @java.lang.Override - public long getPushInterval() { - return pushInterval_; - } - - public static final int COMMENTFEEDS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List commentFeeds_; - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - @java.lang.Override - public java.util.List getCommentFeedsList() { - return commentFeeds_; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - @java.lang.Override - public java.util.List - getCommentFeedsOrBuilderList() { - return commentFeeds_; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - @java.lang.Override - public int getCommentFeedsCount() { - return commentFeeds_.size(); - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed getCommentFeeds(int index) { - return commentFeeds_.get(index); - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder getCommentFeedsOrBuilder( - int index) { - return commentFeeds_.get(index); - } - - public static final int COMMENTCURSOR_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object commentCursor_ = ""; - /** - * string commentCursor = 6; - * @return The commentCursor. - */ - @java.lang.Override - public java.lang.String getCommentCursor() { - java.lang.Object ref = commentCursor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - commentCursor_ = s; - return s; - } - } - /** - * string commentCursor = 6; - * @return The bytes for commentCursor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCommentCursorBytes() { - java.lang.Object ref = commentCursor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - commentCursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMBOCOMMENTFEED_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private java.util.List comboCommentFeed_; - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - @java.lang.Override - public java.util.List getComboCommentFeedList() { - return comboCommentFeed_; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - @java.lang.Override - public java.util.List - getComboCommentFeedOrBuilderList() { - return comboCommentFeed_; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - @java.lang.Override - public int getComboCommentFeedCount() { - return comboCommentFeed_.size(); - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed getComboCommentFeed(int index) { - return comboCommentFeed_.get(index); - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder getComboCommentFeedOrBuilder( - int index) { - return comboCommentFeed_.get(index); - } - - public static final int LIKEFEEDS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List likeFeeds_; - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - @java.lang.Override - public java.util.List getLikeFeedsList() { - return likeFeeds_; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - @java.lang.Override - public java.util.List - getLikeFeedsOrBuilderList() { - return likeFeeds_; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - @java.lang.Override - public int getLikeFeedsCount() { - return likeFeeds_.size(); - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed getLikeFeeds(int index) { - return likeFeeds_.get(index); - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder getLikeFeedsOrBuilder( - int index) { - return likeFeeds_.get(index); - } - - public static final int GIFTFEEDS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private java.util.List giftFeeds_; - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - @java.lang.Override - public java.util.List getGiftFeedsList() { - return giftFeeds_; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - @java.lang.Override - public java.util.List - getGiftFeedsOrBuilderList() { - return giftFeeds_; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - @java.lang.Override - public int getGiftFeedsCount() { - return giftFeeds_.size(); - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed getGiftFeeds(int index) { - return giftFeeds_.get(index); - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder getGiftFeedsOrBuilder( - int index) { - return giftFeeds_.get(index); - } - - public static final int GIFTCURSOR_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private volatile java.lang.Object giftCursor_ = ""; - /** - * string giftCursor = 10; - * @return The giftCursor. - */ - @java.lang.Override - public java.lang.String getGiftCursor() { - java.lang.Object ref = giftCursor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - giftCursor_ = s; - return s; - } - } - /** - * string giftCursor = 10; - * @return The bytes for giftCursor. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGiftCursorBytes() { - java.lang.Object ref = giftCursor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - giftCursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SYSTEMNOTICEFEEDS_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private java.util.List systemNoticeFeeds_; - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - @java.lang.Override - public java.util.List getSystemNoticeFeedsList() { - return systemNoticeFeeds_; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - @java.lang.Override - public java.util.List - getSystemNoticeFeedsOrBuilderList() { - return systemNoticeFeeds_; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - @java.lang.Override - public int getSystemNoticeFeedsCount() { - return systemNoticeFeeds_.size(); - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed getSystemNoticeFeeds(int index) { - return systemNoticeFeeds_.get(index); - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder getSystemNoticeFeedsOrBuilder( - int index) { - return systemNoticeFeeds_.get(index); - } - - public static final int SHAREFEEDS_FIELD_NUMBER = 12; - @SuppressWarnings("serial") - private java.util.List shareFeeds_; - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - @java.lang.Override - public java.util.List getShareFeedsList() { - return shareFeeds_; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - @java.lang.Override - public java.util.List - getShareFeedsOrBuilderList() { - return shareFeeds_; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - @java.lang.Override - public int getShareFeedsCount() { - return shareFeeds_.size(); - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed getShareFeeds(int index) { - return shareFeeds_.get(index); - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder getShareFeedsOrBuilder( - int index) { - return shareFeeds_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayWatchingCount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayWatchingCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLikeCount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayLikeCount_); - } - if (pendingLikeCount_ != 0L) { - output.writeUInt64(3, pendingLikeCount_); - } - if (pushInterval_ != 0L) { - output.writeUInt64(4, pushInterval_); - } - for (int i = 0; i < commentFeeds_.size(); i++) { - output.writeMessage(5, commentFeeds_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commentCursor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, commentCursor_); - } - for (int i = 0; i < comboCommentFeed_.size(); i++) { - output.writeMessage(7, comboCommentFeed_.get(i)); - } - for (int i = 0; i < likeFeeds_.size(); i++) { - output.writeMessage(8, likeFeeds_.get(i)); - } - for (int i = 0; i < giftFeeds_.size(); i++) { - output.writeMessage(9, giftFeeds_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(giftCursor_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, giftCursor_); - } - for (int i = 0; i < systemNoticeFeeds_.size(); i++) { - output.writeMessage(11, systemNoticeFeeds_.get(i)); - } - for (int i = 0; i < shareFeeds_.size(); i++) { - output.writeMessage(12, shareFeeds_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayWatchingCount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayWatchingCount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayLikeCount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayLikeCount_); - } - if (pendingLikeCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, pendingLikeCount_); - } - if (pushInterval_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, pushInterval_); - } - for (int i = 0; i < commentFeeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, commentFeeds_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commentCursor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, commentCursor_); - } - for (int i = 0; i < comboCommentFeed_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, comboCommentFeed_.get(i)); - } - for (int i = 0; i < likeFeeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, likeFeeds_.get(i)); - } - for (int i = 0; i < giftFeeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, giftFeeds_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(giftCursor_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, giftCursor_); - } - for (int i = 0; i < systemNoticeFeeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, systemNoticeFeeds_.get(i)); - } - for (int i = 0; i < shareFeeds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, shareFeeds_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush) obj; - - if (!getDisplayWatchingCount() - .equals(other.getDisplayWatchingCount())) return false; - if (!getDisplayLikeCount() - .equals(other.getDisplayLikeCount())) return false; - if (getPendingLikeCount() - != other.getPendingLikeCount()) return false; - if (getPushInterval() - != other.getPushInterval()) return false; - if (!getCommentFeedsList() - .equals(other.getCommentFeedsList())) return false; - if (!getCommentCursor() - .equals(other.getCommentCursor())) return false; - if (!getComboCommentFeedList() - .equals(other.getComboCommentFeedList())) return false; - if (!getLikeFeedsList() - .equals(other.getLikeFeedsList())) return false; - if (!getGiftFeedsList() - .equals(other.getGiftFeedsList())) return false; - if (!getGiftCursor() - .equals(other.getGiftCursor())) return false; - if (!getSystemNoticeFeedsList() - .equals(other.getSystemNoticeFeedsList())) return false; - if (!getShareFeedsList() - .equals(other.getShareFeedsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISPLAYWATCHINGCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getDisplayWatchingCount().hashCode(); - hash = (37 * hash) + DISPLAYLIKECOUNT_FIELD_NUMBER; - hash = (53 * hash) + getDisplayLikeCount().hashCode(); - hash = (37 * hash) + PENDINGLIKECOUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPendingLikeCount()); - hash = (37 * hash) + PUSHINTERVAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPushInterval()); - if (getCommentFeedsCount() > 0) { - hash = (37 * hash) + COMMENTFEEDS_FIELD_NUMBER; - hash = (53 * hash) + getCommentFeedsList().hashCode(); - } - hash = (37 * hash) + COMMENTCURSOR_FIELD_NUMBER; - hash = (53 * hash) + getCommentCursor().hashCode(); - if (getComboCommentFeedCount() > 0) { - hash = (37 * hash) + COMBOCOMMENTFEED_FIELD_NUMBER; - hash = (53 * hash) + getComboCommentFeedList().hashCode(); - } - if (getLikeFeedsCount() > 0) { - hash = (37 * hash) + LIKEFEEDS_FIELD_NUMBER; - hash = (53 * hash) + getLikeFeedsList().hashCode(); - } - if (getGiftFeedsCount() > 0) { - hash = (37 * hash) + GIFTFEEDS_FIELD_NUMBER; - hash = (53 * hash) + getGiftFeedsList().hashCode(); - } - hash = (37 * hash) + GIFTCURSOR_FIELD_NUMBER; - hash = (53 * hash) + getGiftCursor().hashCode(); - if (getSystemNoticeFeedsCount() > 0) { - hash = (37 * hash) + SYSTEMNOTICEFEEDS_FIELD_NUMBER; - hash = (53 * hash) + getSystemNoticeFeedsList().hashCode(); - } - if (getShareFeedsCount() > 0) { - hash = (37 * hash) + SHAREFEEDS_FIELD_NUMBER; - hash = (53 * hash) + getShareFeedsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebFeedPush} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebFeedPush) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPushOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.internal_static_SCWebFeedPush_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.internal_static_SCWebFeedPush_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayWatchingCount_ = ""; - displayLikeCount_ = ""; - pendingLikeCount_ = 0L; - pushInterval_ = 0L; - if (commentFeedsBuilder_ == null) { - commentFeeds_ = java.util.Collections.emptyList(); - } else { - commentFeeds_ = null; - commentFeedsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - commentCursor_ = ""; - if (comboCommentFeedBuilder_ == null) { - comboCommentFeed_ = java.util.Collections.emptyList(); - } else { - comboCommentFeed_ = null; - comboCommentFeedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (likeFeedsBuilder_ == null) { - likeFeeds_ = java.util.Collections.emptyList(); - } else { - likeFeeds_ = null; - likeFeedsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (giftFeedsBuilder_ == null) { - giftFeeds_ = java.util.Collections.emptyList(); - } else { - giftFeeds_ = null; - giftFeedsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - giftCursor_ = ""; - if (systemNoticeFeedsBuilder_ == null) { - systemNoticeFeeds_ = java.util.Collections.emptyList(); - } else { - systemNoticeFeeds_ = null; - systemNoticeFeedsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (shareFeedsBuilder_ == null) { - shareFeeds_ = java.util.Collections.emptyList(); - } else { - shareFeeds_ = null; - shareFeedsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.internal_static_SCWebFeedPush_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush result) { - if (commentFeedsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - commentFeeds_ = java.util.Collections.unmodifiableList(commentFeeds_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.commentFeeds_ = commentFeeds_; - } else { - result.commentFeeds_ = commentFeedsBuilder_.build(); - } - if (comboCommentFeedBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - comboCommentFeed_ = java.util.Collections.unmodifiableList(comboCommentFeed_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.comboCommentFeed_ = comboCommentFeed_; - } else { - result.comboCommentFeed_ = comboCommentFeedBuilder_.build(); - } - if (likeFeedsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - likeFeeds_ = java.util.Collections.unmodifiableList(likeFeeds_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.likeFeeds_ = likeFeeds_; - } else { - result.likeFeeds_ = likeFeedsBuilder_.build(); - } - if (giftFeedsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - giftFeeds_ = java.util.Collections.unmodifiableList(giftFeeds_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.giftFeeds_ = giftFeeds_; - } else { - result.giftFeeds_ = giftFeedsBuilder_.build(); - } - if (systemNoticeFeedsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - systemNoticeFeeds_ = java.util.Collections.unmodifiableList(systemNoticeFeeds_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.systemNoticeFeeds_ = systemNoticeFeeds_; - } else { - result.systemNoticeFeeds_ = systemNoticeFeedsBuilder_.build(); - } - if (shareFeedsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - shareFeeds_ = java.util.Collections.unmodifiableList(shareFeeds_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.shareFeeds_ = shareFeeds_; - } else { - result.shareFeeds_ = shareFeedsBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayWatchingCount_ = displayWatchingCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayLikeCount_ = displayLikeCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pendingLikeCount_ = pendingLikeCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pushInterval_ = pushInterval_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.commentCursor_ = commentCursor_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.giftCursor_ = giftCursor_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush.getDefaultInstance()) return this; - if (!other.getDisplayWatchingCount().isEmpty()) { - displayWatchingCount_ = other.displayWatchingCount_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayLikeCount().isEmpty()) { - displayLikeCount_ = other.displayLikeCount_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPendingLikeCount() != 0L) { - setPendingLikeCount(other.getPendingLikeCount()); - } - if (other.getPushInterval() != 0L) { - setPushInterval(other.getPushInterval()); - } - if (commentFeedsBuilder_ == null) { - if (!other.commentFeeds_.isEmpty()) { - if (commentFeeds_.isEmpty()) { - commentFeeds_ = other.commentFeeds_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureCommentFeedsIsMutable(); - commentFeeds_.addAll(other.commentFeeds_); - } - onChanged(); - } - } else { - if (!other.commentFeeds_.isEmpty()) { - if (commentFeedsBuilder_.isEmpty()) { - commentFeedsBuilder_.dispose(); - commentFeedsBuilder_ = null; - commentFeeds_ = other.commentFeeds_; - bitField0_ = (bitField0_ & ~0x00000010); - commentFeedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCommentFeedsFieldBuilder() : null; - } else { - commentFeedsBuilder_.addAllMessages(other.commentFeeds_); - } - } - } - if (!other.getCommentCursor().isEmpty()) { - commentCursor_ = other.commentCursor_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (comboCommentFeedBuilder_ == null) { - if (!other.comboCommentFeed_.isEmpty()) { - if (comboCommentFeed_.isEmpty()) { - comboCommentFeed_ = other.comboCommentFeed_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.addAll(other.comboCommentFeed_); - } - onChanged(); - } - } else { - if (!other.comboCommentFeed_.isEmpty()) { - if (comboCommentFeedBuilder_.isEmpty()) { - comboCommentFeedBuilder_.dispose(); - comboCommentFeedBuilder_ = null; - comboCommentFeed_ = other.comboCommentFeed_; - bitField0_ = (bitField0_ & ~0x00000040); - comboCommentFeedBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getComboCommentFeedFieldBuilder() : null; - } else { - comboCommentFeedBuilder_.addAllMessages(other.comboCommentFeed_); - } - } - } - if (likeFeedsBuilder_ == null) { - if (!other.likeFeeds_.isEmpty()) { - if (likeFeeds_.isEmpty()) { - likeFeeds_ = other.likeFeeds_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureLikeFeedsIsMutable(); - likeFeeds_.addAll(other.likeFeeds_); - } - onChanged(); - } - } else { - if (!other.likeFeeds_.isEmpty()) { - if (likeFeedsBuilder_.isEmpty()) { - likeFeedsBuilder_.dispose(); - likeFeedsBuilder_ = null; - likeFeeds_ = other.likeFeeds_; - bitField0_ = (bitField0_ & ~0x00000080); - likeFeedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLikeFeedsFieldBuilder() : null; - } else { - likeFeedsBuilder_.addAllMessages(other.likeFeeds_); - } - } - } - if (giftFeedsBuilder_ == null) { - if (!other.giftFeeds_.isEmpty()) { - if (giftFeeds_.isEmpty()) { - giftFeeds_ = other.giftFeeds_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureGiftFeedsIsMutable(); - giftFeeds_.addAll(other.giftFeeds_); - } - onChanged(); - } - } else { - if (!other.giftFeeds_.isEmpty()) { - if (giftFeedsBuilder_.isEmpty()) { - giftFeedsBuilder_.dispose(); - giftFeedsBuilder_ = null; - giftFeeds_ = other.giftFeeds_; - bitField0_ = (bitField0_ & ~0x00000100); - giftFeedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGiftFeedsFieldBuilder() : null; - } else { - giftFeedsBuilder_.addAllMessages(other.giftFeeds_); - } - } - } - if (!other.getGiftCursor().isEmpty()) { - giftCursor_ = other.giftCursor_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (systemNoticeFeedsBuilder_ == null) { - if (!other.systemNoticeFeeds_.isEmpty()) { - if (systemNoticeFeeds_.isEmpty()) { - systemNoticeFeeds_ = other.systemNoticeFeeds_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.addAll(other.systemNoticeFeeds_); - } - onChanged(); - } - } else { - if (!other.systemNoticeFeeds_.isEmpty()) { - if (systemNoticeFeedsBuilder_.isEmpty()) { - systemNoticeFeedsBuilder_.dispose(); - systemNoticeFeedsBuilder_ = null; - systemNoticeFeeds_ = other.systemNoticeFeeds_; - bitField0_ = (bitField0_ & ~0x00000400); - systemNoticeFeedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSystemNoticeFeedsFieldBuilder() : null; - } else { - systemNoticeFeedsBuilder_.addAllMessages(other.systemNoticeFeeds_); - } - } - } - if (shareFeedsBuilder_ == null) { - if (!other.shareFeeds_.isEmpty()) { - if (shareFeeds_.isEmpty()) { - shareFeeds_ = other.shareFeeds_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureShareFeedsIsMutable(); - shareFeeds_.addAll(other.shareFeeds_); - } - onChanged(); - } - } else { - if (!other.shareFeeds_.isEmpty()) { - if (shareFeedsBuilder_.isEmpty()) { - shareFeedsBuilder_.dispose(); - shareFeedsBuilder_ = null; - shareFeeds_ = other.shareFeeds_; - bitField0_ = (bitField0_ & ~0x00000800); - shareFeedsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getShareFeedsFieldBuilder() : null; - } else { - shareFeedsBuilder_.addAllMessages(other.shareFeeds_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - displayWatchingCount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayLikeCount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pendingLikeCount_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - pushInterval_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.parser(), - extensionRegistry); - if (commentFeedsBuilder_ == null) { - ensureCommentFeedsIsMutable(); - commentFeeds_.add(m); - } else { - commentFeedsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: { - commentCursor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.parser(), - extensionRegistry); - if (comboCommentFeedBuilder_ == null) { - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.add(m); - } else { - comboCommentFeedBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.parser(), - extensionRegistry); - if (likeFeedsBuilder_ == null) { - ensureLikeFeedsIsMutable(); - likeFeeds_.add(m); - } else { - likeFeedsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.parser(), - extensionRegistry); - if (giftFeedsBuilder_ == null) { - ensureGiftFeedsIsMutable(); - giftFeeds_.add(m); - } else { - giftFeedsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - giftCursor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.parser(), - extensionRegistry); - if (systemNoticeFeedsBuilder_ == null) { - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.add(m); - } else { - systemNoticeFeedsBuilder_.addMessage(m); - } - break; - } // case 90 - case 98: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.parser(), - extensionRegistry); - if (shareFeedsBuilder_ == null) { - ensureShareFeedsIsMutable(); - shareFeeds_.add(m); - } else { - shareFeedsBuilder_.addMessage(m); - } - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object displayWatchingCount_ = ""; - /** - * string displayWatchingCount = 1; - * @return The displayWatchingCount. - */ - public java.lang.String getDisplayWatchingCount() { - java.lang.Object ref = displayWatchingCount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayWatchingCount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string displayWatchingCount = 1; - * @return The bytes for displayWatchingCount. - */ - public com.google.protobuf.ByteString - getDisplayWatchingCountBytes() { - java.lang.Object ref = displayWatchingCount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayWatchingCount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string displayWatchingCount = 1; - * @param value The displayWatchingCount to set. - * @return This builder for chaining. - */ - public Builder setDisplayWatchingCount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayWatchingCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string displayWatchingCount = 1; - * @return This builder for chaining. - */ - public Builder clearDisplayWatchingCount() { - displayWatchingCount_ = getDefaultInstance().getDisplayWatchingCount(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string displayWatchingCount = 1; - * @param value The bytes for displayWatchingCount to set. - * @return This builder for chaining. - */ - public Builder setDisplayWatchingCountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayWatchingCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayLikeCount_ = ""; - /** - * string displayLikeCount = 2; - * @return The displayLikeCount. - */ - public java.lang.String getDisplayLikeCount() { - java.lang.Object ref = displayLikeCount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayLikeCount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string displayLikeCount = 2; - * @return The bytes for displayLikeCount. - */ - public com.google.protobuf.ByteString - getDisplayLikeCountBytes() { - java.lang.Object ref = displayLikeCount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayLikeCount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string displayLikeCount = 2; - * @param value The displayLikeCount to set. - * @return This builder for chaining. - */ - public Builder setDisplayLikeCount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayLikeCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string displayLikeCount = 2; - * @return This builder for chaining. - */ - public Builder clearDisplayLikeCount() { - displayLikeCount_ = getDefaultInstance().getDisplayLikeCount(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string displayLikeCount = 2; - * @param value The bytes for displayLikeCount to set. - * @return This builder for chaining. - */ - public Builder setDisplayLikeCountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayLikeCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long pendingLikeCount_ ; - /** - * uint64 pendingLikeCount = 3; - * @return The pendingLikeCount. - */ - @java.lang.Override - public long getPendingLikeCount() { - return pendingLikeCount_; - } - /** - * uint64 pendingLikeCount = 3; - * @param value The pendingLikeCount to set. - * @return This builder for chaining. - */ - public Builder setPendingLikeCount(long value) { - - pendingLikeCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 pendingLikeCount = 3; - * @return This builder for chaining. - */ - public Builder clearPendingLikeCount() { - bitField0_ = (bitField0_ & ~0x00000004); - pendingLikeCount_ = 0L; - onChanged(); - return this; - } - - private long pushInterval_ ; - /** - * uint64 pushInterval = 4; - * @return The pushInterval. - */ - @java.lang.Override - public long getPushInterval() { - return pushInterval_; - } - /** - * uint64 pushInterval = 4; - * @param value The pushInterval to set. - * @return This builder for chaining. - */ - public Builder setPushInterval(long value) { - - pushInterval_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 pushInterval = 4; - * @return This builder for chaining. - */ - public Builder clearPushInterval() { - bitField0_ = (bitField0_ & ~0x00000008); - pushInterval_ = 0L; - onChanged(); - return this; - } - - private java.util.List commentFeeds_ = - java.util.Collections.emptyList(); - private void ensureCommentFeedsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - commentFeeds_ = new java.util.ArrayList(commentFeeds_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder> commentFeedsBuilder_; - - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public java.util.List getCommentFeedsList() { - if (commentFeedsBuilder_ == null) { - return java.util.Collections.unmodifiableList(commentFeeds_); - } else { - return commentFeedsBuilder_.getMessageList(); - } - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public int getCommentFeedsCount() { - if (commentFeedsBuilder_ == null) { - return commentFeeds_.size(); - } else { - return commentFeedsBuilder_.getCount(); - } - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed getCommentFeeds(int index) { - if (commentFeedsBuilder_ == null) { - return commentFeeds_.get(index); - } else { - return commentFeedsBuilder_.getMessage(index); - } - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder setCommentFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed value) { - if (commentFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentFeedsIsMutable(); - commentFeeds_.set(index, value); - onChanged(); - } else { - commentFeedsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder setCommentFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder builderForValue) { - if (commentFeedsBuilder_ == null) { - ensureCommentFeedsIsMutable(); - commentFeeds_.set(index, builderForValue.build()); - onChanged(); - } else { - commentFeedsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder addCommentFeeds(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed value) { - if (commentFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentFeedsIsMutable(); - commentFeeds_.add(value); - onChanged(); - } else { - commentFeedsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder addCommentFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed value) { - if (commentFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentFeedsIsMutable(); - commentFeeds_.add(index, value); - onChanged(); - } else { - commentFeedsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder addCommentFeeds( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder builderForValue) { - if (commentFeedsBuilder_ == null) { - ensureCommentFeedsIsMutable(); - commentFeeds_.add(builderForValue.build()); - onChanged(); - } else { - commentFeedsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder addCommentFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder builderForValue) { - if (commentFeedsBuilder_ == null) { - ensureCommentFeedsIsMutable(); - commentFeeds_.add(index, builderForValue.build()); - onChanged(); - } else { - commentFeedsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder addAllCommentFeeds( - java.lang.Iterable values) { - if (commentFeedsBuilder_ == null) { - ensureCommentFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, commentFeeds_); - onChanged(); - } else { - commentFeedsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder clearCommentFeeds() { - if (commentFeedsBuilder_ == null) { - commentFeeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - commentFeedsBuilder_.clear(); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public Builder removeCommentFeeds(int index) { - if (commentFeedsBuilder_ == null) { - ensureCommentFeedsIsMutable(); - commentFeeds_.remove(index); - onChanged(); - } else { - commentFeedsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder getCommentFeedsBuilder( - int index) { - return getCommentFeedsFieldBuilder().getBuilder(index); - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder getCommentFeedsOrBuilder( - int index) { - if (commentFeedsBuilder_ == null) { - return commentFeeds_.get(index); } else { - return commentFeedsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public java.util.List - getCommentFeedsOrBuilderList() { - if (commentFeedsBuilder_ != null) { - return commentFeedsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(commentFeeds_); - } - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder addCommentFeedsBuilder() { - return getCommentFeedsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.getDefaultInstance()); - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder addCommentFeedsBuilder( - int index) { - return getCommentFeedsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.getDefaultInstance()); - } - /** - * repeated .WebCommentFeed commentFeeds = 5; - */ - public java.util.List - getCommentFeedsBuilderList() { - return getCommentFeedsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder> - getCommentFeedsFieldBuilder() { - if (commentFeedsBuilder_ == null) { - commentFeedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder>( - commentFeeds_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - commentFeeds_ = null; - } - return commentFeedsBuilder_; - } - - private java.lang.Object commentCursor_ = ""; - /** - * string commentCursor = 6; - * @return The commentCursor. - */ - public java.lang.String getCommentCursor() { - java.lang.Object ref = commentCursor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - commentCursor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string commentCursor = 6; - * @return The bytes for commentCursor. - */ - public com.google.protobuf.ByteString - getCommentCursorBytes() { - java.lang.Object ref = commentCursor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - commentCursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string commentCursor = 6; - * @param value The commentCursor to set. - * @return This builder for chaining. - */ - public Builder setCommentCursor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - commentCursor_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string commentCursor = 6; - * @return This builder for chaining. - */ - public Builder clearCommentCursor() { - commentCursor_ = getDefaultInstance().getCommentCursor(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string commentCursor = 6; - * @param value The bytes for commentCursor to set. - * @return This builder for chaining. - */ - public Builder setCommentCursorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - commentCursor_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.util.List comboCommentFeed_ = - java.util.Collections.emptyList(); - private void ensureComboCommentFeedIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - comboCommentFeed_ = new java.util.ArrayList(comboCommentFeed_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder> comboCommentFeedBuilder_; - - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public java.util.List getComboCommentFeedList() { - if (comboCommentFeedBuilder_ == null) { - return java.util.Collections.unmodifiableList(comboCommentFeed_); - } else { - return comboCommentFeedBuilder_.getMessageList(); - } - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public int getComboCommentFeedCount() { - if (comboCommentFeedBuilder_ == null) { - return comboCommentFeed_.size(); - } else { - return comboCommentFeedBuilder_.getCount(); - } - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed getComboCommentFeed(int index) { - if (comboCommentFeedBuilder_ == null) { - return comboCommentFeed_.get(index); - } else { - return comboCommentFeedBuilder_.getMessage(index); - } - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder setComboCommentFeed( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed value) { - if (comboCommentFeedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.set(index, value); - onChanged(); - } else { - comboCommentFeedBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder setComboCommentFeed( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder builderForValue) { - if (comboCommentFeedBuilder_ == null) { - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.set(index, builderForValue.build()); - onChanged(); - } else { - comboCommentFeedBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder addComboCommentFeed(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed value) { - if (comboCommentFeedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.add(value); - onChanged(); - } else { - comboCommentFeedBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder addComboCommentFeed( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed value) { - if (comboCommentFeedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.add(index, value); - onChanged(); - } else { - comboCommentFeedBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder addComboCommentFeed( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder builderForValue) { - if (comboCommentFeedBuilder_ == null) { - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.add(builderForValue.build()); - onChanged(); - } else { - comboCommentFeedBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder addComboCommentFeed( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder builderForValue) { - if (comboCommentFeedBuilder_ == null) { - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.add(index, builderForValue.build()); - onChanged(); - } else { - comboCommentFeedBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder addAllComboCommentFeed( - java.lang.Iterable values) { - if (comboCommentFeedBuilder_ == null) { - ensureComboCommentFeedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, comboCommentFeed_); - onChanged(); - } else { - comboCommentFeedBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder clearComboCommentFeed() { - if (comboCommentFeedBuilder_ == null) { - comboCommentFeed_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - comboCommentFeedBuilder_.clear(); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public Builder removeComboCommentFeed(int index) { - if (comboCommentFeedBuilder_ == null) { - ensureComboCommentFeedIsMutable(); - comboCommentFeed_.remove(index); - onChanged(); - } else { - comboCommentFeedBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder getComboCommentFeedBuilder( - int index) { - return getComboCommentFeedFieldBuilder().getBuilder(index); - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder getComboCommentFeedOrBuilder( - int index) { - if (comboCommentFeedBuilder_ == null) { - return comboCommentFeed_.get(index); } else { - return comboCommentFeedBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public java.util.List - getComboCommentFeedOrBuilderList() { - if (comboCommentFeedBuilder_ != null) { - return comboCommentFeedBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(comboCommentFeed_); - } - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder addComboCommentFeedBuilder() { - return getComboCommentFeedFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.getDefaultInstance()); - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder addComboCommentFeedBuilder( - int index) { - return getComboCommentFeedFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.getDefaultInstance()); - } - /** - * repeated .WebComboCommentFeed comboCommentFeed = 7; - */ - public java.util.List - getComboCommentFeedBuilderList() { - return getComboCommentFeedFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder> - getComboCommentFeedFieldBuilder() { - if (comboCommentFeedBuilder_ == null) { - comboCommentFeedBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder>( - comboCommentFeed_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - comboCommentFeed_ = null; - } - return comboCommentFeedBuilder_; - } - - private java.util.List likeFeeds_ = - java.util.Collections.emptyList(); - private void ensureLikeFeedsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - likeFeeds_ = new java.util.ArrayList(likeFeeds_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder> likeFeedsBuilder_; - - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public java.util.List getLikeFeedsList() { - if (likeFeedsBuilder_ == null) { - return java.util.Collections.unmodifiableList(likeFeeds_); - } else { - return likeFeedsBuilder_.getMessageList(); - } - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public int getLikeFeedsCount() { - if (likeFeedsBuilder_ == null) { - return likeFeeds_.size(); - } else { - return likeFeedsBuilder_.getCount(); - } - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed getLikeFeeds(int index) { - if (likeFeedsBuilder_ == null) { - return likeFeeds_.get(index); - } else { - return likeFeedsBuilder_.getMessage(index); - } - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder setLikeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed value) { - if (likeFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLikeFeedsIsMutable(); - likeFeeds_.set(index, value); - onChanged(); - } else { - likeFeedsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder setLikeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder builderForValue) { - if (likeFeedsBuilder_ == null) { - ensureLikeFeedsIsMutable(); - likeFeeds_.set(index, builderForValue.build()); - onChanged(); - } else { - likeFeedsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder addLikeFeeds(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed value) { - if (likeFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLikeFeedsIsMutable(); - likeFeeds_.add(value); - onChanged(); - } else { - likeFeedsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder addLikeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed value) { - if (likeFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLikeFeedsIsMutable(); - likeFeeds_.add(index, value); - onChanged(); - } else { - likeFeedsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder addLikeFeeds( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder builderForValue) { - if (likeFeedsBuilder_ == null) { - ensureLikeFeedsIsMutable(); - likeFeeds_.add(builderForValue.build()); - onChanged(); - } else { - likeFeedsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder addLikeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder builderForValue) { - if (likeFeedsBuilder_ == null) { - ensureLikeFeedsIsMutable(); - likeFeeds_.add(index, builderForValue.build()); - onChanged(); - } else { - likeFeedsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder addAllLikeFeeds( - java.lang.Iterable values) { - if (likeFeedsBuilder_ == null) { - ensureLikeFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, likeFeeds_); - onChanged(); - } else { - likeFeedsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder clearLikeFeeds() { - if (likeFeedsBuilder_ == null) { - likeFeeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - likeFeedsBuilder_.clear(); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public Builder removeLikeFeeds(int index) { - if (likeFeedsBuilder_ == null) { - ensureLikeFeedsIsMutable(); - likeFeeds_.remove(index); - onChanged(); - } else { - likeFeedsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder getLikeFeedsBuilder( - int index) { - return getLikeFeedsFieldBuilder().getBuilder(index); - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder getLikeFeedsOrBuilder( - int index) { - if (likeFeedsBuilder_ == null) { - return likeFeeds_.get(index); } else { - return likeFeedsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public java.util.List - getLikeFeedsOrBuilderList() { - if (likeFeedsBuilder_ != null) { - return likeFeedsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(likeFeeds_); - } - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder addLikeFeedsBuilder() { - return getLikeFeedsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.getDefaultInstance()); - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder addLikeFeedsBuilder( - int index) { - return getLikeFeedsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.getDefaultInstance()); - } - /** - * repeated .WebLikeFeed likeFeeds = 8; - */ - public java.util.List - getLikeFeedsBuilderList() { - return getLikeFeedsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder> - getLikeFeedsFieldBuilder() { - if (likeFeedsBuilder_ == null) { - likeFeedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder>( - likeFeeds_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - likeFeeds_ = null; - } - return likeFeedsBuilder_; - } - - private java.util.List giftFeeds_ = - java.util.Collections.emptyList(); - private void ensureGiftFeedsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - giftFeeds_ = new java.util.ArrayList(giftFeeds_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder> giftFeedsBuilder_; - - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public java.util.List getGiftFeedsList() { - if (giftFeedsBuilder_ == null) { - return java.util.Collections.unmodifiableList(giftFeeds_); - } else { - return giftFeedsBuilder_.getMessageList(); - } - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public int getGiftFeedsCount() { - if (giftFeedsBuilder_ == null) { - return giftFeeds_.size(); - } else { - return giftFeedsBuilder_.getCount(); - } - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed getGiftFeeds(int index) { - if (giftFeedsBuilder_ == null) { - return giftFeeds_.get(index); - } else { - return giftFeedsBuilder_.getMessage(index); - } - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder setGiftFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed value) { - if (giftFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGiftFeedsIsMutable(); - giftFeeds_.set(index, value); - onChanged(); - } else { - giftFeedsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder setGiftFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder builderForValue) { - if (giftFeedsBuilder_ == null) { - ensureGiftFeedsIsMutable(); - giftFeeds_.set(index, builderForValue.build()); - onChanged(); - } else { - giftFeedsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder addGiftFeeds(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed value) { - if (giftFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGiftFeedsIsMutable(); - giftFeeds_.add(value); - onChanged(); - } else { - giftFeedsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder addGiftFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed value) { - if (giftFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGiftFeedsIsMutable(); - giftFeeds_.add(index, value); - onChanged(); - } else { - giftFeedsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder addGiftFeeds( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder builderForValue) { - if (giftFeedsBuilder_ == null) { - ensureGiftFeedsIsMutable(); - giftFeeds_.add(builderForValue.build()); - onChanged(); - } else { - giftFeedsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder addGiftFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder builderForValue) { - if (giftFeedsBuilder_ == null) { - ensureGiftFeedsIsMutable(); - giftFeeds_.add(index, builderForValue.build()); - onChanged(); - } else { - giftFeedsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder addAllGiftFeeds( - java.lang.Iterable values) { - if (giftFeedsBuilder_ == null) { - ensureGiftFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, giftFeeds_); - onChanged(); - } else { - giftFeedsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder clearGiftFeeds() { - if (giftFeedsBuilder_ == null) { - giftFeeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - giftFeedsBuilder_.clear(); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public Builder removeGiftFeeds(int index) { - if (giftFeedsBuilder_ == null) { - ensureGiftFeedsIsMutable(); - giftFeeds_.remove(index); - onChanged(); - } else { - giftFeedsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder getGiftFeedsBuilder( - int index) { - return getGiftFeedsFieldBuilder().getBuilder(index); - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder getGiftFeedsOrBuilder( - int index) { - if (giftFeedsBuilder_ == null) { - return giftFeeds_.get(index); } else { - return giftFeedsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public java.util.List - getGiftFeedsOrBuilderList() { - if (giftFeedsBuilder_ != null) { - return giftFeedsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(giftFeeds_); - } - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder addGiftFeedsBuilder() { - return getGiftFeedsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.getDefaultInstance()); - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder addGiftFeedsBuilder( - int index) { - return getGiftFeedsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.getDefaultInstance()); - } - /** - * repeated .WebGiftFeed giftFeeds = 9; - */ - public java.util.List - getGiftFeedsBuilderList() { - return getGiftFeedsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder> - getGiftFeedsFieldBuilder() { - if (giftFeedsBuilder_ == null) { - giftFeedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder>( - giftFeeds_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - giftFeeds_ = null; - } - return giftFeedsBuilder_; - } - - private java.lang.Object giftCursor_ = ""; - /** - * string giftCursor = 10; - * @return The giftCursor. - */ - public java.lang.String getGiftCursor() { - java.lang.Object ref = giftCursor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - giftCursor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string giftCursor = 10; - * @return The bytes for giftCursor. - */ - public com.google.protobuf.ByteString - getGiftCursorBytes() { - java.lang.Object ref = giftCursor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - giftCursor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string giftCursor = 10; - * @param value The giftCursor to set. - * @return This builder for chaining. - */ - public Builder setGiftCursor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - giftCursor_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * string giftCursor = 10; - * @return This builder for chaining. - */ - public Builder clearGiftCursor() { - giftCursor_ = getDefaultInstance().getGiftCursor(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - * string giftCursor = 10; - * @param value The bytes for giftCursor to set. - * @return This builder for chaining. - */ - public Builder setGiftCursorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - giftCursor_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - private java.util.List systemNoticeFeeds_ = - java.util.Collections.emptyList(); - private void ensureSystemNoticeFeedsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - systemNoticeFeeds_ = new java.util.ArrayList(systemNoticeFeeds_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder> systemNoticeFeedsBuilder_; - - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public java.util.List getSystemNoticeFeedsList() { - if (systemNoticeFeedsBuilder_ == null) { - return java.util.Collections.unmodifiableList(systemNoticeFeeds_); - } else { - return systemNoticeFeedsBuilder_.getMessageList(); - } - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public int getSystemNoticeFeedsCount() { - if (systemNoticeFeedsBuilder_ == null) { - return systemNoticeFeeds_.size(); - } else { - return systemNoticeFeedsBuilder_.getCount(); - } - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed getSystemNoticeFeeds(int index) { - if (systemNoticeFeedsBuilder_ == null) { - return systemNoticeFeeds_.get(index); - } else { - return systemNoticeFeedsBuilder_.getMessage(index); - } - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder setSystemNoticeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed value) { - if (systemNoticeFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.set(index, value); - onChanged(); - } else { - systemNoticeFeedsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder setSystemNoticeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder builderForValue) { - if (systemNoticeFeedsBuilder_ == null) { - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.set(index, builderForValue.build()); - onChanged(); - } else { - systemNoticeFeedsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder addSystemNoticeFeeds(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed value) { - if (systemNoticeFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.add(value); - onChanged(); - } else { - systemNoticeFeedsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder addSystemNoticeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed value) { - if (systemNoticeFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.add(index, value); - onChanged(); - } else { - systemNoticeFeedsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder addSystemNoticeFeeds( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder builderForValue) { - if (systemNoticeFeedsBuilder_ == null) { - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.add(builderForValue.build()); - onChanged(); - } else { - systemNoticeFeedsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder addSystemNoticeFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder builderForValue) { - if (systemNoticeFeedsBuilder_ == null) { - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.add(index, builderForValue.build()); - onChanged(); - } else { - systemNoticeFeedsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder addAllSystemNoticeFeeds( - java.lang.Iterable values) { - if (systemNoticeFeedsBuilder_ == null) { - ensureSystemNoticeFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, systemNoticeFeeds_); - onChanged(); - } else { - systemNoticeFeedsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder clearSystemNoticeFeeds() { - if (systemNoticeFeedsBuilder_ == null) { - systemNoticeFeeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - systemNoticeFeedsBuilder_.clear(); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public Builder removeSystemNoticeFeeds(int index) { - if (systemNoticeFeedsBuilder_ == null) { - ensureSystemNoticeFeedsIsMutable(); - systemNoticeFeeds_.remove(index); - onChanged(); - } else { - systemNoticeFeedsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder getSystemNoticeFeedsBuilder( - int index) { - return getSystemNoticeFeedsFieldBuilder().getBuilder(index); - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder getSystemNoticeFeedsOrBuilder( - int index) { - if (systemNoticeFeedsBuilder_ == null) { - return systemNoticeFeeds_.get(index); } else { - return systemNoticeFeedsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public java.util.List - getSystemNoticeFeedsOrBuilderList() { - if (systemNoticeFeedsBuilder_ != null) { - return systemNoticeFeedsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(systemNoticeFeeds_); - } - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder addSystemNoticeFeedsBuilder() { - return getSystemNoticeFeedsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.getDefaultInstance()); - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder addSystemNoticeFeedsBuilder( - int index) { - return getSystemNoticeFeedsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.getDefaultInstance()); - } - /** - * repeated .WebSystemNoticeFeed systemNoticeFeeds = 11; - */ - public java.util.List - getSystemNoticeFeedsBuilderList() { - return getSystemNoticeFeedsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder> - getSystemNoticeFeedsFieldBuilder() { - if (systemNoticeFeedsBuilder_ == null) { - systemNoticeFeedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder>( - systemNoticeFeeds_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - systemNoticeFeeds_ = null; - } - return systemNoticeFeedsBuilder_; - } - - private java.util.List shareFeeds_ = - java.util.Collections.emptyList(); - private void ensureShareFeedsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - shareFeeds_ = new java.util.ArrayList(shareFeeds_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder> shareFeedsBuilder_; - - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public java.util.List getShareFeedsList() { - if (shareFeedsBuilder_ == null) { - return java.util.Collections.unmodifiableList(shareFeeds_); - } else { - return shareFeedsBuilder_.getMessageList(); - } - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public int getShareFeedsCount() { - if (shareFeedsBuilder_ == null) { - return shareFeeds_.size(); - } else { - return shareFeedsBuilder_.getCount(); - } - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed getShareFeeds(int index) { - if (shareFeedsBuilder_ == null) { - return shareFeeds_.get(index); - } else { - return shareFeedsBuilder_.getMessage(index); - } - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder setShareFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed value) { - if (shareFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShareFeedsIsMutable(); - shareFeeds_.set(index, value); - onChanged(); - } else { - shareFeedsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder setShareFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder builderForValue) { - if (shareFeedsBuilder_ == null) { - ensureShareFeedsIsMutable(); - shareFeeds_.set(index, builderForValue.build()); - onChanged(); - } else { - shareFeedsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder addShareFeeds(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed value) { - if (shareFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShareFeedsIsMutable(); - shareFeeds_.add(value); - onChanged(); - } else { - shareFeedsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder addShareFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed value) { - if (shareFeedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureShareFeedsIsMutable(); - shareFeeds_.add(index, value); - onChanged(); - } else { - shareFeedsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder addShareFeeds( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder builderForValue) { - if (shareFeedsBuilder_ == null) { - ensureShareFeedsIsMutable(); - shareFeeds_.add(builderForValue.build()); - onChanged(); - } else { - shareFeedsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder addShareFeeds( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder builderForValue) { - if (shareFeedsBuilder_ == null) { - ensureShareFeedsIsMutable(); - shareFeeds_.add(index, builderForValue.build()); - onChanged(); - } else { - shareFeedsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder addAllShareFeeds( - java.lang.Iterable values) { - if (shareFeedsBuilder_ == null) { - ensureShareFeedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, shareFeeds_); - onChanged(); - } else { - shareFeedsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder clearShareFeeds() { - if (shareFeedsBuilder_ == null) { - shareFeeds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - shareFeedsBuilder_.clear(); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public Builder removeShareFeeds(int index) { - if (shareFeedsBuilder_ == null) { - ensureShareFeedsIsMutable(); - shareFeeds_.remove(index); - onChanged(); - } else { - shareFeedsBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder getShareFeedsBuilder( - int index) { - return getShareFeedsFieldBuilder().getBuilder(index); - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder getShareFeedsOrBuilder( - int index) { - if (shareFeedsBuilder_ == null) { - return shareFeeds_.get(index); } else { - return shareFeedsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public java.util.List - getShareFeedsOrBuilderList() { - if (shareFeedsBuilder_ != null) { - return shareFeedsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(shareFeeds_); - } - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder addShareFeedsBuilder() { - return getShareFeedsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.getDefaultInstance()); - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder addShareFeedsBuilder( - int index) { - return getShareFeedsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.getDefaultInstance()); - } - /** - * repeated .WebShareFeed shareFeeds = 12; - */ - public java.util.List - getShareFeedsBuilderList() { - return getShareFeedsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder> - getShareFeedsFieldBuilder() { - if (shareFeedsBuilder_ == null) { - shareFeedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder>( - shareFeeds_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - shareFeeds_ = null; - } - return shareFeedsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebFeedPush) - } - - // @@protoc_insertion_point(class_scope:SCWebFeedPush) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebFeedPush parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebFeedPushOuterClass.SCWebFeedPush getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebFeedPush_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebFeedPush_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023SCWebFeedPush.proto\032\024WebCommentFeed.pr" + - "oto\032\031WebComboCommentFeed.proto\032\021WebLikeF" + - "eed.proto\032\021WebGiftFeed.proto\032\031WebSystemN" + - "oticeFeed.proto\032\022WebShareFeed.proto\"\217\003\n\r" + - "SCWebFeedPush\022\034\n\024displayWatchingCount\030\001 " + - "\001(\t\022\030\n\020displayLikeCount\030\002 \001(\t\022\030\n\020pending" + - "LikeCount\030\003 \001(\004\022\024\n\014pushInterval\030\004 \001(\004\022%\n" + - "\014commentFeeds\030\005 \003(\0132\017.WebCommentFeed\022\025\n\r" + - "commentCursor\030\006 \001(\t\022.\n\020comboCommentFeed\030" + - "\007 \003(\0132\024.WebComboCommentFeed\022\037\n\tlikeFeeds" + - "\030\010 \003(\0132\014.WebLikeFeed\022\037\n\tgiftFeeds\030\t \003(\0132" + - "\014.WebGiftFeed\022\022\n\ngiftCursor\030\n \001(\t\022/\n\021sys" + - "temNoticeFeeds\030\013 \003(\0132\024.WebSystemNoticeFe" + - "ed\022!\n\nshareFeeds\030\014 \003(\0132\r.WebShareFeedB6\n" + - "4tech.ordinaryroad.live.chat.client.kuai" + - "shou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.getDescriptor(), - }); - internal_static_SCWebFeedPush_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebFeedPush_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebFeedPush_descriptor, - new java.lang.String[] { "DisplayWatchingCount", "DisplayLikeCount", "PendingLikeCount", "PushInterval", "CommentFeeds", "CommentCursor", "ComboCommentFeed", "LikeFeeds", "GiftFeeds", "GiftCursor", "SystemNoticeFeeds", "ShareFeeds", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebGuessClosedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebGuessClosedOuterClass.java deleted file mode 100644 index 7ee548d8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebGuessClosedOuterClass.java +++ /dev/null @@ -1,772 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebGuessClosed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebGuessClosedOuterClass { - private SCWebGuessClosedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebGuessClosedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebGuessClosed) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - - /** - * string guessId = 2; - * @return The guessId. - */ - java.lang.String getGuessId(); - /** - * string guessId = 2; - * @return The bytes for guessId. - */ - com.google.protobuf.ByteString - getGuessIdBytes(); - - /** - * uint64 displayMaxDelayMillis = 3; - * @return The displayMaxDelayMillis. - */ - long getDisplayMaxDelayMillis(); - } - /** - * Protobuf type {@code SCWebGuessClosed} - */ - public static final class SCWebGuessClosed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebGuessClosed) - SCWebGuessClosedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebGuessClosed.newBuilder() to construct. - private SCWebGuessClosed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebGuessClosed() { - guessId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebGuessClosed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.internal_static_SCWebGuessClosed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.internal_static_SCWebGuessClosed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int GUESSID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object guessId_ = ""; - /** - * string guessId = 2; - * @return The guessId. - */ - @java.lang.Override - public java.lang.String getGuessId() { - java.lang.Object ref = guessId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - guessId_ = s; - return s; - } - } - /** - * string guessId = 2; - * @return The bytes for guessId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGuessIdBytes() { - java.lang.Object ref = guessId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - guessId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAYMAXDELAYMILLIS_FIELD_NUMBER = 3; - private long displayMaxDelayMillis_ = 0L; - /** - * uint64 displayMaxDelayMillis = 3; - * @return The displayMaxDelayMillis. - */ - @java.lang.Override - public long getDisplayMaxDelayMillis() { - return displayMaxDelayMillis_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guessId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, guessId_); - } - if (displayMaxDelayMillis_ != 0L) { - output.writeUInt64(3, displayMaxDelayMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guessId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, guessId_); - } - if (displayMaxDelayMillis_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, displayMaxDelayMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed) obj; - - if (getTime() - != other.getTime()) return false; - if (!getGuessId() - .equals(other.getGuessId())) return false; - if (getDisplayMaxDelayMillis() - != other.getDisplayMaxDelayMillis()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + GUESSID_FIELD_NUMBER; - hash = (53 * hash) + getGuessId().hashCode(); - hash = (37 * hash) + DISPLAYMAXDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDisplayMaxDelayMillis()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebGuessClosed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebGuessClosed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.internal_static_SCWebGuessClosed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.internal_static_SCWebGuessClosed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - guessId_ = ""; - displayMaxDelayMillis_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.internal_static_SCWebGuessClosed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.guessId_ = guessId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayMaxDelayMillis_ = displayMaxDelayMillis_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (!other.getGuessId().isEmpty()) { - guessId_ = other.guessId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getDisplayMaxDelayMillis() != 0L) { - setDisplayMaxDelayMillis(other.getDisplayMaxDelayMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - guessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - displayMaxDelayMillis_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object guessId_ = ""; - /** - * string guessId = 2; - * @return The guessId. - */ - public java.lang.String getGuessId() { - java.lang.Object ref = guessId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - guessId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string guessId = 2; - * @return The bytes for guessId. - */ - public com.google.protobuf.ByteString - getGuessIdBytes() { - java.lang.Object ref = guessId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - guessId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string guessId = 2; - * @param value The guessId to set. - * @return This builder for chaining. - */ - public Builder setGuessId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - guessId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string guessId = 2; - * @return This builder for chaining. - */ - public Builder clearGuessId() { - guessId_ = getDefaultInstance().getGuessId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string guessId = 2; - * @param value The bytes for guessId to set. - * @return This builder for chaining. - */ - public Builder setGuessIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - guessId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long displayMaxDelayMillis_ ; - /** - * uint64 displayMaxDelayMillis = 3; - * @return The displayMaxDelayMillis. - */ - @java.lang.Override - public long getDisplayMaxDelayMillis() { - return displayMaxDelayMillis_; - } - /** - * uint64 displayMaxDelayMillis = 3; - * @param value The displayMaxDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setDisplayMaxDelayMillis(long value) { - - displayMaxDelayMillis_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 displayMaxDelayMillis = 3; - * @return This builder for chaining. - */ - public Builder clearDisplayMaxDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000004); - displayMaxDelayMillis_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebGuessClosed) - } - - // @@protoc_insertion_point(class_scope:SCWebGuessClosed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebGuessClosed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessClosedOuterClass.SCWebGuessClosed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebGuessClosed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebGuessClosed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SCWebGuessClosed.proto\"P\n\020SCWebGuessCl" + - "osed\022\014\n\004time\030\001 \001(\004\022\017\n\007guessId\030\002 \001(\t\022\035\n\025d" + - "isplayMaxDelayMillis\030\003 \001(\004B6\n4tech.ordin" + - "aryroad.live.chat.client.kuaishou.protob" + - "ufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebGuessClosed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebGuessClosed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebGuessClosed_descriptor, - new java.lang.String[] { "Time", "GuessId", "DisplayMaxDelayMillis", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebGuessOpenedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebGuessOpenedOuterClass.java deleted file mode 100644 index 952322d7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebGuessOpenedOuterClass.java +++ /dev/null @@ -1,845 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebGuessOpened.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebGuessOpenedOuterClass { - private SCWebGuessOpenedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebGuessOpenedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebGuessOpened) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - - /** - * string guessId = 2; - * @return The guessId. - */ - java.lang.String getGuessId(); - /** - * string guessId = 2; - * @return The bytes for guessId. - */ - com.google.protobuf.ByteString - getGuessIdBytes(); - - /** - * uint64 submitDeadline = 3; - * @return The submitDeadline. - */ - long getSubmitDeadline(); - - /** - * uint64 displayMaxDelayMillis = 4; - * @return The displayMaxDelayMillis. - */ - long getDisplayMaxDelayMillis(); - } - /** - * Protobuf type {@code SCWebGuessOpened} - */ - public static final class SCWebGuessOpened extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebGuessOpened) - SCWebGuessOpenedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebGuessOpened.newBuilder() to construct. - private SCWebGuessOpened(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebGuessOpened() { - guessId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebGuessOpened(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.internal_static_SCWebGuessOpened_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.internal_static_SCWebGuessOpened_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int GUESSID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object guessId_ = ""; - /** - * string guessId = 2; - * @return The guessId. - */ - @java.lang.Override - public java.lang.String getGuessId() { - java.lang.Object ref = guessId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - guessId_ = s; - return s; - } - } - /** - * string guessId = 2; - * @return The bytes for guessId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGuessIdBytes() { - java.lang.Object ref = guessId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - guessId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBMITDEADLINE_FIELD_NUMBER = 3; - private long submitDeadline_ = 0L; - /** - * uint64 submitDeadline = 3; - * @return The submitDeadline. - */ - @java.lang.Override - public long getSubmitDeadline() { - return submitDeadline_; - } - - public static final int DISPLAYMAXDELAYMILLIS_FIELD_NUMBER = 4; - private long displayMaxDelayMillis_ = 0L; - /** - * uint64 displayMaxDelayMillis = 4; - * @return The displayMaxDelayMillis. - */ - @java.lang.Override - public long getDisplayMaxDelayMillis() { - return displayMaxDelayMillis_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guessId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, guessId_); - } - if (submitDeadline_ != 0L) { - output.writeUInt64(3, submitDeadline_); - } - if (displayMaxDelayMillis_ != 0L) { - output.writeUInt64(4, displayMaxDelayMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(guessId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, guessId_); - } - if (submitDeadline_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, submitDeadline_); - } - if (displayMaxDelayMillis_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, displayMaxDelayMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened) obj; - - if (getTime() - != other.getTime()) return false; - if (!getGuessId() - .equals(other.getGuessId())) return false; - if (getSubmitDeadline() - != other.getSubmitDeadline()) return false; - if (getDisplayMaxDelayMillis() - != other.getDisplayMaxDelayMillis()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + GUESSID_FIELD_NUMBER; - hash = (53 * hash) + getGuessId().hashCode(); - hash = (37 * hash) + SUBMITDEADLINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSubmitDeadline()); - hash = (37 * hash) + DISPLAYMAXDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDisplayMaxDelayMillis()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebGuessOpened} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebGuessOpened) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpenedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.internal_static_SCWebGuessOpened_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.internal_static_SCWebGuessOpened_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - guessId_ = ""; - submitDeadline_ = 0L; - displayMaxDelayMillis_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.internal_static_SCWebGuessOpened_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.guessId_ = guessId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.submitDeadline_ = submitDeadline_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.displayMaxDelayMillis_ = displayMaxDelayMillis_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (!other.getGuessId().isEmpty()) { - guessId_ = other.guessId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getSubmitDeadline() != 0L) { - setSubmitDeadline(other.getSubmitDeadline()); - } - if (other.getDisplayMaxDelayMillis() != 0L) { - setDisplayMaxDelayMillis(other.getDisplayMaxDelayMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - guessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - submitDeadline_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - displayMaxDelayMillis_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object guessId_ = ""; - /** - * string guessId = 2; - * @return The guessId. - */ - public java.lang.String getGuessId() { - java.lang.Object ref = guessId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - guessId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string guessId = 2; - * @return The bytes for guessId. - */ - public com.google.protobuf.ByteString - getGuessIdBytes() { - java.lang.Object ref = guessId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - guessId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string guessId = 2; - * @param value The guessId to set. - * @return This builder for chaining. - */ - public Builder setGuessId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - guessId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string guessId = 2; - * @return This builder for chaining. - */ - public Builder clearGuessId() { - guessId_ = getDefaultInstance().getGuessId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string guessId = 2; - * @param value The bytes for guessId to set. - * @return This builder for chaining. - */ - public Builder setGuessIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - guessId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long submitDeadline_ ; - /** - * uint64 submitDeadline = 3; - * @return The submitDeadline. - */ - @java.lang.Override - public long getSubmitDeadline() { - return submitDeadline_; - } - /** - * uint64 submitDeadline = 3; - * @param value The submitDeadline to set. - * @return This builder for chaining. - */ - public Builder setSubmitDeadline(long value) { - - submitDeadline_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 submitDeadline = 3; - * @return This builder for chaining. - */ - public Builder clearSubmitDeadline() { - bitField0_ = (bitField0_ & ~0x00000004); - submitDeadline_ = 0L; - onChanged(); - return this; - } - - private long displayMaxDelayMillis_ ; - /** - * uint64 displayMaxDelayMillis = 4; - * @return The displayMaxDelayMillis. - */ - @java.lang.Override - public long getDisplayMaxDelayMillis() { - return displayMaxDelayMillis_; - } - /** - * uint64 displayMaxDelayMillis = 4; - * @param value The displayMaxDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setDisplayMaxDelayMillis(long value) { - - displayMaxDelayMillis_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 displayMaxDelayMillis = 4; - * @return This builder for chaining. - */ - public Builder clearDisplayMaxDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000008); - displayMaxDelayMillis_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebGuessOpened) - } - - // @@protoc_insertion_point(class_scope:SCWebGuessOpened) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebGuessOpened parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebGuessOpenedOuterClass.SCWebGuessOpened getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebGuessOpened_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebGuessOpened_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SCWebGuessOpened.proto\"h\n\020SCWebGuessOp" + - "ened\022\014\n\004time\030\001 \001(\004\022\017\n\007guessId\030\002 \001(\t\022\026\n\016s" + - "ubmitDeadline\030\003 \001(\004\022\035\n\025displayMaxDelayMi" + - "llis\030\004 \001(\004B6\n4tech.ordinaryroad.live.cha" + - "t.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebGuessOpened_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebGuessOpened_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebGuessOpened_descriptor, - new java.lang.String[] { "Time", "GuessId", "SubmitDeadline", "DisplayMaxDelayMillis", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebHeartbeatAckOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebHeartbeatAckOuterClass.java deleted file mode 100644 index 24932928..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebHeartbeatAckOuterClass.java +++ /dev/null @@ -1,623 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebHeartbeatAck.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebHeartbeatAckOuterClass { - private SCWebHeartbeatAckOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebHeartbeatAckOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebHeartbeatAck) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - long getTimestamp(); - - /** - * uint64 clientTimestamp = 2; - * @return The clientTimestamp. - */ - long getClientTimestamp(); - } - /** - * Protobuf type {@code SCWebHeartbeatAck} - */ - public static final class SCWebHeartbeatAck extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebHeartbeatAck) - SCWebHeartbeatAckOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebHeartbeatAck.newBuilder() to construct. - private SCWebHeartbeatAck(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebHeartbeatAck() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebHeartbeatAck(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.internal_static_SCWebHeartbeatAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.internal_static_SCWebHeartbeatAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.Builder.class); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_ = 0L; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 2; - private long clientTimestamp_ = 0L; - /** - * uint64 clientTimestamp = 2; - * @return The clientTimestamp. - */ - @java.lang.Override - public long getClientTimestamp() { - return clientTimestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (timestamp_ != 0L) { - output.writeUInt64(1, timestamp_); - } - if (clientTimestamp_ != 0L) { - output.writeUInt64(2, clientTimestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, timestamp_); - } - if (clientTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, clientTimestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck) obj; - - if (getTimestamp() - != other.getTimestamp()) return false; - if (getClientTimestamp() - != other.getClientTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClientTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebHeartbeatAck} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebHeartbeatAck) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.internal_static_SCWebHeartbeatAck_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.internal_static_SCWebHeartbeatAck_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - timestamp_ = 0L; - clientTimestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.internal_static_SCWebHeartbeatAck_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.timestamp_ = timestamp_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.clientTimestamp_ = clientTimestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck.getDefaultInstance()) return this; - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - if (other.getClientTimestamp() != 0L) { - setClientTimestamp(other.getClientTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - timestamp_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - clientTimestamp_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long timestamp_ ; - /** - * uint64 timestamp = 1; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 1; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 timestamp = 1; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - - private long clientTimestamp_ ; - /** - * uint64 clientTimestamp = 2; - * @return The clientTimestamp. - */ - @java.lang.Override - public long getClientTimestamp() { - return clientTimestamp_; - } - /** - * uint64 clientTimestamp = 2; - * @param value The clientTimestamp to set. - * @return This builder for chaining. - */ - public Builder setClientTimestamp(long value) { - - clientTimestamp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 clientTimestamp = 2; - * @return This builder for chaining. - */ - public Builder clearClientTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - clientTimestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebHeartbeatAck) - } - - // @@protoc_insertion_point(class_scope:SCWebHeartbeatAck) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebHeartbeatAck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebHeartbeatAckOuterClass.SCWebHeartbeatAck getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebHeartbeatAck_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebHeartbeatAck_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027SCWebHeartbeatAck.proto\"?\n\021SCWebHeartb" + - "eatAck\022\021\n\ttimestamp\030\001 \001(\004\022\027\n\017clientTimes" + - "tamp\030\002 \001(\004B6\n4tech.ordinaryroad.live.cha" + - "t.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebHeartbeatAck_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebHeartbeatAck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebHeartbeatAck_descriptor, - new java.lang.String[] { "Timestamp", "ClientTimestamp", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebLiveSpecialAccountConfigStateOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebLiveSpecialAccountConfigStateOuterClass.java deleted file mode 100644 index 3aa0095b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebLiveSpecialAccountConfigStateOuterClass.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebLiveSpecialAccountConfigState.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebLiveSpecialAccountConfigStateOuterClass { - private SCWebLiveSpecialAccountConfigStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebLiveSpecialAccountConfigStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebLiveSpecialAccountConfigState) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - java.util.List - getConfigSwitchItemList(); - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem getConfigSwitchItem(int index); - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - int getConfigSwitchItemCount(); - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - java.util.List - getConfigSwitchItemOrBuilderList(); - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder getConfigSwitchItemOrBuilder( - int index); - - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - long getTimestamp(); - } - /** - * Protobuf type {@code SCWebLiveSpecialAccountConfigState} - */ - public static final class SCWebLiveSpecialAccountConfigState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebLiveSpecialAccountConfigState) - SCWebLiveSpecialAccountConfigStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebLiveSpecialAccountConfigState.newBuilder() to construct. - private SCWebLiveSpecialAccountConfigState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebLiveSpecialAccountConfigState() { - configSwitchItem_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebLiveSpecialAccountConfigState(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.internal_static_SCWebLiveSpecialAccountConfigState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.internal_static_SCWebLiveSpecialAccountConfigState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.Builder.class); - } - - public static final int CONFIGSWITCHITEM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List configSwitchItem_; - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - @java.lang.Override - public java.util.List getConfigSwitchItemList() { - return configSwitchItem_; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - @java.lang.Override - public java.util.List - getConfigSwitchItemOrBuilderList() { - return configSwitchItem_; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - @java.lang.Override - public int getConfigSwitchItemCount() { - return configSwitchItem_.size(); - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem getConfigSwitchItem(int index) { - return configSwitchItem_.get(index); - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder getConfigSwitchItemOrBuilder( - int index) { - return configSwitchItem_.get(index); - } - - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_ = 0L; - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < configSwitchItem_.size(); i++) { - output.writeMessage(1, configSwitchItem_.get(i)); - } - if (timestamp_ != 0L) { - output.writeUInt64(2, timestamp_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < configSwitchItem_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, configSwitchItem_.get(i)); - } - if (timestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState) obj; - - if (!getConfigSwitchItemList() - .equals(other.getConfigSwitchItemList())) return false; - if (getTimestamp() - != other.getTimestamp()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getConfigSwitchItemCount() > 0) { - hash = (37 * hash) + CONFIGSWITCHITEM_FIELD_NUMBER; - hash = (53 * hash) + getConfigSwitchItemList().hashCode(); - } - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTimestamp()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebLiveSpecialAccountConfigState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebLiveSpecialAccountConfigState) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.internal_static_SCWebLiveSpecialAccountConfigState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.internal_static_SCWebLiveSpecialAccountConfigState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (configSwitchItemBuilder_ == null) { - configSwitchItem_ = java.util.Collections.emptyList(); - } else { - configSwitchItem_ = null; - configSwitchItemBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.internal_static_SCWebLiveSpecialAccountConfigState_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState result) { - if (configSwitchItemBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - configSwitchItem_ = java.util.Collections.unmodifiableList(configSwitchItem_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.configSwitchItem_ = configSwitchItem_; - } else { - result.configSwitchItem_ = configSwitchItemBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.timestamp_ = timestamp_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState.getDefaultInstance()) return this; - if (configSwitchItemBuilder_ == null) { - if (!other.configSwitchItem_.isEmpty()) { - if (configSwitchItem_.isEmpty()) { - configSwitchItem_ = other.configSwitchItem_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.addAll(other.configSwitchItem_); - } - onChanged(); - } - } else { - if (!other.configSwitchItem_.isEmpty()) { - if (configSwitchItemBuilder_.isEmpty()) { - configSwitchItemBuilder_.dispose(); - configSwitchItemBuilder_ = null; - configSwitchItem_ = other.configSwitchItem_; - bitField0_ = (bitField0_ & ~0x00000001); - configSwitchItemBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigSwitchItemFieldBuilder() : null; - } else { - configSwitchItemBuilder_.addAllMessages(other.configSwitchItem_); - } - } - } - if (other.getTimestamp() != 0L) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.parser(), - extensionRegistry); - if (configSwitchItemBuilder_ == null) { - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.add(m); - } else { - configSwitchItemBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - timestamp_ = input.readUInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List configSwitchItem_ = - java.util.Collections.emptyList(); - private void ensureConfigSwitchItemIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - configSwitchItem_ = new java.util.ArrayList(configSwitchItem_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder> configSwitchItemBuilder_; - - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public java.util.List getConfigSwitchItemList() { - if (configSwitchItemBuilder_ == null) { - return java.util.Collections.unmodifiableList(configSwitchItem_); - } else { - return configSwitchItemBuilder_.getMessageList(); - } - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public int getConfigSwitchItemCount() { - if (configSwitchItemBuilder_ == null) { - return configSwitchItem_.size(); - } else { - return configSwitchItemBuilder_.getCount(); - } - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem getConfigSwitchItem(int index) { - if (configSwitchItemBuilder_ == null) { - return configSwitchItem_.get(index); - } else { - return configSwitchItemBuilder_.getMessage(index); - } - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder setConfigSwitchItem( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem value) { - if (configSwitchItemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.set(index, value); - onChanged(); - } else { - configSwitchItemBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder setConfigSwitchItem( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder builderForValue) { - if (configSwitchItemBuilder_ == null) { - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.set(index, builderForValue.build()); - onChanged(); - } else { - configSwitchItemBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder addConfigSwitchItem(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem value) { - if (configSwitchItemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.add(value); - onChanged(); - } else { - configSwitchItemBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder addConfigSwitchItem( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem value) { - if (configSwitchItemBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.add(index, value); - onChanged(); - } else { - configSwitchItemBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder addConfigSwitchItem( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder builderForValue) { - if (configSwitchItemBuilder_ == null) { - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.add(builderForValue.build()); - onChanged(); - } else { - configSwitchItemBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder addConfigSwitchItem( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder builderForValue) { - if (configSwitchItemBuilder_ == null) { - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.add(index, builderForValue.build()); - onChanged(); - } else { - configSwitchItemBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder addAllConfigSwitchItem( - java.lang.Iterable values) { - if (configSwitchItemBuilder_ == null) { - ensureConfigSwitchItemIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, configSwitchItem_); - onChanged(); - } else { - configSwitchItemBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder clearConfigSwitchItem() { - if (configSwitchItemBuilder_ == null) { - configSwitchItem_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - configSwitchItemBuilder_.clear(); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public Builder removeConfigSwitchItem(int index) { - if (configSwitchItemBuilder_ == null) { - ensureConfigSwitchItemIsMutable(); - configSwitchItem_.remove(index); - onChanged(); - } else { - configSwitchItemBuilder_.remove(index); - } - return this; - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder getConfigSwitchItemBuilder( - int index) { - return getConfigSwitchItemFieldBuilder().getBuilder(index); - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder getConfigSwitchItemOrBuilder( - int index) { - if (configSwitchItemBuilder_ == null) { - return configSwitchItem_.get(index); } else { - return configSwitchItemBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public java.util.List - getConfigSwitchItemOrBuilderList() { - if (configSwitchItemBuilder_ != null) { - return configSwitchItemBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(configSwitchItem_); - } - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder addConfigSwitchItemBuilder() { - return getConfigSwitchItemFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.getDefaultInstance()); - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder addConfigSwitchItemBuilder( - int index) { - return getConfigSwitchItemFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.getDefaultInstance()); - } - /** - * repeated .ConfigSwitchItem configSwitchItem = 1; - */ - public java.util.List - getConfigSwitchItemBuilderList() { - return getConfigSwitchItemFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder> - getConfigSwitchItemFieldBuilder() { - if (configSwitchItemBuilder_ == null) { - configSwitchItemBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItem.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.ConfigSwitchItemOrBuilder>( - configSwitchItem_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - configSwitchItem_ = null; - } - return configSwitchItemBuilder_; - } - - private long timestamp_ ; - /** - * uint64 timestamp = 2; - * @return The timestamp. - */ - @java.lang.Override - public long getTimestamp() { - return timestamp_; - } - /** - * uint64 timestamp = 2; - * @param value The timestamp to set. - * @return This builder for chaining. - */ - public Builder setTimestamp(long value) { - - timestamp_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint64 timestamp = 2; - * @return This builder for chaining. - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - timestamp_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebLiveSpecialAccountConfigState) - } - - // @@protoc_insertion_point(class_scope:SCWebLiveSpecialAccountConfigState) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebLiveSpecialAccountConfigState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveSpecialAccountConfigStateOuterClass.SCWebLiveSpecialAccountConfigState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebLiveSpecialAccountConfigState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebLiveSpecialAccountConfigState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(SCWebLiveSpecialAccountConfigState.pro" + - "to\032\026ConfigSwitchItem.proto\"d\n\"SCWebLiveS" + - "pecialAccountConfigState\022+\n\020configSwitch" + - "Item\030\001 \003(\0132\021.ConfigSwitchItem\022\021\n\ttimesta" + - "mp\030\002 \001(\004B6\n4tech.ordinaryroad.live.chat." + - "client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.getDescriptor(), - }); - internal_static_SCWebLiveSpecialAccountConfigState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebLiveSpecialAccountConfigState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebLiveSpecialAccountConfigState_descriptor, - new java.lang.String[] { "ConfigSwitchItem", "Timestamp", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.ConfigSwitchItemOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebLiveWatchingUsersOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebLiveWatchingUsersOuterClass.java deleted file mode 100644 index 5a39e0ba..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebLiveWatchingUsersOuterClass.java +++ /dev/null @@ -1,1081 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebLiveWatchingUsers.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebLiveWatchingUsersOuterClass { - private SCWebLiveWatchingUsersOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebLiveWatchingUsersOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebLiveWatchingUsers) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - java.util.List - getWatchingUserList(); - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getWatchingUser(int index); - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - int getWatchingUserCount(); - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - java.util.List - getWatchingUserOrBuilderList(); - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder getWatchingUserOrBuilder( - int index); - - /** - * string displayWatchingCount = 2; - * @return The displayWatchingCount. - */ - java.lang.String getDisplayWatchingCount(); - /** - * string displayWatchingCount = 2; - * @return The bytes for displayWatchingCount. - */ - com.google.protobuf.ByteString - getDisplayWatchingCountBytes(); - - /** - * uint64 pendingDuration = 3; - * @return The pendingDuration. - */ - long getPendingDuration(); - } - /** - * Protobuf type {@code SCWebLiveWatchingUsers} - */ - public static final class SCWebLiveWatchingUsers extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebLiveWatchingUsers) - SCWebLiveWatchingUsersOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebLiveWatchingUsers.newBuilder() to construct. - private SCWebLiveWatchingUsers(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebLiveWatchingUsers() { - watchingUser_ = java.util.Collections.emptyList(); - displayWatchingCount_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebLiveWatchingUsers(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.Builder.class); - } - - public static final int WATCHINGUSER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List watchingUser_; - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - @java.lang.Override - public java.util.List getWatchingUserList() { - return watchingUser_; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - @java.lang.Override - public java.util.List - getWatchingUserOrBuilderList() { - return watchingUser_; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - @java.lang.Override - public int getWatchingUserCount() { - return watchingUser_.size(); - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getWatchingUser(int index) { - return watchingUser_.get(index); - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder getWatchingUserOrBuilder( - int index) { - return watchingUser_.get(index); - } - - public static final int DISPLAYWATCHINGCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayWatchingCount_ = ""; - /** - * string displayWatchingCount = 2; - * @return The displayWatchingCount. - */ - @java.lang.Override - public java.lang.String getDisplayWatchingCount() { - java.lang.Object ref = displayWatchingCount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayWatchingCount_ = s; - return s; - } - } - /** - * string displayWatchingCount = 2; - * @return The bytes for displayWatchingCount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayWatchingCountBytes() { - java.lang.Object ref = displayWatchingCount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayWatchingCount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PENDINGDURATION_FIELD_NUMBER = 3; - private long pendingDuration_ = 0L; - /** - * uint64 pendingDuration = 3; - * @return The pendingDuration. - */ - @java.lang.Override - public long getPendingDuration() { - return pendingDuration_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < watchingUser_.size(); i++) { - output.writeMessage(1, watchingUser_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayWatchingCount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayWatchingCount_); - } - if (pendingDuration_ != 0L) { - output.writeUInt64(3, pendingDuration_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < watchingUser_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, watchingUser_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayWatchingCount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayWatchingCount_); - } - if (pendingDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, pendingDuration_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers) obj; - - if (!getWatchingUserList() - .equals(other.getWatchingUserList())) return false; - if (!getDisplayWatchingCount() - .equals(other.getDisplayWatchingCount())) return false; - if (getPendingDuration() - != other.getPendingDuration()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWatchingUserCount() > 0) { - hash = (37 * hash) + WATCHINGUSER_FIELD_NUMBER; - hash = (53 * hash) + getWatchingUserList().hashCode(); - } - hash = (37 * hash) + DISPLAYWATCHINGCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getDisplayWatchingCount().hashCode(); - hash = (37 * hash) + PENDINGDURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPendingDuration()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebLiveWatchingUsers} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebLiveWatchingUsers) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (watchingUserBuilder_ == null) { - watchingUser_ = java.util.Collections.emptyList(); - } else { - watchingUser_ = null; - watchingUserBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - displayWatchingCount_ = ""; - pendingDuration_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result) { - if (watchingUserBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - watchingUser_ = java.util.Collections.unmodifiableList(watchingUser_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.watchingUser_ = watchingUser_; - } else { - result.watchingUser_ = watchingUserBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayWatchingCount_ = displayWatchingCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pendingDuration_ = pendingDuration_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.getDefaultInstance()) return this; - if (watchingUserBuilder_ == null) { - if (!other.watchingUser_.isEmpty()) { - if (watchingUser_.isEmpty()) { - watchingUser_ = other.watchingUser_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWatchingUserIsMutable(); - watchingUser_.addAll(other.watchingUser_); - } - onChanged(); - } - } else { - if (!other.watchingUser_.isEmpty()) { - if (watchingUserBuilder_.isEmpty()) { - watchingUserBuilder_.dispose(); - watchingUserBuilder_ = null; - watchingUser_ = other.watchingUser_; - bitField0_ = (bitField0_ & ~0x00000001); - watchingUserBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWatchingUserFieldBuilder() : null; - } else { - watchingUserBuilder_.addAllMessages(other.watchingUser_); - } - } - } - if (!other.getDisplayWatchingCount().isEmpty()) { - displayWatchingCount_ = other.displayWatchingCount_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPendingDuration() != 0L) { - setPendingDuration(other.getPendingDuration()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.parser(), - extensionRegistry); - if (watchingUserBuilder_ == null) { - ensureWatchingUserIsMutable(); - watchingUser_.add(m); - } else { - watchingUserBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - displayWatchingCount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pendingDuration_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List watchingUser_ = - java.util.Collections.emptyList(); - private void ensureWatchingUserIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - watchingUser_ = new java.util.ArrayList(watchingUser_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder> watchingUserBuilder_; - - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public java.util.List getWatchingUserList() { - if (watchingUserBuilder_ == null) { - return java.util.Collections.unmodifiableList(watchingUser_); - } else { - return watchingUserBuilder_.getMessageList(); - } - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public int getWatchingUserCount() { - if (watchingUserBuilder_ == null) { - return watchingUser_.size(); - } else { - return watchingUserBuilder_.getCount(); - } - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getWatchingUser(int index) { - if (watchingUserBuilder_ == null) { - return watchingUser_.get(index); - } else { - return watchingUserBuilder_.getMessage(index); - } - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder setWatchingUser( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo value) { - if (watchingUserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWatchingUserIsMutable(); - watchingUser_.set(index, value); - onChanged(); - } else { - watchingUserBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder setWatchingUser( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder builderForValue) { - if (watchingUserBuilder_ == null) { - ensureWatchingUserIsMutable(); - watchingUser_.set(index, builderForValue.build()); - onChanged(); - } else { - watchingUserBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder addWatchingUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo value) { - if (watchingUserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWatchingUserIsMutable(); - watchingUser_.add(value); - onChanged(); - } else { - watchingUserBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder addWatchingUser( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo value) { - if (watchingUserBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWatchingUserIsMutable(); - watchingUser_.add(index, value); - onChanged(); - } else { - watchingUserBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder addWatchingUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder builderForValue) { - if (watchingUserBuilder_ == null) { - ensureWatchingUserIsMutable(); - watchingUser_.add(builderForValue.build()); - onChanged(); - } else { - watchingUserBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder addWatchingUser( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder builderForValue) { - if (watchingUserBuilder_ == null) { - ensureWatchingUserIsMutable(); - watchingUser_.add(index, builderForValue.build()); - onChanged(); - } else { - watchingUserBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder addAllWatchingUser( - java.lang.Iterable values) { - if (watchingUserBuilder_ == null) { - ensureWatchingUserIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, watchingUser_); - onChanged(); - } else { - watchingUserBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder clearWatchingUser() { - if (watchingUserBuilder_ == null) { - watchingUser_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - watchingUserBuilder_.clear(); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public Builder removeWatchingUser(int index) { - if (watchingUserBuilder_ == null) { - ensureWatchingUserIsMutable(); - watchingUser_.remove(index); - onChanged(); - } else { - watchingUserBuilder_.remove(index); - } - return this; - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder getWatchingUserBuilder( - int index) { - return getWatchingUserFieldBuilder().getBuilder(index); - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder getWatchingUserOrBuilder( - int index) { - if (watchingUserBuilder_ == null) { - return watchingUser_.get(index); } else { - return watchingUserBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public java.util.List - getWatchingUserOrBuilderList() { - if (watchingUserBuilder_ != null) { - return watchingUserBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(watchingUser_); - } - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder addWatchingUserBuilder() { - return getWatchingUserFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.getDefaultInstance()); - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder addWatchingUserBuilder( - int index) { - return getWatchingUserFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.getDefaultInstance()); - } - /** - * repeated .WebWatchingUserInfo watchingUser = 1; - */ - public java.util.List - getWatchingUserBuilderList() { - return getWatchingUserFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder> - getWatchingUserFieldBuilder() { - if (watchingUserBuilder_ == null) { - watchingUserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder>( - watchingUser_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - watchingUser_ = null; - } - return watchingUserBuilder_; - } - - private java.lang.Object displayWatchingCount_ = ""; - /** - * string displayWatchingCount = 2; - * @return The displayWatchingCount. - */ - public java.lang.String getDisplayWatchingCount() { - java.lang.Object ref = displayWatchingCount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayWatchingCount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string displayWatchingCount = 2; - * @return The bytes for displayWatchingCount. - */ - public com.google.protobuf.ByteString - getDisplayWatchingCountBytes() { - java.lang.Object ref = displayWatchingCount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayWatchingCount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string displayWatchingCount = 2; - * @param value The displayWatchingCount to set. - * @return This builder for chaining. - */ - public Builder setDisplayWatchingCount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayWatchingCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string displayWatchingCount = 2; - * @return This builder for chaining. - */ - public Builder clearDisplayWatchingCount() { - displayWatchingCount_ = getDefaultInstance().getDisplayWatchingCount(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string displayWatchingCount = 2; - * @param value The bytes for displayWatchingCount to set. - * @return This builder for chaining. - */ - public Builder setDisplayWatchingCountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayWatchingCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long pendingDuration_ ; - /** - * uint64 pendingDuration = 3; - * @return The pendingDuration. - */ - @java.lang.Override - public long getPendingDuration() { - return pendingDuration_; - } - /** - * uint64 pendingDuration = 3; - * @param value The pendingDuration to set. - * @return This builder for chaining. - */ - public Builder setPendingDuration(long value) { - - pendingDuration_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 pendingDuration = 3; - * @return This builder for chaining. - */ - public Builder clearPendingDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - pendingDuration_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebLiveWatchingUsers) - } - - // @@protoc_insertion_point(class_scope:SCWebLiveWatchingUsers) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebLiveWatchingUsers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebLiveWatchingUsers_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebLiveWatchingUsers_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034SCWebLiveWatchingUsers.proto\032\031WebWatch" + - "ingUserInfo.proto\"{\n\026SCWebLiveWatchingUs" + - "ers\022*\n\014watchingUser\030\001 \003(\0132\024.WebWatchingU" + - "serInfo\022\034\n\024displayWatchingCount\030\002 \001(\t\022\027\n" + - "\017pendingDuration\030\003 \001(\004B6\n4tech.ordinaryr" + - "oad.live.chat.client.kuaishou.protobufb\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.getDescriptor(), - }); - internal_static_SCWebLiveWatchingUsers_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebLiveWatchingUsers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebLiveWatchingUsers_descriptor, - new java.lang.String[] { "WatchingUser", "DisplayWatchingCount", "PendingDuration", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebPipEndedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebPipEndedOuterClass.java deleted file mode 100644 index 150867cc..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebPipEndedOuterClass.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebPipEnded.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebPipEndedOuterClass { - private SCWebPipEndedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebPipEndedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebPipEnded) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - } - /** - * Protobuf type {@code SCWebPipEnded} - */ - public static final class SCWebPipEnded extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebPipEnded) - SCWebPipEndedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebPipEnded.newBuilder() to construct. - private SCWebPipEnded(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebPipEnded() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebPipEnded(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.internal_static_SCWebPipEnded_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.internal_static_SCWebPipEnded_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded) obj; - - if (getTime() - != other.getTime()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebPipEnded} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebPipEnded) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEndedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.internal_static_SCWebPipEnded_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.internal_static_SCWebPipEnded_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.internal_static_SCWebPipEnded_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebPipEnded) - } - - // @@protoc_insertion_point(class_scope:SCWebPipEnded) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebPipEnded parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipEndedOuterClass.SCWebPipEnded getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebPipEnded_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebPipEnded_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023SCWebPipEnded.proto\"\035\n\rSCWebPipEnded\022\014" + - "\n\004time\030\001 \001(\004B6\n4tech.ordinaryroad.live.c" + - "hat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebPipEnded_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebPipEnded_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebPipEnded_descriptor, - new java.lang.String[] { "Time", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebPipStartedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebPipStartedOuterClass.java deleted file mode 100644 index 4b4e9ffa..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebPipStartedOuterClass.java +++ /dev/null @@ -1,549 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebPipStarted.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebPipStartedOuterClass { - private SCWebPipStartedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebPipStartedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebPipStarted) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 time = 1; - * @return The time. - */ - long getTime(); - } - /** - * Protobuf type {@code SCWebPipStarted} - */ - public static final class SCWebPipStarted extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebPipStarted) - SCWebPipStartedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebPipStarted.newBuilder() to construct. - private SCWebPipStarted(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebPipStarted() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebPipStarted(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.internal_static_SCWebPipStarted_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.internal_static_SCWebPipStarted_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.Builder.class); - } - - public static final int TIME_FIELD_NUMBER = 1; - private long time_ = 0L; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (time_ != 0L) { - output.writeUInt64(1, time_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, time_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted) obj; - - if (getTime() - != other.getTime()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebPipStarted} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebPipStarted) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStartedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.internal_static_SCWebPipStarted_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.internal_static_SCWebPipStarted_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - time_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.internal_static_SCWebPipStarted_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = time_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted.getDefaultInstance()) return this; - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long time_ ; - /** - * uint64 time = 1; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 1; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 time = 1; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebPipStarted) - } - - // @@protoc_insertion_point(class_scope:SCWebPipStarted) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebPipStarted parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebPipStartedOuterClass.SCWebPipStarted getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebPipStarted_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebPipStarted_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025SCWebPipStarted.proto\"\037\n\017SCWebPipStart" + - "ed\022\014\n\004time\030\001 \001(\004B6\n4tech.ordinaryroad.li" + - "ve.chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebPipStarted_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebPipStarted_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebPipStarted_descriptor, - new java.lang.String[] { "Time", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebRefreshWalletOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebRefreshWalletOuterClass.java deleted file mode 100644 index 44f11b18..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebRefreshWalletOuterClass.java +++ /dev/null @@ -1,469 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebRefreshWallet.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebRefreshWalletOuterClass { - private SCWebRefreshWalletOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebRefreshWalletOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebRefreshWallet) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code SCWebRefreshWallet} - */ - public static final class SCWebRefreshWallet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebRefreshWallet) - SCWebRefreshWalletOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebRefreshWallet.newBuilder() to construct. - private SCWebRefreshWallet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebRefreshWallet() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebRefreshWallet(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.internal_static_SCWebRefreshWallet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.internal_static_SCWebRefreshWallet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebRefreshWallet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebRefreshWallet) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWalletOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.internal_static_SCWebRefreshWallet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.internal_static_SCWebRefreshWallet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.internal_static_SCWebRefreshWallet_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebRefreshWallet) - } - - // @@protoc_insertion_point(class_scope:SCWebRefreshWallet) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebRefreshWallet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRefreshWalletOuterClass.SCWebRefreshWallet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebRefreshWallet_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebRefreshWallet_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030SCWebRefreshWallet.proto\"\024\n\022SCWebRefre" + - "shWalletB6\n4tech.ordinaryroad.live.chat." + - "client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebRefreshWallet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebRefreshWallet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebRefreshWallet_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebRideChangedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebRideChangedOuterClass.java deleted file mode 100644 index 4e6cd79a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebRideChangedOuterClass.java +++ /dev/null @@ -1,697 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebRideChanged.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebRideChangedOuterClass { - private SCWebRideChangedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebRideChangedOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebRideChanged) - com.google.protobuf.MessageOrBuilder { - - /** - * string rideId = 1; - * @return The rideId. - */ - java.lang.String getRideId(); - /** - * string rideId = 1; - * @return The bytes for rideId. - */ - com.google.protobuf.ByteString - getRideIdBytes(); - - /** - * uint32 requestMaxDelayMillis = 2; - * @return The requestMaxDelayMillis. - */ - int getRequestMaxDelayMillis(); - } - /** - * Protobuf type {@code SCWebRideChanged} - */ - public static final class SCWebRideChanged extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebRideChanged) - SCWebRideChangedOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebRideChanged.newBuilder() to construct. - private SCWebRideChanged(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebRideChanged() { - rideId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebRideChanged(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.internal_static_SCWebRideChanged_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.internal_static_SCWebRideChanged_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.Builder.class); - } - - public static final int RIDEID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object rideId_ = ""; - /** - * string rideId = 1; - * @return The rideId. - */ - @java.lang.Override - public java.lang.String getRideId() { - java.lang.Object ref = rideId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rideId_ = s; - return s; - } - } - /** - * string rideId = 1; - * @return The bytes for rideId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRideIdBytes() { - java.lang.Object ref = rideId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rideId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTMAXDELAYMILLIS_FIELD_NUMBER = 2; - private int requestMaxDelayMillis_ = 0; - /** - * uint32 requestMaxDelayMillis = 2; - * @return The requestMaxDelayMillis. - */ - @java.lang.Override - public int getRequestMaxDelayMillis() { - return requestMaxDelayMillis_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rideId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rideId_); - } - if (requestMaxDelayMillis_ != 0) { - output.writeUInt32(2, requestMaxDelayMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rideId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rideId_); - } - if (requestMaxDelayMillis_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, requestMaxDelayMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged) obj; - - if (!getRideId() - .equals(other.getRideId())) return false; - if (getRequestMaxDelayMillis() - != other.getRequestMaxDelayMillis()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RIDEID_FIELD_NUMBER; - hash = (53 * hash) + getRideId().hashCode(); - hash = (37 * hash) + REQUESTMAXDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + getRequestMaxDelayMillis(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebRideChanged} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebRideChanged) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChangedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.internal_static_SCWebRideChanged_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.internal_static_SCWebRideChanged_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - rideId_ = ""; - requestMaxDelayMillis_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.internal_static_SCWebRideChanged_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rideId_ = rideId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestMaxDelayMillis_ = requestMaxDelayMillis_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged.getDefaultInstance()) return this; - if (!other.getRideId().isEmpty()) { - rideId_ = other.rideId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getRequestMaxDelayMillis() != 0) { - setRequestMaxDelayMillis(other.getRequestMaxDelayMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - rideId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - requestMaxDelayMillis_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object rideId_ = ""; - /** - * string rideId = 1; - * @return The rideId. - */ - public java.lang.String getRideId() { - java.lang.Object ref = rideId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rideId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string rideId = 1; - * @return The bytes for rideId. - */ - public com.google.protobuf.ByteString - getRideIdBytes() { - java.lang.Object ref = rideId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rideId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string rideId = 1; - * @param value The rideId to set. - * @return This builder for chaining. - */ - public Builder setRideId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - rideId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string rideId = 1; - * @return This builder for chaining. - */ - public Builder clearRideId() { - rideId_ = getDefaultInstance().getRideId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string rideId = 1; - * @param value The bytes for rideId to set. - * @return This builder for chaining. - */ - public Builder setRideIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - rideId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int requestMaxDelayMillis_ ; - /** - * uint32 requestMaxDelayMillis = 2; - * @return The requestMaxDelayMillis. - */ - @java.lang.Override - public int getRequestMaxDelayMillis() { - return requestMaxDelayMillis_; - } - /** - * uint32 requestMaxDelayMillis = 2; - * @param value The requestMaxDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setRequestMaxDelayMillis(int value) { - - requestMaxDelayMillis_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * uint32 requestMaxDelayMillis = 2; - * @return This builder for chaining. - */ - public Builder clearRequestMaxDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000002); - requestMaxDelayMillis_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebRideChanged) - } - - // @@protoc_insertion_point(class_scope:SCWebRideChanged) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebRideChanged parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebRideChangedOuterClass.SCWebRideChanged getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebRideChanged_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebRideChanged_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026SCWebRideChanged.proto\"A\n\020SCWebRideCha" + - "nged\022\016\n\006rideId\030\001 \001(\t\022\035\n\025requestMaxDelayM" + - "illis\030\002 \001(\rB6\n4tech.ordinaryroad.live.ch" + - "at.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebRideChanged_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebRideChanged_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebRideChanged_descriptor, - new java.lang.String[] { "RideId", "RequestMaxDelayMillis", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebSuspectedViolationOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebSuspectedViolationOuterClass.java deleted file mode 100644 index dabcda89..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SCWebSuspectedViolationOuterClass.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SCWebSuspectedViolation.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SCWebSuspectedViolationOuterClass { - private SCWebSuspectedViolationOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SCWebSuspectedViolationOrBuilder extends - // @@protoc_insertion_point(interface_extends:SCWebSuspectedViolation) - com.google.protobuf.MessageOrBuilder { - - /** - * bool suspectedViolation = 1; - * @return The suspectedViolation. - */ - boolean getSuspectedViolation(); - } - /** - * Protobuf type {@code SCWebSuspectedViolation} - */ - public static final class SCWebSuspectedViolation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SCWebSuspectedViolation) - SCWebSuspectedViolationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SCWebSuspectedViolation.newBuilder() to construct. - private SCWebSuspectedViolation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SCWebSuspectedViolation() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SCWebSuspectedViolation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.internal_static_SCWebSuspectedViolation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.internal_static_SCWebSuspectedViolation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.Builder.class); - } - - public static final int SUSPECTEDVIOLATION_FIELD_NUMBER = 1; - private boolean suspectedViolation_ = false; - /** - * bool suspectedViolation = 1; - * @return The suspectedViolation. - */ - @java.lang.Override - public boolean getSuspectedViolation() { - return suspectedViolation_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (suspectedViolation_ != false) { - output.writeBool(1, suspectedViolation_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (suspectedViolation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, suspectedViolation_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation) obj; - - if (getSuspectedViolation() - != other.getSuspectedViolation()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUSPECTEDVIOLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuspectedViolation()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SCWebSuspectedViolation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SCWebSuspectedViolation) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.internal_static_SCWebSuspectedViolation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.internal_static_SCWebSuspectedViolation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - suspectedViolation_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.internal_static_SCWebSuspectedViolation_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.suspectedViolation_ = suspectedViolation_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation.getDefaultInstance()) return this; - if (other.getSuspectedViolation() != false) { - setSuspectedViolation(other.getSuspectedViolation()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - suspectedViolation_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean suspectedViolation_ ; - /** - * bool suspectedViolation = 1; - * @return The suspectedViolation. - */ - @java.lang.Override - public boolean getSuspectedViolation() { - return suspectedViolation_; - } - /** - * bool suspectedViolation = 1; - * @param value The suspectedViolation to set. - * @return This builder for chaining. - */ - public Builder setSuspectedViolation(boolean value) { - - suspectedViolation_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * bool suspectedViolation = 1; - * @return This builder for chaining. - */ - public Builder clearSuspectedViolation() { - bitField0_ = (bitField0_ & ~0x00000001); - suspectedViolation_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SCWebSuspectedViolation) - } - - // @@protoc_insertion_point(class_scope:SCWebSuspectedViolation) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SCWebSuspectedViolation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebSuspectedViolationOuterClass.SCWebSuspectedViolation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SCWebSuspectedViolation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SCWebSuspectedViolation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035SCWebSuspectedViolation.proto\"5\n\027SCWeb" + - "SuspectedViolation\022\032\n\022suspectedViolation" + - "\030\001 \001(\010B6\n4tech.ordinaryroad.live.chat.cl" + - "ient.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SCWebSuspectedViolation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SCWebSuspectedViolation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SCWebSuspectedViolation_descriptor, - new java.lang.String[] { "SuspectedViolation", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SimpleUserInfoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SimpleUserInfoOuterClass.java deleted file mode 100644 index e1b66661..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SimpleUserInfoOuterClass.java +++ /dev/null @@ -1,921 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SimpleUserInfo.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class SimpleUserInfoOuterClass { - private SimpleUserInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SimpleUserInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:SimpleUserInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string principalId = 1; - * @return The principalId. - */ - java.lang.String getPrincipalId(); - /** - * string principalId = 1; - * @return The bytes for principalId. - */ - com.google.protobuf.ByteString - getPrincipalIdBytes(); - - /** - * string userName = 2; - * @return The userName. - */ - java.lang.String getUserName(); - /** - * string userName = 2; - * @return The bytes for userName. - */ - com.google.protobuf.ByteString - getUserNameBytes(); - - /** - * string headUrl = 3; - * @return The headUrl. - */ - java.lang.String getHeadUrl(); - /** - * string headUrl = 3; - * @return The bytes for headUrl. - */ - com.google.protobuf.ByteString - getHeadUrlBytes(); - } - /** - * Protobuf type {@code SimpleUserInfo} - */ - public static final class SimpleUserInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SimpleUserInfo) - SimpleUserInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use SimpleUserInfo.newBuilder() to construct. - private SimpleUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimpleUserInfo() { - principalId_ = ""; - userName_ = ""; - headUrl_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SimpleUserInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.internal_static_SimpleUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.internal_static_SimpleUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder.class); - } - - public static final int PRINCIPALID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object principalId_ = ""; - /** - * string principalId = 1; - * @return The principalId. - */ - @java.lang.Override - public java.lang.String getPrincipalId() { - java.lang.Object ref = principalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principalId_ = s; - return s; - } - } - /** - * string principalId = 1; - * @return The bytes for principalId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPrincipalIdBytes() { - java.lang.Object ref = principalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object userName_ = ""; - /** - * string userName = 2; - * @return The userName. - */ - @java.lang.Override - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userName_ = s; - return s; - } - } - /** - * string userName = 2; - * @return The bytes for userName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADURL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object headUrl_ = ""; - /** - * string headUrl = 3; - * @return The headUrl. - */ - @java.lang.Override - public java.lang.String getHeadUrl() { - java.lang.Object ref = headUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - headUrl_ = s; - return s; - } - } - /** - * string headUrl = 3; - * @return The bytes for headUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHeadUrlBytes() { - java.lang.Object ref = headUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principalId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, headUrl_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(principalId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principalId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, headUrl_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo) obj; - - if (!getPrincipalId() - .equals(other.getPrincipalId())) return false; - if (!getUserName() - .equals(other.getUserName())) return false; - if (!getHeadUrl() - .equals(other.getHeadUrl())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PRINCIPALID_FIELD_NUMBER; - hash = (53 * hash) + getPrincipalId().hashCode(); - hash = (37 * hash) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUserName().hashCode(); - hash = (37 * hash) + HEADURL_FIELD_NUMBER; - hash = (53 * hash) + getHeadUrl().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SimpleUserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SimpleUserInfo) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.internal_static_SimpleUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.internal_static_SimpleUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - principalId_ = ""; - userName_ = ""; - headUrl_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.internal_static_SimpleUserInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.principalId_ = principalId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.userName_ = userName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.headUrl_ = headUrl_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) return this; - if (!other.getPrincipalId().isEmpty()) { - principalId_ = other.principalId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUserName().isEmpty()) { - userName_ = other.userName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getHeadUrl().isEmpty()) { - headUrl_ = other.headUrl_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - principalId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - userName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - headUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object principalId_ = ""; - /** - * string principalId = 1; - * @return The principalId. - */ - public java.lang.String getPrincipalId() { - java.lang.Object ref = principalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string principalId = 1; - * @return The bytes for principalId. - */ - public com.google.protobuf.ByteString - getPrincipalIdBytes() { - java.lang.Object ref = principalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string principalId = 1; - * @param value The principalId to set. - * @return This builder for chaining. - */ - public Builder setPrincipalId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - principalId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string principalId = 1; - * @return This builder for chaining. - */ - public Builder clearPrincipalId() { - principalId_ = getDefaultInstance().getPrincipalId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string principalId = 1; - * @param value The bytes for principalId to set. - * @return This builder for chaining. - */ - public Builder setPrincipalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - principalId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object userName_ = ""; - /** - * string userName = 2; - * @return The userName. - */ - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string userName = 2; - * @return The bytes for userName. - */ - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string userName = 2; - * @param value The userName to set. - * @return This builder for chaining. - */ - public Builder setUserName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - userName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string userName = 2; - * @return This builder for chaining. - */ - public Builder clearUserName() { - userName_ = getDefaultInstance().getUserName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string userName = 2; - * @param value The bytes for userName to set. - * @return This builder for chaining. - */ - public Builder setUserNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - userName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object headUrl_ = ""; - /** - * string headUrl = 3; - * @return The headUrl. - */ - public java.lang.String getHeadUrl() { - java.lang.Object ref = headUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - headUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string headUrl = 3; - * @return The bytes for headUrl. - */ - public com.google.protobuf.ByteString - getHeadUrlBytes() { - java.lang.Object ref = headUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - headUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string headUrl = 3; - * @param value The headUrl to set. - * @return This builder for chaining. - */ - public Builder setHeadUrl( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - headUrl_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string headUrl = 3; - * @return This builder for chaining. - */ - public Builder clearHeadUrl() { - headUrl_ = getDefaultInstance().getHeadUrl(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string headUrl = 3; - * @param value The bytes for headUrl to set. - * @return This builder for chaining. - */ - public Builder setHeadUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - headUrl_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SimpleUserInfo) - } - - // @@protoc_insertion_point(class_scope:SimpleUserInfo) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimpleUserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SimpleUserInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SimpleUserInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024SimpleUserInfo.proto\"H\n\016SimpleUserInfo" + - "\022\023\n\013principalId\030\001 \001(\t\022\020\n\010userName\030\002 \001(\t\022" + - "\017\n\007headUrl\030\003 \001(\tB6\n4tech.ordinaryroad.li" + - "ve.chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SimpleUserInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SimpleUserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SimpleUserInfo_descriptor, - new java.lang.String[] { "PrincipalId", "UserName", "HeadUrl", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SocketMessageOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SocketMessageOuterClass.java deleted file mode 100644 index ded05b95..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/SocketMessageOuterClass.java +++ /dev/null @@ -1,910 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SocketMessage.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -import tech.ordinaryroad.live.chat.client.kuaishou.msg.base.IKuaishouCmdMsg; - -public final class SocketMessageOuterClass { - private SocketMessageOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SocketMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:SocketMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * .PayloadType payloadType = 1; - * @return The enum numeric value on the wire for payloadType. - */ - int getPayloadTypeValue(); - /** - * .PayloadType payloadType = 1; - * @return The payloadType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType getPayloadType(); - - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return The enum numeric value on the wire for compressionType. - */ - int getCompressionTypeValue(); - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return The compressionType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType getCompressionType(); - - /** - * bytes payload = 3; - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - } - /** - * Protobuf type {@code SocketMessage} - */ - public static final class SocketMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SocketMessage) - SocketMessageOrBuilder, IKuaishouCmdMsg { - - @Override - public String getCmd() { - return getPayloadType().name(); - } - - @Override - public void setCmd(String cmd) { - // ignore - } - - @Override - public PayloadTypeOuterClass.PayloadType getCmdEnum() { - return getPayloadType(); - } - - private static final long serialVersionUID = 0L; - // Use SocketMessage.newBuilder() to construct. - private SocketMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SocketMessage() { - payloadType_ = 0; - compressionType_ = 0; - payload_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SocketMessage(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.internal_static_SocketMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.internal_static_SocketMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.Builder.class); - } - - /** - * Protobuf enum {@code SocketMessage.CompressionType} - */ - public enum CompressionType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * NONE = 1; - */ - NONE(1), - /** - * GZIP = 2; - */ - GZIP(2), - /** - * AES = 3; - */ - AES(3), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * NONE = 1; - */ - public static final int NONE_VALUE = 1; - /** - * GZIP = 2; - */ - public static final int GZIP_VALUE = 2; - /** - * AES = 3; - */ - public static final int AES_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CompressionType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CompressionType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return NONE; - case 2: return GZIP; - case 3: return AES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CompressionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CompressionType findValueByNumber(int number) { - return CompressionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.getDescriptor().getEnumTypes().get(0); - } - - private static final CompressionType[] VALUES = values(); - - public static CompressionType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CompressionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:SocketMessage.CompressionType) - } - - public static final int PAYLOADTYPE_FIELD_NUMBER = 1; - private int payloadType_ = 0; - /** - * .PayloadType payloadType = 1; - * @return The enum numeric value on the wire for payloadType. - */ - @java.lang.Override public int getPayloadTypeValue() { - return payloadType_; - } - /** - * .PayloadType payloadType = 1; - * @return The payloadType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType getPayloadType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType.forNumber(payloadType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType.UNRECOGNIZED : result; - } - - public static final int COMPRESSIONTYPE_FIELD_NUMBER = 2; - private int compressionType_ = 0; - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return The enum numeric value on the wire for compressionType. - */ - @java.lang.Override public int getCompressionTypeValue() { - return compressionType_; - } - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return The compressionType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType getCompressionType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType.forNumber(compressionType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType.UNRECOGNIZED : result; - } - - public static final int PAYLOAD_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 3; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payloadType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType.UNKNOWN.getNumber()) { - output.writeEnum(1, payloadType_); - } - if (compressionType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType.UNKNOWN.getNumber()) { - output.writeEnum(2, compressionType_); - } - if (!payload_.isEmpty()) { - output.writeBytes(3, payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, payloadType_); - } - if (compressionType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, compressionType_); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, payload_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage) obj; - - if (payloadType_ != other.payloadType_) return false; - if (compressionType_ != other.compressionType_) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PAYLOADTYPE_FIELD_NUMBER; - hash = (53 * hash) + payloadType_; - hash = (37 * hash) + COMPRESSIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + compressionType_; - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SocketMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SocketMessage) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.internal_static_SocketMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.internal_static_SocketMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - payloadType_ = 0; - compressionType_ = 0; - payload_ = com.google.protobuf.ByteString.EMPTY; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.internal_static_SocketMessage_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.payloadType_ = payloadType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.compressionType_ = compressionType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.payload_ = payload_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.getDefaultInstance()) return this; - if (other.payloadType_ != 0) { - setPayloadTypeValue(other.getPayloadTypeValue()); - } - if (other.compressionType_ != 0) { - setCompressionTypeValue(other.getCompressionTypeValue()); - } - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - payloadType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - compressionType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - payload_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int payloadType_ = 0; - /** - * .PayloadType payloadType = 1; - * @return The enum numeric value on the wire for payloadType. - */ - @java.lang.Override public int getPayloadTypeValue() { - return payloadType_; - } - /** - * .PayloadType payloadType = 1; - * @param value The enum numeric value on the wire for payloadType to set. - * @return This builder for chaining. - */ - public Builder setPayloadTypeValue(int value) { - payloadType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .PayloadType payloadType = 1; - * @return The payloadType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType getPayloadType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType.forNumber(payloadType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType.UNRECOGNIZED : result; - } - /** - * .PayloadType payloadType = 1; - * @param value The payloadType to set. - * @return This builder for chaining. - */ - public Builder setPayloadType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.PayloadType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - payloadType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .PayloadType payloadType = 1; - * @return This builder for chaining. - */ - public Builder clearPayloadType() { - bitField0_ = (bitField0_ & ~0x00000001); - payloadType_ = 0; - onChanged(); - return this; - } - - private int compressionType_ = 0; - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return The enum numeric value on the wire for compressionType. - */ - @java.lang.Override public int getCompressionTypeValue() { - return compressionType_; - } - /** - * .SocketMessage.CompressionType compressionType = 2; - * @param value The enum numeric value on the wire for compressionType to set. - * @return This builder for chaining. - */ - public Builder setCompressionTypeValue(int value) { - compressionType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return The compressionType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType getCompressionType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType.forNumber(compressionType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType.UNRECOGNIZED : result; - } - /** - * .SocketMessage.CompressionType compressionType = 2; - * @param value The compressionType to set. - * @return This builder for chaining. - */ - public Builder setCompressionType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage.CompressionType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - compressionType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .SocketMessage.CompressionType compressionType = 2; - * @return This builder for chaining. - */ - public Builder clearCompressionType() { - bitField0_ = (bitField0_ & ~0x00000002); - compressionType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes payload = 3; - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * bytes payload = 3; - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - payload_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bytes payload = 3; - * @return This builder for chaining. - */ - public Builder clearPayload() { - bitField0_ = (bitField0_ & ~0x00000004); - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SocketMessage) - } - - // @@protoc_insertion_point(class_scope:SocketMessage) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SocketMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SocketMessageOuterClass.SocketMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SocketMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SocketMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023SocketMessage.proto\032\021PayloadType.proto" + - "\"\271\001\n\rSocketMessage\022!\n\013payloadType\030\001 \001(\0162" + - "\014.PayloadType\0227\n\017compressionType\030\002 \001(\0162\036" + - ".SocketMessage.CompressionType\022\017\n\007payloa" + - "d\030\003 \001(\014\";\n\017CompressionType\022\013\n\007UNKNOWN\020\000\022" + - "\010\n\004NONE\020\001\022\010\n\004GZIP\020\002\022\007\n\003AES\020\003B6\n4tech.ord" + - "inaryroad.live.chat.client.kuaishou.prot" + - "obufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.getDescriptor(), - }); - internal_static_SocketMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SocketMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SocketMessage_descriptor, - new java.lang.String[] { "PayloadType", "CompressionType", "Payload", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/UserInfoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/UserInfoOuterClass.java deleted file mode 100644 index f09acea2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/UserInfoOuterClass.java +++ /dev/null @@ -1,2121 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: UserInfo.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class UserInfoOuterClass { - private UserInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UserInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:UserInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * uint64 userId = 1; - * @return The userId. - */ - long getUserId(); - - /** - * string userName = 2; - * @return The userName. - */ - java.lang.String getUserName(); - /** - * string userName = 2; - * @return The bytes for userName. - */ - com.google.protobuf.ByteString - getUserNameBytes(); - - /** - * string userGender = 3; - * @return The userGender. - */ - java.lang.String getUserGender(); - /** - * string userGender = 3; - * @return The bytes for userGender. - */ - com.google.protobuf.ByteString - getUserGenderBytes(); - - /** - * string userText = 4; - * @return The userText. - */ - java.lang.String getUserText(); - /** - * string userText = 4; - * @return The bytes for userText. - */ - com.google.protobuf.ByteString - getUserTextBytes(); - - /** - * repeated .PicUrl headUrls = 5; - */ - java.util.List - getHeadUrlsList(); - /** - * repeated .PicUrl headUrls = 5; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getHeadUrls(int index); - /** - * repeated .PicUrl headUrls = 5; - */ - int getHeadUrlsCount(); - /** - * repeated .PicUrl headUrls = 5; - */ - java.util.List - getHeadUrlsOrBuilderList(); - /** - * repeated .PicUrl headUrls = 5; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getHeadUrlsOrBuilder( - int index); - - /** - * bool verified = 6; - * @return The verified. - */ - boolean getVerified(); - - /** - * string sUserId = 7; - * @return The sUserId. - */ - java.lang.String getSUserId(); - /** - * string sUserId = 7; - * @return The bytes for sUserId. - */ - com.google.protobuf.ByteString - getSUserIdBytes(); - - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - java.util.List - getHttpsHeadUrlsList(); - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getHttpsHeadUrls(int index); - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - int getHttpsHeadUrlsCount(); - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - java.util.List - getHttpsHeadUrlsOrBuilderList(); - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getHttpsHeadUrlsOrBuilder( - int index); - - /** - * string kwaiId = 9; - * @return The kwaiId. - */ - java.lang.String getKwaiId(); - /** - * string kwaiId = 9; - * @return The bytes for kwaiId. - */ - com.google.protobuf.ByteString - getKwaiIdBytes(); - } - /** - * Protobuf type {@code UserInfo} - */ - public static final class UserInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:UserInfo) - UserInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserInfo.newBuilder() to construct. - private UserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserInfo() { - userName_ = ""; - userGender_ = ""; - userText_ = ""; - headUrls_ = java.util.Collections.emptyList(); - sUserId_ = ""; - httpsHeadUrls_ = java.util.Collections.emptyList(); - kwaiId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UserInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.internal_static_UserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.internal_static_UserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.Builder.class); - } - - public static final int USERID_FIELD_NUMBER = 1; - private long userId_ = 0L; - /** - * uint64 userId = 1; - * @return The userId. - */ - @java.lang.Override - public long getUserId() { - return userId_; - } - - public static final int USERNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object userName_ = ""; - /** - * string userName = 2; - * @return The userName. - */ - @java.lang.Override - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userName_ = s; - return s; - } - } - /** - * string userName = 2; - * @return The bytes for userName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERGENDER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object userGender_ = ""; - /** - * string userGender = 3; - * @return The userGender. - */ - @java.lang.Override - public java.lang.String getUserGender() { - java.lang.Object ref = userGender_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userGender_ = s; - return s; - } - } - /** - * string userGender = 3; - * @return The bytes for userGender. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserGenderBytes() { - java.lang.Object ref = userGender_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userGender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERTEXT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object userText_ = ""; - /** - * string userText = 4; - * @return The userText. - */ - @java.lang.Override - public java.lang.String getUserText() { - java.lang.Object ref = userText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userText_ = s; - return s; - } - } - /** - * string userText = 4; - * @return The bytes for userText. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserTextBytes() { - java.lang.Object ref = userText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADURLS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List headUrls_; - /** - * repeated .PicUrl headUrls = 5; - */ - @java.lang.Override - public java.util.List getHeadUrlsList() { - return headUrls_; - } - /** - * repeated .PicUrl headUrls = 5; - */ - @java.lang.Override - public java.util.List - getHeadUrlsOrBuilderList() { - return headUrls_; - } - /** - * repeated .PicUrl headUrls = 5; - */ - @java.lang.Override - public int getHeadUrlsCount() { - return headUrls_.size(); - } - /** - * repeated .PicUrl headUrls = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getHeadUrls(int index) { - return headUrls_.get(index); - } - /** - * repeated .PicUrl headUrls = 5; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getHeadUrlsOrBuilder( - int index) { - return headUrls_.get(index); - } - - public static final int VERIFIED_FIELD_NUMBER = 6; - private boolean verified_ = false; - /** - * bool verified = 6; - * @return The verified. - */ - @java.lang.Override - public boolean getVerified() { - return verified_; - } - - public static final int SUSERID_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object sUserId_ = ""; - /** - * string sUserId = 7; - * @return The sUserId. - */ - @java.lang.Override - public java.lang.String getSUserId() { - java.lang.Object ref = sUserId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sUserId_ = s; - return s; - } - } - /** - * string sUserId = 7; - * @return The bytes for sUserId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSUserIdBytes() { - java.lang.Object ref = sUserId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sUserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTTPSHEADURLS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List httpsHeadUrls_; - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - @java.lang.Override - public java.util.List getHttpsHeadUrlsList() { - return httpsHeadUrls_; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - @java.lang.Override - public java.util.List - getHttpsHeadUrlsOrBuilderList() { - return httpsHeadUrls_; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - @java.lang.Override - public int getHttpsHeadUrlsCount() { - return httpsHeadUrls_.size(); - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getHttpsHeadUrls(int index) { - return httpsHeadUrls_.get(index); - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getHttpsHeadUrlsOrBuilder( - int index) { - return httpsHeadUrls_.get(index); - } - - public static final int KWAIID_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object kwaiId_ = ""; - /** - * string kwaiId = 9; - * @return The kwaiId. - */ - @java.lang.Override - public java.lang.String getKwaiId() { - java.lang.Object ref = kwaiId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kwaiId_ = s; - return s; - } - } - /** - * string kwaiId = 9; - * @return The bytes for kwaiId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKwaiIdBytes() { - java.lang.Object ref = kwaiId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kwaiId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (userId_ != 0L) { - output.writeUInt64(1, userId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userGender_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userGender_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userText_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userText_); - } - for (int i = 0; i < headUrls_.size(); i++) { - output.writeMessage(5, headUrls_.get(i)); - } - if (verified_ != false) { - output.writeBool(6, verified_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sUserId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sUserId_); - } - for (int i = 0; i < httpsHeadUrls_.size(); i++) { - output.writeMessage(8, httpsHeadUrls_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kwaiId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, kwaiId_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (userId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, userId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userGender_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userGender_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userText_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userText_); - } - for (int i = 0; i < headUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, headUrls_.get(i)); - } - if (verified_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, verified_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sUserId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sUserId_); - } - for (int i = 0; i < httpsHeadUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, httpsHeadUrls_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kwaiId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, kwaiId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo) obj; - - if (getUserId() - != other.getUserId()) return false; - if (!getUserName() - .equals(other.getUserName())) return false; - if (!getUserGender() - .equals(other.getUserGender())) return false; - if (!getUserText() - .equals(other.getUserText())) return false; - if (!getHeadUrlsList() - .equals(other.getHeadUrlsList())) return false; - if (getVerified() - != other.getVerified()) return false; - if (!getSUserId() - .equals(other.getSUserId())) return false; - if (!getHttpsHeadUrlsList() - .equals(other.getHttpsHeadUrlsList())) return false; - if (!getKwaiId() - .equals(other.getKwaiId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USERID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUserId()); - hash = (37 * hash) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUserName().hashCode(); - hash = (37 * hash) + USERGENDER_FIELD_NUMBER; - hash = (53 * hash) + getUserGender().hashCode(); - hash = (37 * hash) + USERTEXT_FIELD_NUMBER; - hash = (53 * hash) + getUserText().hashCode(); - if (getHeadUrlsCount() > 0) { - hash = (37 * hash) + HEADURLS_FIELD_NUMBER; - hash = (53 * hash) + getHeadUrlsList().hashCode(); - } - hash = (37 * hash) + VERIFIED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVerified()); - hash = (37 * hash) + SUSERID_FIELD_NUMBER; - hash = (53 * hash) + getSUserId().hashCode(); - if (getHttpsHeadUrlsCount() > 0) { - hash = (37 * hash) + HTTPSHEADURLS_FIELD_NUMBER; - hash = (53 * hash) + getHttpsHeadUrlsList().hashCode(); - } - hash = (37 * hash) + KWAIID_FIELD_NUMBER; - hash = (53 * hash) + getKwaiId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code UserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:UserInfo) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.internal_static_UserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.internal_static_UserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - userId_ = 0L; - userName_ = ""; - userGender_ = ""; - userText_ = ""; - if (headUrlsBuilder_ == null) { - headUrls_ = java.util.Collections.emptyList(); - } else { - headUrls_ = null; - headUrlsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - verified_ = false; - sUserId_ = ""; - if (httpsHeadUrlsBuilder_ == null) { - httpsHeadUrls_ = java.util.Collections.emptyList(); - } else { - httpsHeadUrls_ = null; - httpsHeadUrlsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - kwaiId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.internal_static_UserInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo result) { - if (headUrlsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - headUrls_ = java.util.Collections.unmodifiableList(headUrls_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.headUrls_ = headUrls_; - } else { - result.headUrls_ = headUrlsBuilder_.build(); - } - if (httpsHeadUrlsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - httpsHeadUrls_ = java.util.Collections.unmodifiableList(httpsHeadUrls_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.httpsHeadUrls_ = httpsHeadUrls_; - } else { - result.httpsHeadUrls_ = httpsHeadUrlsBuilder_.build(); - } - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.userId_ = userId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.userName_ = userName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.userGender_ = userGender_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.userText_ = userText_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.verified_ = verified_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.sUserId_ = sUserId_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.kwaiId_ = kwaiId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo.getDefaultInstance()) return this; - if (other.getUserId() != 0L) { - setUserId(other.getUserId()); - } - if (!other.getUserName().isEmpty()) { - userName_ = other.userName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getUserGender().isEmpty()) { - userGender_ = other.userGender_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getUserText().isEmpty()) { - userText_ = other.userText_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (headUrlsBuilder_ == null) { - if (!other.headUrls_.isEmpty()) { - if (headUrls_.isEmpty()) { - headUrls_ = other.headUrls_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureHeadUrlsIsMutable(); - headUrls_.addAll(other.headUrls_); - } - onChanged(); - } - } else { - if (!other.headUrls_.isEmpty()) { - if (headUrlsBuilder_.isEmpty()) { - headUrlsBuilder_.dispose(); - headUrlsBuilder_ = null; - headUrls_ = other.headUrls_; - bitField0_ = (bitField0_ & ~0x00000010); - headUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadUrlsFieldBuilder() : null; - } else { - headUrlsBuilder_.addAllMessages(other.headUrls_); - } - } - } - if (other.getVerified() != false) { - setVerified(other.getVerified()); - } - if (!other.getSUserId().isEmpty()) { - sUserId_ = other.sUserId_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (httpsHeadUrlsBuilder_ == null) { - if (!other.httpsHeadUrls_.isEmpty()) { - if (httpsHeadUrls_.isEmpty()) { - httpsHeadUrls_ = other.httpsHeadUrls_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.addAll(other.httpsHeadUrls_); - } - onChanged(); - } - } else { - if (!other.httpsHeadUrls_.isEmpty()) { - if (httpsHeadUrlsBuilder_.isEmpty()) { - httpsHeadUrlsBuilder_.dispose(); - httpsHeadUrlsBuilder_ = null; - httpsHeadUrls_ = other.httpsHeadUrls_; - bitField0_ = (bitField0_ & ~0x00000080); - httpsHeadUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHttpsHeadUrlsFieldBuilder() : null; - } else { - httpsHeadUrlsBuilder_.addAllMessages(other.httpsHeadUrls_); - } - } - } - if (!other.getKwaiId().isEmpty()) { - kwaiId_ = other.kwaiId_; - bitField0_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - userId_ = input.readUInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - userName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - userGender_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - userText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.parser(), - extensionRegistry); - if (headUrlsBuilder_ == null) { - ensureHeadUrlsIsMutable(); - headUrls_.add(m); - } else { - headUrlsBuilder_.addMessage(m); - } - break; - } // case 42 - case 48: { - verified_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - sUserId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl m = - input.readMessage( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.parser(), - extensionRegistry); - if (httpsHeadUrlsBuilder_ == null) { - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.add(m); - } else { - httpsHeadUrlsBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - kwaiId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private long userId_ ; - /** - * uint64 userId = 1; - * @return The userId. - */ - @java.lang.Override - public long getUserId() { - return userId_; - } - /** - * uint64 userId = 1; - * @param value The userId to set. - * @return This builder for chaining. - */ - public Builder setUserId(long value) { - - userId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * uint64 userId = 1; - * @return This builder for chaining. - */ - public Builder clearUserId() { - bitField0_ = (bitField0_ & ~0x00000001); - userId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object userName_ = ""; - /** - * string userName = 2; - * @return The userName. - */ - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string userName = 2; - * @return The bytes for userName. - */ - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string userName = 2; - * @param value The userName to set. - * @return This builder for chaining. - */ - public Builder setUserName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - userName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string userName = 2; - * @return This builder for chaining. - */ - public Builder clearUserName() { - userName_ = getDefaultInstance().getUserName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string userName = 2; - * @param value The bytes for userName to set. - * @return This builder for chaining. - */ - public Builder setUserNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - userName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object userGender_ = ""; - /** - * string userGender = 3; - * @return The userGender. - */ - public java.lang.String getUserGender() { - java.lang.Object ref = userGender_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userGender_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string userGender = 3; - * @return The bytes for userGender. - */ - public com.google.protobuf.ByteString - getUserGenderBytes() { - java.lang.Object ref = userGender_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userGender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string userGender = 3; - * @param value The userGender to set. - * @return This builder for chaining. - */ - public Builder setUserGender( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - userGender_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string userGender = 3; - * @return This builder for chaining. - */ - public Builder clearUserGender() { - userGender_ = getDefaultInstance().getUserGender(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string userGender = 3; - * @param value The bytes for userGender to set. - * @return This builder for chaining. - */ - public Builder setUserGenderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - userGender_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object userText_ = ""; - /** - * string userText = 4; - * @return The userText. - */ - public java.lang.String getUserText() { - java.lang.Object ref = userText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userText_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string userText = 4; - * @return The bytes for userText. - */ - public com.google.protobuf.ByteString - getUserTextBytes() { - java.lang.Object ref = userText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string userText = 4; - * @param value The userText to set. - * @return This builder for chaining. - */ - public Builder setUserText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - userText_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string userText = 4; - * @return This builder for chaining. - */ - public Builder clearUserText() { - userText_ = getDefaultInstance().getUserText(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string userText = 4; - * @param value The bytes for userText to set. - * @return This builder for chaining. - */ - public Builder setUserTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - userText_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.util.List headUrls_ = - java.util.Collections.emptyList(); - private void ensureHeadUrlsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - headUrls_ = new java.util.ArrayList(headUrls_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder> headUrlsBuilder_; - - /** - * repeated .PicUrl headUrls = 5; - */ - public java.util.List getHeadUrlsList() { - if (headUrlsBuilder_ == null) { - return java.util.Collections.unmodifiableList(headUrls_); - } else { - return headUrlsBuilder_.getMessageList(); - } - } - /** - * repeated .PicUrl headUrls = 5; - */ - public int getHeadUrlsCount() { - if (headUrlsBuilder_ == null) { - return headUrls_.size(); - } else { - return headUrlsBuilder_.getCount(); - } - } - /** - * repeated .PicUrl headUrls = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getHeadUrls(int index) { - if (headUrlsBuilder_ == null) { - return headUrls_.get(index); - } else { - return headUrlsBuilder_.getMessage(index); - } - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder setHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (headUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeadUrlsIsMutable(); - headUrls_.set(index, value); - onChanged(); - } else { - headUrlsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder setHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (headUrlsBuilder_ == null) { - ensureHeadUrlsIsMutable(); - headUrls_.set(index, builderForValue.build()); - onChanged(); - } else { - headUrlsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder addHeadUrls(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (headUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeadUrlsIsMutable(); - headUrls_.add(value); - onChanged(); - } else { - headUrlsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder addHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (headUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeadUrlsIsMutable(); - headUrls_.add(index, value); - onChanged(); - } else { - headUrlsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder addHeadUrls( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (headUrlsBuilder_ == null) { - ensureHeadUrlsIsMutable(); - headUrls_.add(builderForValue.build()); - onChanged(); - } else { - headUrlsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder addHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (headUrlsBuilder_ == null) { - ensureHeadUrlsIsMutable(); - headUrls_.add(index, builderForValue.build()); - onChanged(); - } else { - headUrlsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder addAllHeadUrls( - java.lang.Iterable values) { - if (headUrlsBuilder_ == null) { - ensureHeadUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headUrls_); - onChanged(); - } else { - headUrlsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder clearHeadUrls() { - if (headUrlsBuilder_ == null) { - headUrls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - headUrlsBuilder_.clear(); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public Builder removeHeadUrls(int index) { - if (headUrlsBuilder_ == null) { - ensureHeadUrlsIsMutable(); - headUrls_.remove(index); - onChanged(); - } else { - headUrlsBuilder_.remove(index); - } - return this; - } - /** - * repeated .PicUrl headUrls = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder getHeadUrlsBuilder( - int index) { - return getHeadUrlsFieldBuilder().getBuilder(index); - } - /** - * repeated .PicUrl headUrls = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getHeadUrlsOrBuilder( - int index) { - if (headUrlsBuilder_ == null) { - return headUrls_.get(index); } else { - return headUrlsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .PicUrl headUrls = 5; - */ - public java.util.List - getHeadUrlsOrBuilderList() { - if (headUrlsBuilder_ != null) { - return headUrlsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(headUrls_); - } - } - /** - * repeated .PicUrl headUrls = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder addHeadUrlsBuilder() { - return getHeadUrlsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()); - } - /** - * repeated .PicUrl headUrls = 5; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder addHeadUrlsBuilder( - int index) { - return getHeadUrlsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()); - } - /** - * repeated .PicUrl headUrls = 5; - */ - public java.util.List - getHeadUrlsBuilderList() { - return getHeadUrlsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder> - getHeadUrlsFieldBuilder() { - if (headUrlsBuilder_ == null) { - headUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder>( - headUrls_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - headUrls_ = null; - } - return headUrlsBuilder_; - } - - private boolean verified_ ; - /** - * bool verified = 6; - * @return The verified. - */ - @java.lang.Override - public boolean getVerified() { - return verified_; - } - /** - * bool verified = 6; - * @param value The verified to set. - * @return This builder for chaining. - */ - public Builder setVerified(boolean value) { - - verified_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * bool verified = 6; - * @return This builder for chaining. - */ - public Builder clearVerified() { - bitField0_ = (bitField0_ & ~0x00000020); - verified_ = false; - onChanged(); - return this; - } - - private java.lang.Object sUserId_ = ""; - /** - * string sUserId = 7; - * @return The sUserId. - */ - public java.lang.String getSUserId() { - java.lang.Object ref = sUserId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sUserId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sUserId = 7; - * @return The bytes for sUserId. - */ - public com.google.protobuf.ByteString - getSUserIdBytes() { - java.lang.Object ref = sUserId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sUserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sUserId = 7; - * @param value The sUserId to set. - * @return This builder for chaining. - */ - public Builder setSUserId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - sUserId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * string sUserId = 7; - * @return This builder for chaining. - */ - public Builder clearSUserId() { - sUserId_ = getDefaultInstance().getSUserId(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * string sUserId = 7; - * @param value The bytes for sUserId to set. - * @return This builder for chaining. - */ - public Builder setSUserIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - sUserId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.util.List httpsHeadUrls_ = - java.util.Collections.emptyList(); - private void ensureHttpsHeadUrlsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - httpsHeadUrls_ = new java.util.ArrayList(httpsHeadUrls_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder> httpsHeadUrlsBuilder_; - - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public java.util.List getHttpsHeadUrlsList() { - if (httpsHeadUrlsBuilder_ == null) { - return java.util.Collections.unmodifiableList(httpsHeadUrls_); - } else { - return httpsHeadUrlsBuilder_.getMessageList(); - } - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public int getHttpsHeadUrlsCount() { - if (httpsHeadUrlsBuilder_ == null) { - return httpsHeadUrls_.size(); - } else { - return httpsHeadUrlsBuilder_.getCount(); - } - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl getHttpsHeadUrls(int index) { - if (httpsHeadUrlsBuilder_ == null) { - return httpsHeadUrls_.get(index); - } else { - return httpsHeadUrlsBuilder_.getMessage(index); - } - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder setHttpsHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (httpsHeadUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.set(index, value); - onChanged(); - } else { - httpsHeadUrlsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder setHttpsHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (httpsHeadUrlsBuilder_ == null) { - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.set(index, builderForValue.build()); - onChanged(); - } else { - httpsHeadUrlsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder addHttpsHeadUrls(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (httpsHeadUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.add(value); - onChanged(); - } else { - httpsHeadUrlsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder addHttpsHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl value) { - if (httpsHeadUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.add(index, value); - onChanged(); - } else { - httpsHeadUrlsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder addHttpsHeadUrls( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (httpsHeadUrlsBuilder_ == null) { - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.add(builderForValue.build()); - onChanged(); - } else { - httpsHeadUrlsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder addHttpsHeadUrls( - int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder builderForValue) { - if (httpsHeadUrlsBuilder_ == null) { - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.add(index, builderForValue.build()); - onChanged(); - } else { - httpsHeadUrlsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder addAllHttpsHeadUrls( - java.lang.Iterable values) { - if (httpsHeadUrlsBuilder_ == null) { - ensureHttpsHeadUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, httpsHeadUrls_); - onChanged(); - } else { - httpsHeadUrlsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder clearHttpsHeadUrls() { - if (httpsHeadUrlsBuilder_ == null) { - httpsHeadUrls_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - httpsHeadUrlsBuilder_.clear(); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public Builder removeHttpsHeadUrls(int index) { - if (httpsHeadUrlsBuilder_ == null) { - ensureHttpsHeadUrlsIsMutable(); - httpsHeadUrls_.remove(index); - onChanged(); - } else { - httpsHeadUrlsBuilder_.remove(index); - } - return this; - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder getHttpsHeadUrlsBuilder( - int index) { - return getHttpsHeadUrlsFieldBuilder().getBuilder(index); - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder getHttpsHeadUrlsOrBuilder( - int index) { - if (httpsHeadUrlsBuilder_ == null) { - return httpsHeadUrls_.get(index); } else { - return httpsHeadUrlsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public java.util.List - getHttpsHeadUrlsOrBuilderList() { - if (httpsHeadUrlsBuilder_ != null) { - return httpsHeadUrlsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(httpsHeadUrls_); - } - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder addHttpsHeadUrlsBuilder() { - return getHttpsHeadUrlsFieldBuilder().addBuilder( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()); - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder addHttpsHeadUrlsBuilder( - int index) { - return getHttpsHeadUrlsFieldBuilder().addBuilder( - index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.getDefaultInstance()); - } - /** - * repeated .PicUrl httpsHeadUrls = 8; - */ - public java.util.List - getHttpsHeadUrlsBuilderList() { - return getHttpsHeadUrlsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder> - getHttpsHeadUrlsFieldBuilder() { - if (httpsHeadUrlsBuilder_ == null) { - httpsHeadUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrl.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.PicUrlOrBuilder>( - httpsHeadUrls_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - httpsHeadUrls_ = null; - } - return httpsHeadUrlsBuilder_; - } - - private java.lang.Object kwaiId_ = ""; - /** - * string kwaiId = 9; - * @return The kwaiId. - */ - public java.lang.String getKwaiId() { - java.lang.Object ref = kwaiId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kwaiId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string kwaiId = 9; - * @return The bytes for kwaiId. - */ - public com.google.protobuf.ByteString - getKwaiIdBytes() { - java.lang.Object ref = kwaiId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kwaiId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string kwaiId = 9; - * @param value The kwaiId to set. - * @return This builder for chaining. - */ - public Builder setKwaiId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - kwaiId_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * string kwaiId = 9; - * @return This builder for chaining. - */ - public Builder clearKwaiId() { - kwaiId_ = getDefaultInstance().getKwaiId(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * string kwaiId = 9; - * @param value The bytes for kwaiId to set. - * @return This builder for chaining. - */ - public Builder setKwaiIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - kwaiId_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:UserInfo) - } - - // @@protoc_insertion_point(class_scope:UserInfo) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.UserInfoOuterClass.UserInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_UserInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_UserInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016UserInfo.proto\032\014PicUrl.proto\"\300\001\n\010UserI" + - "nfo\022\016\n\006userId\030\001 \001(\004\022\020\n\010userName\030\002 \001(\t\022\022\n" + - "\nuserGender\030\003 \001(\t\022\020\n\010userText\030\004 \001(\t\022\031\n\010h" + - "eadUrls\030\005 \003(\0132\007.PicUrl\022\020\n\010verified\030\006 \001(\010" + - "\022\017\n\007sUserId\030\007 \001(\t\022\036\n\rhttpsHeadUrls\030\010 \003(\013" + - "2\007.PicUrl\022\016\n\006kwaiId\030\t \001(\tB6\n4tech.ordina" + - "ryroad.live.chat.client.kuaishou.protobu" + - "fb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.getDescriptor(), - }); - internal_static_UserInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_UserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_UserInfo_descriptor, - new java.lang.String[] { "UserId", "UserName", "UserGender", "UserText", "HeadUrls", "Verified", "SUserId", "HttpsHeadUrls", "KwaiId", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PicUrlOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebComboCommentFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebComboCommentFeedOuterClass.java deleted file mode 100644 index 49a905a6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebComboCommentFeedOuterClass.java +++ /dev/null @@ -1,846 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebComboCommentFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebComboCommentFeedOuterClass { - private WebComboCommentFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebComboCommentFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebComboCommentFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string content = 2; - * @return The content. - */ - java.lang.String getContent(); - /** - * string content = 2; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); - - /** - * uint32 comboCount = 3; - * @return The comboCount. - */ - int getComboCount(); - } - /** - * Protobuf type {@code WebComboCommentFeed} - */ - public static final class WebComboCommentFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebComboCommentFeed) - WebComboCommentFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebComboCommentFeed.newBuilder() to construct. - private WebComboCommentFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebComboCommentFeed() { - id_ = ""; - content_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebComboCommentFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.internal_static_WebComboCommentFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.internal_static_WebComboCommentFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * string content = 2; - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } - } - /** - * string content = 2; - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMBOCOUNT_FIELD_NUMBER = 3; - private int comboCount_ = 0; - /** - * uint32 comboCount = 3; - * @return The comboCount. - */ - @java.lang.Override - public int getComboCount() { - return comboCount_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); - } - if (comboCount_ != 0) { - output.writeUInt32(3, comboCount_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); - } - if (comboCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, comboCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getContent() - .equals(other.getContent())) return false; - if (getComboCount() - != other.getComboCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + COMBOCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getComboCount(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebComboCommentFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebComboCommentFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.internal_static_WebComboCommentFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.internal_static_WebComboCommentFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - content_ = ""; - comboCount_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.internal_static_WebComboCommentFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.content_ = content_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.comboCount_ = comboCount_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getComboCount() != 0) { - setComboCount(other.getComboCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - comboCount_ = input.readUInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object content_ = ""; - /** - * string content = 2; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 2; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 2; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string content = 2; - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string content = 2; - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int comboCount_ ; - /** - * uint32 comboCount = 3; - * @return The comboCount. - */ - @java.lang.Override - public int getComboCount() { - return comboCount_; - } - /** - * uint32 comboCount = 3; - * @param value The comboCount to set. - * @return This builder for chaining. - */ - public Builder setComboCount(int value) { - - comboCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint32 comboCount = 3; - * @return This builder for chaining. - */ - public Builder clearComboCount() { - bitField0_ = (bitField0_ & ~0x00000004); - comboCount_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebComboCommentFeed) - } - - // @@protoc_insertion_point(class_scope:WebComboCommentFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebComboCommentFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebComboCommentFeedOuterClass.WebComboCommentFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebComboCommentFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebComboCommentFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031WebComboCommentFeed.proto\"F\n\023WebComboC" + - "ommentFeed\022\n\n\002id\030\001 \001(\t\022\017\n\007content\030\002 \001(\t\022" + - "\022\n\ncomboCount\030\003 \001(\rB6\n4tech.ordinaryroad" + - ".live.chat.client.kuaishou.protobufb\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_WebComboCommentFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebComboCommentFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebComboCommentFeed_descriptor, - new java.lang.String[] { "Id", "Content", "ComboCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebCommentFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebCommentFeedOuterClass.java deleted file mode 100644 index efa98705..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebCommentFeedOuterClass.java +++ /dev/null @@ -1,1651 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebCommentFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebCommentFeedOuterClass { - private WebCommentFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebCommentFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebCommentFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser(); - /** - * .SimpleUserInfo user = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder(); - - /** - * string content = 3; - * @return The content. - */ - java.lang.String getContent(); - /** - * string content = 3; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); - - /** - * string deviceHash = 4; - * @return The deviceHash. - */ - java.lang.String getDeviceHash(); - /** - * string deviceHash = 4; - * @return The bytes for deviceHash. - */ - com.google.protobuf.ByteString - getDeviceHashBytes(); - - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - long getSortRank(); - - /** - * string color = 6; - * @return The color. - */ - java.lang.String getColor(); - /** - * string color = 6; - * @return The bytes for color. - */ - com.google.protobuf.ByteString - getColorBytes(); - - /** - * .WebCommentFeedShowType showType = 7; - * @return The enum numeric value on the wire for showType. - */ - int getShowTypeValue(); - /** - * .WebCommentFeedShowType showType = 7; - * @return The showType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType getShowType(); - - /** - * .LiveAudienceState senderState = 8; - * @return Whether the senderState field is set. - */ - boolean hasSenderState(); - /** - * .LiveAudienceState senderState = 8; - * @return The senderState. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState getSenderState(); - /** - * .LiveAudienceState senderState = 8; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder getSenderStateOrBuilder(); - } - /** - * Protobuf type {@code WebCommentFeed} - */ - public static final class WebCommentFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebCommentFeed) - WebCommentFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebCommentFeed.newBuilder() to construct. - private WebCommentFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebCommentFeed() { - id_ = ""; - content_ = ""; - deviceHash_ = ""; - color_ = ""; - showType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebCommentFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.internal_static_WebCommentFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.internal_static_WebCommentFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - /** - * .SimpleUserInfo user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - - public static final int CONTENT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * string content = 3; - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } - } - /** - * string content = 3; - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEVICEHASH_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 4; - * @return The deviceHash. - */ - @java.lang.Override - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } - } - /** - * string deviceHash = 4; - * @return The bytes for deviceHash. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORTRANK_FIELD_NUMBER = 5; - private long sortRank_ = 0L; - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - - public static final int COLOR_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object color_ = ""; - /** - * string color = 6; - * @return The color. - */ - @java.lang.Override - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - color_ = s; - return s; - } - } - /** - * string color = 6; - * @return The bytes for color. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHOWTYPE_FIELD_NUMBER = 7; - private int showType_ = 0; - /** - * .WebCommentFeedShowType showType = 7; - * @return The enum numeric value on the wire for showType. - */ - @java.lang.Override public int getShowTypeValue() { - return showType_; - } - /** - * .WebCommentFeedShowType showType = 7; - * @return The showType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType getShowType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType.forNumber(showType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType.UNRECOGNIZED : result; - } - - public static final int SENDERSTATE_FIELD_NUMBER = 8; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState senderState_; - /** - * .LiveAudienceState senderState = 8; - * @return Whether the senderState field is set. - */ - @java.lang.Override - public boolean hasSenderState() { - return senderState_ != null; - } - /** - * .LiveAudienceState senderState = 8; - * @return The senderState. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState getSenderState() { - return senderState_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance() : senderState_; - } - /** - * .LiveAudienceState senderState = 8; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder getSenderStateOrBuilder() { - return senderState_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance() : senderState_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deviceHash_); - } - if (sortRank_ != 0L) { - output.writeUInt64(5, sortRank_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, color_); - } - if (showType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType.FEED_SHOW_UNKNOWN.getNumber()) { - output.writeEnum(7, showType_); - } - if (senderState_ != null) { - output.writeMessage(8, getSenderState()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deviceHash_); - } - if (sortRank_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, sortRank_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, color_); - } - if (showType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType.FEED_SHOW_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, showType_); - } - if (senderState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSenderState()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (!getContent() - .equals(other.getContent())) return false; - if (!getDeviceHash() - .equals(other.getDeviceHash())) return false; - if (getSortRank() - != other.getSortRank()) return false; - if (!getColor() - .equals(other.getColor())) return false; - if (showType_ != other.showType_) return false; - if (hasSenderState() != other.hasSenderState()) return false; - if (hasSenderState()) { - if (!getSenderState() - .equals(other.getSenderState())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + DEVICEHASH_FIELD_NUMBER; - hash = (53 * hash) + getDeviceHash().hashCode(); - hash = (37 * hash) + SORTRANK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSortRank()); - hash = (37 * hash) + COLOR_FIELD_NUMBER; - hash = (53 * hash) + getColor().hashCode(); - hash = (37 * hash) + SHOWTYPE_FIELD_NUMBER; - hash = (53 * hash) + showType_; - if (hasSenderState()) { - hash = (37 * hash) + SENDERSTATE_FIELD_NUMBER; - hash = (53 * hash) + getSenderState().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebCommentFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebCommentFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.internal_static_WebCommentFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.internal_static_WebCommentFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - content_ = ""; - deviceHash_ = ""; - sortRank_ = 0L; - color_ = ""; - showType_ = 0; - senderState_ = null; - if (senderStateBuilder_ != null) { - senderStateBuilder_.dispose(); - senderStateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.internal_static_WebCommentFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.content_ = content_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.deviceHash_ = deviceHash_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sortRank_ = sortRank_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.color_ = color_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.showType_ = showType_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.senderState_ = senderStateBuilder_ == null - ? senderState_ - : senderStateBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDeviceHash().isEmpty()) { - deviceHash_ = other.deviceHash_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getSortRank() != 0L) { - setSortRank(other.getSortRank()); - } - if (!other.getColor().isEmpty()) { - color_ = other.color_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.showType_ != 0) { - setShowTypeValue(other.getShowTypeValue()); - } - if (other.hasSenderState()) { - mergeSenderState(other.getSenderState()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - deviceHash_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - sortRank_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - color_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - showType_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - input.readMessage( - getSenderStateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> userBuilder_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - } - /** - * .SimpleUserInfo user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private java.lang.Object content_ = ""; - /** - * string content = 3; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 3; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 3; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * string content = 3; - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * string content = 3; - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 4; - * @return The deviceHash. - */ - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deviceHash = 4; - * @return The bytes for deviceHash. - */ - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deviceHash = 4; - * @param value The deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHash( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - deviceHash_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string deviceHash = 4; - * @return This builder for chaining. - */ - public Builder clearDeviceHash() { - deviceHash_ = getDefaultInstance().getDeviceHash(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string deviceHash = 4; - * @param value The bytes for deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - deviceHash_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private long sortRank_ ; - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - /** - * uint64 sortRank = 5; - * @param value The sortRank to set. - * @return This builder for chaining. - */ - public Builder setSortRank(long value) { - - sortRank_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 sortRank = 5; - * @return This builder for chaining. - */ - public Builder clearSortRank() { - bitField0_ = (bitField0_ & ~0x00000010); - sortRank_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object color_ = ""; - /** - * string color = 6; - * @return The color. - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - color_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string color = 6; - * @return The bytes for color. - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string color = 6; - * @param value The color to set. - * @return This builder for chaining. - */ - public Builder setColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - color_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string color = 6; - * @return This builder for chaining. - */ - public Builder clearColor() { - color_ = getDefaultInstance().getColor(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string color = 6; - * @param value The bytes for color to set. - * @return This builder for chaining. - */ - public Builder setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - color_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private int showType_ = 0; - /** - * .WebCommentFeedShowType showType = 7; - * @return The enum numeric value on the wire for showType. - */ - @java.lang.Override public int getShowTypeValue() { - return showType_; - } - /** - * .WebCommentFeedShowType showType = 7; - * @param value The enum numeric value on the wire for showType to set. - * @return This builder for chaining. - */ - public Builder setShowTypeValue(int value) { - showType_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .WebCommentFeedShowType showType = 7; - * @return The showType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType getShowType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType.forNumber(showType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType.UNRECOGNIZED : result; - } - /** - * .WebCommentFeedShowType showType = 7; - * @param value The showType to set. - * @return This builder for chaining. - */ - public Builder setShowType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.WebCommentFeedShowType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - showType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebCommentFeedShowType showType = 7; - * @return This builder for chaining. - */ - public Builder clearShowType() { - bitField0_ = (bitField0_ & ~0x00000040); - showType_ = 0; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState senderState_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder> senderStateBuilder_; - /** - * .LiveAudienceState senderState = 8; - * @return Whether the senderState field is set. - */ - public boolean hasSenderState() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * .LiveAudienceState senderState = 8; - * @return The senderState. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState getSenderState() { - if (senderStateBuilder_ == null) { - return senderState_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance() : senderState_; - } else { - return senderStateBuilder_.getMessage(); - } - } - /** - * .LiveAudienceState senderState = 8; - */ - public Builder setSenderState(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState value) { - if (senderStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - senderState_ = value; - } else { - senderStateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .LiveAudienceState senderState = 8; - */ - public Builder setSenderState( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder builderForValue) { - if (senderStateBuilder_ == null) { - senderState_ = builderForValue.build(); - } else { - senderStateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .LiveAudienceState senderState = 8; - */ - public Builder mergeSenderState(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState value) { - if (senderStateBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - senderState_ != null && - senderState_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance()) { - getSenderStateBuilder().mergeFrom(value); - } else { - senderState_ = value; - } - } else { - senderStateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * .LiveAudienceState senderState = 8; - */ - public Builder clearSenderState() { - bitField0_ = (bitField0_ & ~0x00000080); - senderState_ = null; - if (senderStateBuilder_ != null) { - senderStateBuilder_.dispose(); - senderStateBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .LiveAudienceState senderState = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder getSenderStateBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getSenderStateFieldBuilder().getBuilder(); - } - /** - * .LiveAudienceState senderState = 8; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder getSenderStateOrBuilder() { - if (senderStateBuilder_ != null) { - return senderStateBuilder_.getMessageOrBuilder(); - } else { - return senderState_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.getDefaultInstance() : senderState_; - } - } - /** - * .LiveAudienceState senderState = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder> - getSenderStateFieldBuilder() { - if (senderStateBuilder_ == null) { - senderStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceState.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.LiveAudienceStateOrBuilder>( - getSenderState(), - getParentForChildren(), - isClean()); - senderState_ = null; - } - return senderStateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebCommentFeed) - } - - // @@protoc_insertion_point(class_scope:WebCommentFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebCommentFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedOuterClass.WebCommentFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebCommentFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebCommentFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024WebCommentFeed.proto\032\024SimpleUserInfo.p" + - "roto\032\034WebCommentFeedShowType.proto\032\027Live" + - "AudienceState.proto\"\325\001\n\016WebCommentFeed\022\n" + - "\n\002id\030\001 \001(\t\022\035\n\004user\030\002 \001(\0132\017.SimpleUserInf" + - "o\022\017\n\007content\030\003 \001(\t\022\022\n\ndeviceHash\030\004 \001(\t\022\020" + - "\n\010sortRank\030\005 \001(\004\022\r\n\005color\030\006 \001(\t\022)\n\010showT" + - "ype\030\007 \001(\0162\027.WebCommentFeedShowType\022\'\n\013se" + - "nderState\030\010 \001(\0132\022.LiveAudienceStateB6\n4t" + - "ech.ordinaryroad.live.chat.client.kuaish" + - "ou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.getDescriptor(), - }); - internal_static_WebCommentFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebCommentFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebCommentFeed_descriptor, - new java.lang.String[] { "Id", "User", "Content", "DeviceHash", "SortRank", "Color", "ShowType", "SenderState", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.LiveAudienceStateOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebCommentFeedShowTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebCommentFeedShowTypeOuterClass.java deleted file mode 100644 index 74cc9385..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebCommentFeedShowTypeOuterClass.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebCommentFeedShowType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebCommentFeedShowTypeOuterClass { - private WebCommentFeedShowTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code WebCommentFeedShowType} - */ - public enum WebCommentFeedShowType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FEED_SHOW_UNKNOWN = 0; - */ - FEED_SHOW_UNKNOWN(0), - /** - * FEED_SHOW_NORMAL = 1; - */ - FEED_SHOW_NORMAL(1), - /** - * FEED_HIDDEN = 2; - */ - FEED_HIDDEN(2), - UNRECOGNIZED(-1), - ; - - /** - * FEED_SHOW_UNKNOWN = 0; - */ - public static final int FEED_SHOW_UNKNOWN_VALUE = 0; - /** - * FEED_SHOW_NORMAL = 1; - */ - public static final int FEED_SHOW_NORMAL_VALUE = 1; - /** - * FEED_HIDDEN = 2; - */ - public static final int FEED_HIDDEN_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WebCommentFeedShowType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WebCommentFeedShowType forNumber(int value) { - switch (value) { - case 0: return FEED_SHOW_UNKNOWN; - case 1: return FEED_SHOW_NORMAL; - case 2: return FEED_HIDDEN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - WebCommentFeedShowType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WebCommentFeedShowType findValueByNumber(int number) { - return WebCommentFeedShowType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebCommentFeedShowTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final WebCommentFeedShowType[] VALUES = values(); - - public static WebCommentFeedShowType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private WebCommentFeedShowType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebCommentFeedShowType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034WebCommentFeedShowType.proto*V\n\026WebCom" + - "mentFeedShowType\022\025\n\021FEED_SHOW_UNKNOWN\020\000\022" + - "\024\n\020FEED_SHOW_NORMAL\020\001\022\017\n\013FEED_HIDDEN\020\002B6" + - "\n4tech.ordinaryroad.live.chat.client.kua" + - "ishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebGiftFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebGiftFeedOuterClass.java deleted file mode 100644 index 4e94afd5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebGiftFeedOuterClass.java +++ /dev/null @@ -1,2305 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebGiftFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebGiftFeedOuterClass { - private WebGiftFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebGiftFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebGiftFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser(); - /** - * .SimpleUserInfo user = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder(); - - /** - * uint64 time = 3; - * @return The time. - */ - long getTime(); - - /** - * uint32 intGiftId = 4; - * @return The intGiftId. - */ - int getIntGiftId(); - - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - long getSortRank(); - - /** - * string mergeKey = 6; - * @return The mergeKey. - */ - java.lang.String getMergeKey(); - /** - * string mergeKey = 6; - * @return The bytes for mergeKey. - */ - com.google.protobuf.ByteString - getMergeKeyBytes(); - - /** - * uint32 batchSize = 7; - * @return The batchSize. - */ - int getBatchSize(); - - /** - * uint32 comboCount = 8; - * @return The comboCount. - */ - int getComboCount(); - - /** - * uint32 rank = 9; - * @return The rank. - */ - int getRank(); - - /** - * uint64 expireDuration = 10; - * @return The expireDuration. - */ - long getExpireDuration(); - - /** - * uint64 clientTimestamp = 11; - * @return The clientTimestamp. - */ - long getClientTimestamp(); - - /** - * uint64 slotDisplayDuration = 12; - * @return The slotDisplayDuration. - */ - long getSlotDisplayDuration(); - - /** - * uint32 starLevel = 13; - * @return The starLevel. - */ - int getStarLevel(); - - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return The enum numeric value on the wire for styleType. - */ - int getStyleTypeValue(); - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return The styleType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType getStyleType(); - - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return The enum numeric value on the wire for liveAssistantType. - */ - int getLiveAssistantTypeValue(); - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return The liveAssistantType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType(); - - /** - * string deviceHash = 16; - * @return The deviceHash. - */ - java.lang.String getDeviceHash(); - /** - * string deviceHash = 16; - * @return The bytes for deviceHash. - */ - com.google.protobuf.ByteString - getDeviceHashBytes(); - - /** - * bool danmakuDisplay = 17; - * @return The danmakuDisplay. - */ - boolean getDanmakuDisplay(); - } - /** - * Protobuf type {@code WebGiftFeed} - */ - public static final class WebGiftFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebGiftFeed) - WebGiftFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebGiftFeed.newBuilder() to construct. - private WebGiftFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebGiftFeed() { - id_ = ""; - mergeKey_ = ""; - styleType_ = 0; - liveAssistantType_ = 0; - deviceHash_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebGiftFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.internal_static_WebGiftFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.internal_static_WebGiftFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder.class); - } - - /** - * Protobuf enum {@code WebGiftFeed.StyleType} - */ - public enum StyleType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_STYLE = 0; - */ - UNKNOWN_STYLE(0), - /** - * BATCH_STAR_0 = 1; - */ - BATCH_STAR_0(1), - /** - * BATCH_STAR_1 = 2; - */ - BATCH_STAR_1(2), - /** - * BATCH_STAR_2 = 3; - */ - BATCH_STAR_2(3), - /** - * BATCH_STAR_3 = 4; - */ - BATCH_STAR_3(4), - /** - * BATCH_STAR_4 = 5; - */ - BATCH_STAR_4(5), - /** - * BATCH_STAR_5 = 6; - */ - BATCH_STAR_5(6), - /** - * BATCH_STAR_6 = 7; - */ - BATCH_STAR_6(7), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_STYLE = 0; - */ - public static final int UNKNOWN_STYLE_VALUE = 0; - /** - * BATCH_STAR_0 = 1; - */ - public static final int BATCH_STAR_0_VALUE = 1; - /** - * BATCH_STAR_1 = 2; - */ - public static final int BATCH_STAR_1_VALUE = 2; - /** - * BATCH_STAR_2 = 3; - */ - public static final int BATCH_STAR_2_VALUE = 3; - /** - * BATCH_STAR_3 = 4; - */ - public static final int BATCH_STAR_3_VALUE = 4; - /** - * BATCH_STAR_4 = 5; - */ - public static final int BATCH_STAR_4_VALUE = 5; - /** - * BATCH_STAR_5 = 6; - */ - public static final int BATCH_STAR_5_VALUE = 6; - /** - * BATCH_STAR_6 = 7; - */ - public static final int BATCH_STAR_6_VALUE = 7; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StyleType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static StyleType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_STYLE; - case 1: return BATCH_STAR_0; - case 2: return BATCH_STAR_1; - case 3: return BATCH_STAR_2; - case 4: return BATCH_STAR_3; - case 5: return BATCH_STAR_4; - case 6: return BATCH_STAR_5; - case 7: return BATCH_STAR_6; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - StyleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StyleType findValueByNumber(int number) { - return StyleType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.getDescriptor().getEnumTypes().get(0); - } - - private static final StyleType[] VALUES = values(); - - public static StyleType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private StyleType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebGiftFeed.StyleType) - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - /** - * .SimpleUserInfo user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - - public static final int TIME_FIELD_NUMBER = 3; - private long time_ = 0L; - /** - * uint64 time = 3; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int INTGIFTID_FIELD_NUMBER = 4; - private int intGiftId_ = 0; - /** - * uint32 intGiftId = 4; - * @return The intGiftId. - */ - @java.lang.Override - public int getIntGiftId() { - return intGiftId_; - } - - public static final int SORTRANK_FIELD_NUMBER = 5; - private long sortRank_ = 0L; - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - - public static final int MERGEKEY_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object mergeKey_ = ""; - /** - * string mergeKey = 6; - * @return The mergeKey. - */ - @java.lang.Override - public java.lang.String getMergeKey() { - java.lang.Object ref = mergeKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mergeKey_ = s; - return s; - } - } - /** - * string mergeKey = 6; - * @return The bytes for mergeKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMergeKeyBytes() { - java.lang.Object ref = mergeKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mergeKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BATCHSIZE_FIELD_NUMBER = 7; - private int batchSize_ = 0; - /** - * uint32 batchSize = 7; - * @return The batchSize. - */ - @java.lang.Override - public int getBatchSize() { - return batchSize_; - } - - public static final int COMBOCOUNT_FIELD_NUMBER = 8; - private int comboCount_ = 0; - /** - * uint32 comboCount = 8; - * @return The comboCount. - */ - @java.lang.Override - public int getComboCount() { - return comboCount_; - } - - public static final int RANK_FIELD_NUMBER = 9; - private int rank_ = 0; - /** - * uint32 rank = 9; - * @return The rank. - */ - @java.lang.Override - public int getRank() { - return rank_; - } - - public static final int EXPIREDURATION_FIELD_NUMBER = 10; - private long expireDuration_ = 0L; - /** - * uint64 expireDuration = 10; - * @return The expireDuration. - */ - @java.lang.Override - public long getExpireDuration() { - return expireDuration_; - } - - public static final int CLIENTTIMESTAMP_FIELD_NUMBER = 11; - private long clientTimestamp_ = 0L; - /** - * uint64 clientTimestamp = 11; - * @return The clientTimestamp. - */ - @java.lang.Override - public long getClientTimestamp() { - return clientTimestamp_; - } - - public static final int SLOTDISPLAYDURATION_FIELD_NUMBER = 12; - private long slotDisplayDuration_ = 0L; - /** - * uint64 slotDisplayDuration = 12; - * @return The slotDisplayDuration. - */ - @java.lang.Override - public long getSlotDisplayDuration() { - return slotDisplayDuration_; - } - - public static final int STARLEVEL_FIELD_NUMBER = 13; - private int starLevel_ = 0; - /** - * uint32 starLevel = 13; - * @return The starLevel. - */ - @java.lang.Override - public int getStarLevel() { - return starLevel_; - } - - public static final int STYLETYPE_FIELD_NUMBER = 14; - private int styleType_ = 0; - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return The enum numeric value on the wire for styleType. - */ - @java.lang.Override public int getStyleTypeValue() { - return styleType_; - } - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return The styleType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType getStyleType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType.forNumber(styleType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType.UNRECOGNIZED : result; - } - - public static final int LIVEASSISTANTTYPE_FIELD_NUMBER = 15; - private int liveAssistantType_ = 0; - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return The enum numeric value on the wire for liveAssistantType. - */ - @java.lang.Override public int getLiveAssistantTypeValue() { - return liveAssistantType_; - } - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return The liveAssistantType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.forNumber(liveAssistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNRECOGNIZED : result; - } - - public static final int DEVICEHASH_FIELD_NUMBER = 16; - @SuppressWarnings("serial") - private volatile java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 16; - * @return The deviceHash. - */ - @java.lang.Override - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } - } - /** - * string deviceHash = 16; - * @return The bytes for deviceHash. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DANMAKUDISPLAY_FIELD_NUMBER = 17; - private boolean danmakuDisplay_ = false; - /** - * bool danmakuDisplay = 17; - * @return The danmakuDisplay. - */ - @java.lang.Override - public boolean getDanmakuDisplay() { - return danmakuDisplay_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (time_ != 0L) { - output.writeUInt64(3, time_); - } - if (intGiftId_ != 0) { - output.writeUInt32(4, intGiftId_); - } - if (sortRank_ != 0L) { - output.writeUInt64(5, sortRank_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergeKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mergeKey_); - } - if (batchSize_ != 0) { - output.writeUInt32(7, batchSize_); - } - if (comboCount_ != 0) { - output.writeUInt32(8, comboCount_); - } - if (rank_ != 0) { - output.writeUInt32(9, rank_); - } - if (expireDuration_ != 0L) { - output.writeUInt64(10, expireDuration_); - } - if (clientTimestamp_ != 0L) { - output.writeUInt64(11, clientTimestamp_); - } - if (slotDisplayDuration_ != 0L) { - output.writeUInt64(12, slotDisplayDuration_); - } - if (starLevel_ != 0) { - output.writeUInt32(13, starLevel_); - } - if (styleType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType.UNKNOWN_STYLE.getNumber()) { - output.writeEnum(14, styleType_); - } - if (liveAssistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - output.writeEnum(15, liveAssistantType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, deviceHash_); - } - if (danmakuDisplay_ != false) { - output.writeBool(17, danmakuDisplay_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, time_); - } - if (intGiftId_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, intGiftId_); - } - if (sortRank_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, sortRank_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergeKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mergeKey_); - } - if (batchSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, batchSize_); - } - if (comboCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, comboCount_); - } - if (rank_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, rank_); - } - if (expireDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, expireDuration_); - } - if (clientTimestamp_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(11, clientTimestamp_); - } - if (slotDisplayDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(12, slotDisplayDuration_); - } - if (starLevel_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(13, starLevel_); - } - if (styleType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType.UNKNOWN_STYLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, styleType_); - } - if (liveAssistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, liveAssistantType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, deviceHash_); - } - if (danmakuDisplay_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, danmakuDisplay_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getTime() - != other.getTime()) return false; - if (getIntGiftId() - != other.getIntGiftId()) return false; - if (getSortRank() - != other.getSortRank()) return false; - if (!getMergeKey() - .equals(other.getMergeKey())) return false; - if (getBatchSize() - != other.getBatchSize()) return false; - if (getComboCount() - != other.getComboCount()) return false; - if (getRank() - != other.getRank()) return false; - if (getExpireDuration() - != other.getExpireDuration()) return false; - if (getClientTimestamp() - != other.getClientTimestamp()) return false; - if (getSlotDisplayDuration() - != other.getSlotDisplayDuration()) return false; - if (getStarLevel() - != other.getStarLevel()) return false; - if (styleType_ != other.styleType_) return false; - if (liveAssistantType_ != other.liveAssistantType_) return false; - if (!getDeviceHash() - .equals(other.getDeviceHash())) return false; - if (getDanmakuDisplay() - != other.getDanmakuDisplay()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + INTGIFTID_FIELD_NUMBER; - hash = (53 * hash) + getIntGiftId(); - hash = (37 * hash) + SORTRANK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSortRank()); - hash = (37 * hash) + MERGEKEY_FIELD_NUMBER; - hash = (53 * hash) + getMergeKey().hashCode(); - hash = (37 * hash) + BATCHSIZE_FIELD_NUMBER; - hash = (53 * hash) + getBatchSize(); - hash = (37 * hash) + COMBOCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getComboCount(); - hash = (37 * hash) + RANK_FIELD_NUMBER; - hash = (53 * hash) + getRank(); - hash = (37 * hash) + EXPIREDURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExpireDuration()); - hash = (37 * hash) + CLIENTTIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClientTimestamp()); - hash = (37 * hash) + SLOTDISPLAYDURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSlotDisplayDuration()); - hash = (37 * hash) + STARLEVEL_FIELD_NUMBER; - hash = (53 * hash) + getStarLevel(); - hash = (37 * hash) + STYLETYPE_FIELD_NUMBER; - hash = (53 * hash) + styleType_; - hash = (37 * hash) + LIVEASSISTANTTYPE_FIELD_NUMBER; - hash = (53 * hash) + liveAssistantType_; - hash = (37 * hash) + DEVICEHASH_FIELD_NUMBER; - hash = (53 * hash) + getDeviceHash().hashCode(); - hash = (37 * hash) + DANMAKUDISPLAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDanmakuDisplay()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebGiftFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebGiftFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.internal_static_WebGiftFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.internal_static_WebGiftFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - time_ = 0L; - intGiftId_ = 0; - sortRank_ = 0L; - mergeKey_ = ""; - batchSize_ = 0; - comboCount_ = 0; - rank_ = 0; - expireDuration_ = 0L; - clientTimestamp_ = 0L; - slotDisplayDuration_ = 0L; - starLevel_ = 0; - styleType_ = 0; - liveAssistantType_ = 0; - deviceHash_ = ""; - danmakuDisplay_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.internal_static_WebGiftFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.intGiftId_ = intGiftId_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sortRank_ = sortRank_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.mergeKey_ = mergeKey_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.batchSize_ = batchSize_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.comboCount_ = comboCount_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.rank_ = rank_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.expireDuration_ = expireDuration_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.clientTimestamp_ = clientTimestamp_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.slotDisplayDuration_ = slotDisplayDuration_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.starLevel_ = starLevel_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.styleType_ = styleType_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.liveAssistantType_ = liveAssistantType_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.deviceHash_ = deviceHash_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.danmakuDisplay_ = danmakuDisplay_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (other.getIntGiftId() != 0) { - setIntGiftId(other.getIntGiftId()); - } - if (other.getSortRank() != 0L) { - setSortRank(other.getSortRank()); - } - if (!other.getMergeKey().isEmpty()) { - mergeKey_ = other.mergeKey_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.getBatchSize() != 0) { - setBatchSize(other.getBatchSize()); - } - if (other.getComboCount() != 0) { - setComboCount(other.getComboCount()); - } - if (other.getRank() != 0) { - setRank(other.getRank()); - } - if (other.getExpireDuration() != 0L) { - setExpireDuration(other.getExpireDuration()); - } - if (other.getClientTimestamp() != 0L) { - setClientTimestamp(other.getClientTimestamp()); - } - if (other.getSlotDisplayDuration() != 0L) { - setSlotDisplayDuration(other.getSlotDisplayDuration()); - } - if (other.getStarLevel() != 0) { - setStarLevel(other.getStarLevel()); - } - if (other.styleType_ != 0) { - setStyleTypeValue(other.getStyleTypeValue()); - } - if (other.liveAssistantType_ != 0) { - setLiveAssistantTypeValue(other.getLiveAssistantTypeValue()); - } - if (!other.getDeviceHash().isEmpty()) { - deviceHash_ = other.deviceHash_; - bitField0_ |= 0x00008000; - onChanged(); - } - if (other.getDanmakuDisplay() != false) { - setDanmakuDisplay(other.getDanmakuDisplay()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - intGiftId_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - sortRank_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - mergeKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - batchSize_ = input.readUInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - comboCount_ = input.readUInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - rank_ = input.readUInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - expireDuration_ = input.readUInt64(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 88: { - clientTimestamp_ = input.readUInt64(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - slotDisplayDuration_ = input.readUInt64(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 104: { - starLevel_ = input.readUInt32(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 112: { - styleType_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 112 - case 120: { - liveAssistantType_ = input.readEnum(); - bitField0_ |= 0x00004000; - break; - } // case 120 - case 130: { - deviceHash_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 136: { - danmakuDisplay_ = input.readBool(); - bitField0_ |= 0x00010000; - break; - } // case 136 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> userBuilder_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - } - /** - * .SimpleUserInfo user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private long time_ ; - /** - * uint64 time = 3; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 3; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 time = 3; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000004); - time_ = 0L; - onChanged(); - return this; - } - - private int intGiftId_ ; - /** - * uint32 intGiftId = 4; - * @return The intGiftId. - */ - @java.lang.Override - public int getIntGiftId() { - return intGiftId_; - } - /** - * uint32 intGiftId = 4; - * @param value The intGiftId to set. - * @return This builder for chaining. - */ - public Builder setIntGiftId(int value) { - - intGiftId_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 intGiftId = 4; - * @return This builder for chaining. - */ - public Builder clearIntGiftId() { - bitField0_ = (bitField0_ & ~0x00000008); - intGiftId_ = 0; - onChanged(); - return this; - } - - private long sortRank_ ; - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - /** - * uint64 sortRank = 5; - * @param value The sortRank to set. - * @return This builder for chaining. - */ - public Builder setSortRank(long value) { - - sortRank_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 sortRank = 5; - * @return This builder for chaining. - */ - public Builder clearSortRank() { - bitField0_ = (bitField0_ & ~0x00000010); - sortRank_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object mergeKey_ = ""; - /** - * string mergeKey = 6; - * @return The mergeKey. - */ - public java.lang.String getMergeKey() { - java.lang.Object ref = mergeKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mergeKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mergeKey = 6; - * @return The bytes for mergeKey. - */ - public com.google.protobuf.ByteString - getMergeKeyBytes() { - java.lang.Object ref = mergeKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mergeKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mergeKey = 6; - * @param value The mergeKey to set. - * @return This builder for chaining. - */ - public Builder setMergeKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - mergeKey_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string mergeKey = 6; - * @return This builder for chaining. - */ - public Builder clearMergeKey() { - mergeKey_ = getDefaultInstance().getMergeKey(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string mergeKey = 6; - * @param value The bytes for mergeKey to set. - * @return This builder for chaining. - */ - public Builder setMergeKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - mergeKey_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private int batchSize_ ; - /** - * uint32 batchSize = 7; - * @return The batchSize. - */ - @java.lang.Override - public int getBatchSize() { - return batchSize_; - } - /** - * uint32 batchSize = 7; - * @param value The batchSize to set. - * @return This builder for chaining. - */ - public Builder setBatchSize(int value) { - - batchSize_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * uint32 batchSize = 7; - * @return This builder for chaining. - */ - public Builder clearBatchSize() { - bitField0_ = (bitField0_ & ~0x00000040); - batchSize_ = 0; - onChanged(); - return this; - } - - private int comboCount_ ; - /** - * uint32 comboCount = 8; - * @return The comboCount. - */ - @java.lang.Override - public int getComboCount() { - return comboCount_; - } - /** - * uint32 comboCount = 8; - * @param value The comboCount to set. - * @return This builder for chaining. - */ - public Builder setComboCount(int value) { - - comboCount_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * uint32 comboCount = 8; - * @return This builder for chaining. - */ - public Builder clearComboCount() { - bitField0_ = (bitField0_ & ~0x00000080); - comboCount_ = 0; - onChanged(); - return this; - } - - private int rank_ ; - /** - * uint32 rank = 9; - * @return The rank. - */ - @java.lang.Override - public int getRank() { - return rank_; - } - /** - * uint32 rank = 9; - * @param value The rank to set. - * @return This builder for chaining. - */ - public Builder setRank(int value) { - - rank_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint32 rank = 9; - * @return This builder for chaining. - */ - public Builder clearRank() { - bitField0_ = (bitField0_ & ~0x00000100); - rank_ = 0; - onChanged(); - return this; - } - - private long expireDuration_ ; - /** - * uint64 expireDuration = 10; - * @return The expireDuration. - */ - @java.lang.Override - public long getExpireDuration() { - return expireDuration_; - } - /** - * uint64 expireDuration = 10; - * @param value The expireDuration to set. - * @return This builder for chaining. - */ - public Builder setExpireDuration(long value) { - - expireDuration_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * uint64 expireDuration = 10; - * @return This builder for chaining. - */ - public Builder clearExpireDuration() { - bitField0_ = (bitField0_ & ~0x00000200); - expireDuration_ = 0L; - onChanged(); - return this; - } - - private long clientTimestamp_ ; - /** - * uint64 clientTimestamp = 11; - * @return The clientTimestamp. - */ - @java.lang.Override - public long getClientTimestamp() { - return clientTimestamp_; - } - /** - * uint64 clientTimestamp = 11; - * @param value The clientTimestamp to set. - * @return This builder for chaining. - */ - public Builder setClientTimestamp(long value) { - - clientTimestamp_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * uint64 clientTimestamp = 11; - * @return This builder for chaining. - */ - public Builder clearClientTimestamp() { - bitField0_ = (bitField0_ & ~0x00000400); - clientTimestamp_ = 0L; - onChanged(); - return this; - } - - private long slotDisplayDuration_ ; - /** - * uint64 slotDisplayDuration = 12; - * @return The slotDisplayDuration. - */ - @java.lang.Override - public long getSlotDisplayDuration() { - return slotDisplayDuration_; - } - /** - * uint64 slotDisplayDuration = 12; - * @param value The slotDisplayDuration to set. - * @return This builder for chaining. - */ - public Builder setSlotDisplayDuration(long value) { - - slotDisplayDuration_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - * uint64 slotDisplayDuration = 12; - * @return This builder for chaining. - */ - public Builder clearSlotDisplayDuration() { - bitField0_ = (bitField0_ & ~0x00000800); - slotDisplayDuration_ = 0L; - onChanged(); - return this; - } - - private int starLevel_ ; - /** - * uint32 starLevel = 13; - * @return The starLevel. - */ - @java.lang.Override - public int getStarLevel() { - return starLevel_; - } - /** - * uint32 starLevel = 13; - * @param value The starLevel to set. - * @return This builder for chaining. - */ - public Builder setStarLevel(int value) { - - starLevel_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * uint32 starLevel = 13; - * @return This builder for chaining. - */ - public Builder clearStarLevel() { - bitField0_ = (bitField0_ & ~0x00001000); - starLevel_ = 0; - onChanged(); - return this; - } - - private int styleType_ = 0; - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return The enum numeric value on the wire for styleType. - */ - @java.lang.Override public int getStyleTypeValue() { - return styleType_; - } - /** - * .WebGiftFeed.StyleType styleType = 14; - * @param value The enum numeric value on the wire for styleType to set. - * @return This builder for chaining. - */ - public Builder setStyleTypeValue(int value) { - styleType_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return The styleType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType getStyleType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType.forNumber(styleType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType.UNRECOGNIZED : result; - } - /** - * .WebGiftFeed.StyleType styleType = 14; - * @param value The styleType to set. - * @return This builder for chaining. - */ - public Builder setStyleType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed.StyleType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - styleType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebGiftFeed.StyleType styleType = 14; - * @return This builder for chaining. - */ - public Builder clearStyleType() { - bitField0_ = (bitField0_ & ~0x00002000); - styleType_ = 0; - onChanged(); - return this; - } - - private int liveAssistantType_ = 0; - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return The enum numeric value on the wire for liveAssistantType. - */ - @java.lang.Override public int getLiveAssistantTypeValue() { - return liveAssistantType_; - } - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @param value The enum numeric value on the wire for liveAssistantType to set. - * @return This builder for chaining. - */ - public Builder setLiveAssistantTypeValue(int value) { - liveAssistantType_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; - } - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return The liveAssistantType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.forNumber(liveAssistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNRECOGNIZED : result; - } - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @param value The liveAssistantType to set. - * @return This builder for chaining. - */ - public Builder setLiveAssistantType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - liveAssistantType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebLiveAssistantType liveAssistantType = 15; - * @return This builder for chaining. - */ - public Builder clearLiveAssistantType() { - bitField0_ = (bitField0_ & ~0x00004000); - liveAssistantType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 16; - * @return The deviceHash. - */ - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deviceHash = 16; - * @return The bytes for deviceHash. - */ - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deviceHash = 16; - * @param value The deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHash( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - deviceHash_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - /** - * string deviceHash = 16; - * @return This builder for chaining. - */ - public Builder clearDeviceHash() { - deviceHash_ = getDefaultInstance().getDeviceHash(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - return this; - } - /** - * string deviceHash = 16; - * @param value The bytes for deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - deviceHash_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - private boolean danmakuDisplay_ ; - /** - * bool danmakuDisplay = 17; - * @return The danmakuDisplay. - */ - @java.lang.Override - public boolean getDanmakuDisplay() { - return danmakuDisplay_; - } - /** - * bool danmakuDisplay = 17; - * @param value The danmakuDisplay to set. - * @return This builder for chaining. - */ - public Builder setDanmakuDisplay(boolean value) { - - danmakuDisplay_ = value; - bitField0_ |= 0x00010000; - onChanged(); - return this; - } - /** - * bool danmakuDisplay = 17; - * @return This builder for chaining. - */ - public Builder clearDanmakuDisplay() { - bitField0_ = (bitField0_ & ~0x00010000); - danmakuDisplay_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebGiftFeed) - } - - // @@protoc_insertion_point(class_scope:WebGiftFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebGiftFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass.WebGiftFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebGiftFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebGiftFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021WebGiftFeed.proto\032\024SimpleUserInfo.prot" + - "o\032\032WebLiveAssistantType.proto\"\273\004\n\013WebGif" + - "tFeed\022\n\n\002id\030\001 \001(\t\022\035\n\004user\030\002 \001(\0132\017.Simple" + - "UserInfo\022\014\n\004time\030\003 \001(\004\022\021\n\tintGiftId\030\004 \001(" + - "\r\022\020\n\010sortRank\030\005 \001(\004\022\020\n\010mergeKey\030\006 \001(\t\022\021\n" + - "\tbatchSize\030\007 \001(\r\022\022\n\ncomboCount\030\010 \001(\r\022\014\n\004" + - "rank\030\t \001(\r\022\026\n\016expireDuration\030\n \001(\004\022\027\n\017cl" + - "ientTimestamp\030\013 \001(\004\022\033\n\023slotDisplayDurati" + - "on\030\014 \001(\004\022\021\n\tstarLevel\030\r \001(\r\022)\n\tstyleType" + - "\030\016 \001(\0162\026.WebGiftFeed.StyleType\0220\n\021liveAs" + - "sistantType\030\017 \001(\0162\025.WebLiveAssistantType" + - "\022\022\n\ndeviceHash\030\020 \001(\t\022\026\n\016danmakuDisplay\030\021" + - " \001(\010\"\234\001\n\tStyleType\022\021\n\rUNKNOWN_STYLE\020\000\022\020\n" + - "\014BATCH_STAR_0\020\001\022\020\n\014BATCH_STAR_1\020\002\022\020\n\014BAT" + - "CH_STAR_2\020\003\022\020\n\014BATCH_STAR_3\020\004\022\020\n\014BATCH_S" + - "TAR_4\020\005\022\020\n\014BATCH_STAR_5\020\006\022\020\n\014BATCH_STAR_" + - "6\020\007B6\n4tech.ordinaryroad.live.chat.clien" + - "t.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor(), - }); - internal_static_WebGiftFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebGiftFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebGiftFeed_descriptor, - new java.lang.String[] { "Id", "User", "Time", "IntGiftId", "SortRank", "MergeKey", "BatchSize", "ComboCount", "Rank", "ExpireDuration", "ClientTimestamp", "SlotDisplayDuration", "StarLevel", "StyleType", "LiveAssistantType", "DeviceHash", "DanmakuDisplay", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebLikeFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebLikeFeedOuterClass.java deleted file mode 100644 index 67eff240..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebLikeFeedOuterClass.java +++ /dev/null @@ -1,1046 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebLikeFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebLikeFeedOuterClass { - private WebLikeFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebLikeFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebLikeFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser(); - /** - * .SimpleUserInfo user = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder(); - - /** - * uint64 sortRank = 3; - * @return The sortRank. - */ - long getSortRank(); - - /** - * string deviceHash = 4; - * @return The deviceHash. - */ - java.lang.String getDeviceHash(); - /** - * string deviceHash = 4; - * @return The bytes for deviceHash. - */ - com.google.protobuf.ByteString - getDeviceHashBytes(); - } - /** - * Protobuf type {@code WebLikeFeed} - */ - public static final class WebLikeFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebLikeFeed) - WebLikeFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebLikeFeed.newBuilder() to construct. - private WebLikeFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebLikeFeed() { - id_ = ""; - deviceHash_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebLikeFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.internal_static_WebLikeFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.internal_static_WebLikeFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - /** - * .SimpleUserInfo user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - - public static final int SORTRANK_FIELD_NUMBER = 3; - private long sortRank_ = 0L; - /** - * uint64 sortRank = 3; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - - public static final int DEVICEHASH_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 4; - * @return The deviceHash. - */ - @java.lang.Override - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } - } - /** - * string deviceHash = 4; - * @return The bytes for deviceHash. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (sortRank_ != 0L) { - output.writeUInt64(3, sortRank_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deviceHash_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (sortRank_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, sortRank_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deviceHash_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getSortRank() - != other.getSortRank()) return false; - if (!getDeviceHash() - .equals(other.getDeviceHash())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + SORTRANK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSortRank()); - hash = (37 * hash) + DEVICEHASH_FIELD_NUMBER; - hash = (53 * hash) + getDeviceHash().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebLikeFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebLikeFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.internal_static_WebLikeFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.internal_static_WebLikeFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - sortRank_ = 0L; - deviceHash_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.internal_static_WebLikeFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sortRank_ = sortRank_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.deviceHash_ = deviceHash_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getSortRank() != 0L) { - setSortRank(other.getSortRank()); - } - if (!other.getDeviceHash().isEmpty()) { - deviceHash_ = other.deviceHash_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - sortRank_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - deviceHash_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> userBuilder_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - } - /** - * .SimpleUserInfo user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private long sortRank_ ; - /** - * uint64 sortRank = 3; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - /** - * uint64 sortRank = 3; - * @param value The sortRank to set. - * @return This builder for chaining. - */ - public Builder setSortRank(long value) { - - sortRank_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 sortRank = 3; - * @return This builder for chaining. - */ - public Builder clearSortRank() { - bitField0_ = (bitField0_ & ~0x00000004); - sortRank_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 4; - * @return The deviceHash. - */ - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deviceHash = 4; - * @return The bytes for deviceHash. - */ - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deviceHash = 4; - * @param value The deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHash( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - deviceHash_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string deviceHash = 4; - * @return This builder for chaining. - */ - public Builder clearDeviceHash() { - deviceHash_ = getDefaultInstance().getDeviceHash(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string deviceHash = 4; - * @param value The bytes for deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - deviceHash_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebLikeFeed) - } - - // @@protoc_insertion_point(class_scope:WebLikeFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebLikeFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLikeFeedOuterClass.WebLikeFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebLikeFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebLikeFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021WebLikeFeed.proto\032\024SimpleUserInfo.prot" + - "o\"^\n\013WebLikeFeed\022\n\n\002id\030\001 \001(\t\022\035\n\004user\030\002 \001" + - "(\0132\017.SimpleUserInfo\022\020\n\010sortRank\030\003 \001(\004\022\022\n" + - "\ndeviceHash\030\004 \001(\tB6\n4tech.ordinaryroad.l" + - "ive.chat.client.kuaishou.protobufb\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - }); - internal_static_WebLikeFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebLikeFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebLikeFeed_descriptor, - new java.lang.String[] { "Id", "User", "SortRank", "DeviceHash", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebLiveAssistantTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebLiveAssistantTypeOuterClass.java deleted file mode 100644 index 066422c6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebLiveAssistantTypeOuterClass.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebLiveAssistantType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebLiveAssistantTypeOuterClass { - private WebLiveAssistantTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code WebLiveAssistantType} - */ - public enum WebLiveAssistantType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_ASSISTANT_TYPE = 0; - */ - UNKNOWN_ASSISTANT_TYPE(0), - /** - * SUPER = 1; - */ - SUPER(1), - /** - * JUNIOR = 2; - */ - JUNIOR(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_ASSISTANT_TYPE = 0; - */ - public static final int UNKNOWN_ASSISTANT_TYPE_VALUE = 0; - /** - * SUPER = 1; - */ - public static final int SUPER_VALUE = 1; - /** - * JUNIOR = 2; - */ - public static final int JUNIOR_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WebLiveAssistantType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WebLiveAssistantType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_ASSISTANT_TYPE; - case 1: return SUPER; - case 2: return JUNIOR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - WebLiveAssistantType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WebLiveAssistantType findValueByNumber(int number) { - return WebLiveAssistantType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final WebLiveAssistantType[] VALUES = values(); - - public static WebLiveAssistantType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private WebLiveAssistantType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebLiveAssistantType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032WebLiveAssistantType.proto*I\n\024WebLiveA" + - "ssistantType\022\032\n\026UNKNOWN_ASSISTANT_TYPE\020\000" + - "\022\t\n\005SUPER\020\001\022\n\n\006JUNIOR\020\002B6\n4tech.ordinary" + - "road.live.chat.client.kuaishou.protobufb" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebPauseTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebPauseTypeOuterClass.java deleted file mode 100644 index 28c8879d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebPauseTypeOuterClass.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebPauseType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebPauseTypeOuterClass { - private WebPauseTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code WebPauseType} - */ - public enum WebPauseType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_PAUSE_TYPE = 0; - */ - UNKNOWN_PAUSE_TYPE(0), - /** - * TELEPHONE = 1; - */ - TELEPHONE(1), - /** - * SHARE = 2; - */ - SHARE(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_PAUSE_TYPE = 0; - */ - public static final int UNKNOWN_PAUSE_TYPE_VALUE = 0; - /** - * TELEPHONE = 1; - */ - public static final int TELEPHONE_VALUE = 1; - /** - * SHARE = 2; - */ - public static final int SHARE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WebPauseType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WebPauseType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_PAUSE_TYPE; - case 1: return TELEPHONE; - case 2: return SHARE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - WebPauseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WebPauseType findValueByNumber(int number) { - return WebPauseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebPauseTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final WebPauseType[] VALUES = values(); - - public static WebPauseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private WebPauseType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebPauseType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022WebPauseType.proto*@\n\014WebPauseType\022\026\n\022" + - "UNKNOWN_PAUSE_TYPE\020\000\022\r\n\tTELEPHONE\020\001\022\t\n\005S" + - "HARE\020\002B6\n4tech.ordinaryroad.live.chat.cl" + - "ient.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebRedPackCoverTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebRedPackCoverTypeOuterClass.java deleted file mode 100644 index 6b03df29..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebRedPackCoverTypeOuterClass.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebRedPackCoverType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebRedPackCoverTypeOuterClass { - private WebRedPackCoverTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code WebRedPackCoverType} - */ - public enum WebRedPackCoverType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_COVER_TYPE = 0; - */ - UNKNOWN_COVER_TYPE(0), - /** - * NORMAL_COVER = 1; - */ - NORMAL_COVER(1), - /** - * PRETTY_COVER = 2; - */ - PRETTY_COVER(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_COVER_TYPE = 0; - */ - public static final int UNKNOWN_COVER_TYPE_VALUE = 0; - /** - * NORMAL_COVER = 1; - */ - public static final int NORMAL_COVER_VALUE = 1; - /** - * PRETTY_COVER = 2; - */ - public static final int PRETTY_COVER_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WebRedPackCoverType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WebRedPackCoverType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_COVER_TYPE; - case 1: return NORMAL_COVER; - case 2: return PRETTY_COVER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - WebRedPackCoverType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WebRedPackCoverType findValueByNumber(int number) { - return WebRedPackCoverType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final WebRedPackCoverType[] VALUES = values(); - - public static WebRedPackCoverType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private WebRedPackCoverType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebRedPackCoverType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031WebRedPackCoverType.proto*Q\n\023WebRedPac" + - "kCoverType\022\026\n\022UNKNOWN_COVER_TYPE\020\000\022\020\n\014NO" + - "RMAL_COVER\020\001\022\020\n\014PRETTY_COVER\020\002B6\n4tech.o" + - "rdinaryroad.live.chat.client.kuaishou.pr" + - "otobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebRedPackInfoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebRedPackInfoOuterClass.java deleted file mode 100644 index 72ffc45a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebRedPackInfoOuterClass.java +++ /dev/null @@ -1,1522 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebRedPackInfo.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebRedPackInfoOuterClass { - private WebRedPackInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebRedPackInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebRedPackInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .SimpleUserInfo author = 2; - * @return Whether the author field is set. - */ - boolean hasAuthor(); - /** - * .SimpleUserInfo author = 2; - * @return The author. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getAuthor(); - /** - * .SimpleUserInfo author = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getAuthorOrBuilder(); - - /** - * uint64 balance = 3; - * @return The balance. - */ - long getBalance(); - - /** - * uint64 openTime = 4; - * @return The openTime. - */ - long getOpenTime(); - - /** - * uint64 currentTime = 5; - * @return The currentTime. - */ - long getCurrentTime(); - - /** - * string grabToken = 6; - * @return The grabToken. - */ - java.lang.String getGrabToken(); - /** - * string grabToken = 6; - * @return The bytes for grabToken. - */ - com.google.protobuf.ByteString - getGrabTokenBytes(); - - /** - * bool needSendRequest = 7; - * @return The needSendRequest. - */ - boolean getNeedSendRequest(); - - /** - * uint64 requestDelayMillis = 8; - * @return The requestDelayMillis. - */ - long getRequestDelayMillis(); - - /** - * uint64 luckiestDelayMillis = 9; - * @return The luckiestDelayMillis. - */ - long getLuckiestDelayMillis(); - - /** - * .WebRedPackCoverType coverType = 10; - * @return The enum numeric value on the wire for coverType. - */ - int getCoverTypeValue(); - /** - * .WebRedPackCoverType coverType = 10; - * @return The coverType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType getCoverType(); - } - /** - * Protobuf type {@code WebRedPackInfo} - */ - public static final class WebRedPackInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebRedPackInfo) - WebRedPackInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebRedPackInfo.newBuilder() to construct. - private WebRedPackInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebRedPackInfo() { - id_ = ""; - grabToken_ = ""; - coverType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebRedPackInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHOR_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo author_; - /** - * .SimpleUserInfo author = 2; - * @return Whether the author field is set. - */ - @java.lang.Override - public boolean hasAuthor() { - return author_ != null; - } - /** - * .SimpleUserInfo author = 2; - * @return The author. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getAuthor() { - return author_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_; - } - /** - * .SimpleUserInfo author = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getAuthorOrBuilder() { - return author_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_; - } - - public static final int BALANCE_FIELD_NUMBER = 3; - private long balance_ = 0L; - /** - * uint64 balance = 3; - * @return The balance. - */ - @java.lang.Override - public long getBalance() { - return balance_; - } - - public static final int OPENTIME_FIELD_NUMBER = 4; - private long openTime_ = 0L; - /** - * uint64 openTime = 4; - * @return The openTime. - */ - @java.lang.Override - public long getOpenTime() { - return openTime_; - } - - public static final int CURRENTTIME_FIELD_NUMBER = 5; - private long currentTime_ = 0L; - /** - * uint64 currentTime = 5; - * @return The currentTime. - */ - @java.lang.Override - public long getCurrentTime() { - return currentTime_; - } - - public static final int GRABTOKEN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object grabToken_ = ""; - /** - * string grabToken = 6; - * @return The grabToken. - */ - @java.lang.Override - public java.lang.String getGrabToken() { - java.lang.Object ref = grabToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - grabToken_ = s; - return s; - } - } - /** - * string grabToken = 6; - * @return The bytes for grabToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getGrabTokenBytes() { - java.lang.Object ref = grabToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - grabToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEEDSENDREQUEST_FIELD_NUMBER = 7; - private boolean needSendRequest_ = false; - /** - * bool needSendRequest = 7; - * @return The needSendRequest. - */ - @java.lang.Override - public boolean getNeedSendRequest() { - return needSendRequest_; - } - - public static final int REQUESTDELAYMILLIS_FIELD_NUMBER = 8; - private long requestDelayMillis_ = 0L; - /** - * uint64 requestDelayMillis = 8; - * @return The requestDelayMillis. - */ - @java.lang.Override - public long getRequestDelayMillis() { - return requestDelayMillis_; - } - - public static final int LUCKIESTDELAYMILLIS_FIELD_NUMBER = 9; - private long luckiestDelayMillis_ = 0L; - /** - * uint64 luckiestDelayMillis = 9; - * @return The luckiestDelayMillis. - */ - @java.lang.Override - public long getLuckiestDelayMillis() { - return luckiestDelayMillis_; - } - - public static final int COVERTYPE_FIELD_NUMBER = 10; - private int coverType_ = 0; - /** - * .WebRedPackCoverType coverType = 10; - * @return The enum numeric value on the wire for coverType. - */ - @java.lang.Override public int getCoverTypeValue() { - return coverType_; - } - /** - * .WebRedPackCoverType coverType = 10; - * @return The coverType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType getCoverType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.forNumber(coverType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (author_ != null) { - output.writeMessage(2, getAuthor()); - } - if (balance_ != 0L) { - output.writeUInt64(3, balance_); - } - if (openTime_ != 0L) { - output.writeUInt64(4, openTime_); - } - if (currentTime_ != 0L) { - output.writeUInt64(5, currentTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grabToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, grabToken_); - } - if (needSendRequest_ != false) { - output.writeBool(7, needSendRequest_); - } - if (requestDelayMillis_ != 0L) { - output.writeUInt64(8, requestDelayMillis_); - } - if (luckiestDelayMillis_ != 0L) { - output.writeUInt64(9, luckiestDelayMillis_); - } - if (coverType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNKNOWN_COVER_TYPE.getNumber()) { - output.writeEnum(10, coverType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (author_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAuthor()); - } - if (balance_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, balance_); - } - if (openTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, openTime_); - } - if (currentTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, currentTime_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(grabToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, grabToken_); - } - if (needSendRequest_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, needSendRequest_); - } - if (requestDelayMillis_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(8, requestDelayMillis_); - } - if (luckiestDelayMillis_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(9, luckiestDelayMillis_); - } - if (coverType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNKNOWN_COVER_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, coverType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasAuthor() != other.hasAuthor()) return false; - if (hasAuthor()) { - if (!getAuthor() - .equals(other.getAuthor())) return false; - } - if (getBalance() - != other.getBalance()) return false; - if (getOpenTime() - != other.getOpenTime()) return false; - if (getCurrentTime() - != other.getCurrentTime()) return false; - if (!getGrabToken() - .equals(other.getGrabToken())) return false; - if (getNeedSendRequest() - != other.getNeedSendRequest()) return false; - if (getRequestDelayMillis() - != other.getRequestDelayMillis()) return false; - if (getLuckiestDelayMillis() - != other.getLuckiestDelayMillis()) return false; - if (coverType_ != other.coverType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasAuthor()) { - hash = (37 * hash) + AUTHOR_FIELD_NUMBER; - hash = (53 * hash) + getAuthor().hashCode(); - } - hash = (37 * hash) + BALANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBalance()); - hash = (37 * hash) + OPENTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOpenTime()); - hash = (37 * hash) + CURRENTTIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCurrentTime()); - hash = (37 * hash) + GRABTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getGrabToken().hashCode(); - hash = (37 * hash) + NEEDSENDREQUEST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNeedSendRequest()); - hash = (37 * hash) + REQUESTDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestDelayMillis()); - hash = (37 * hash) + LUCKIESTDELAYMILLIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLuckiestDelayMillis()); - hash = (37 * hash) + COVERTYPE_FIELD_NUMBER; - hash = (53 * hash) + coverType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebRedPackInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebRedPackInfo) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - author_ = null; - if (authorBuilder_ != null) { - authorBuilder_.dispose(); - authorBuilder_ = null; - } - balance_ = 0L; - openTime_ = 0L; - currentTime_ = 0L; - grabToken_ = ""; - needSendRequest_ = false; - requestDelayMillis_ = 0L; - luckiestDelayMillis_ = 0L; - coverType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.internal_static_WebRedPackInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.author_ = authorBuilder_ == null - ? author_ - : authorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.balance_ = balance_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.openTime_ = openTime_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.currentTime_ = currentTime_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.grabToken_ = grabToken_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.needSendRequest_ = needSendRequest_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.requestDelayMillis_ = requestDelayMillis_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.luckiestDelayMillis_ = luckiestDelayMillis_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.coverType_ = coverType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasAuthor()) { - mergeAuthor(other.getAuthor()); - } - if (other.getBalance() != 0L) { - setBalance(other.getBalance()); - } - if (other.getOpenTime() != 0L) { - setOpenTime(other.getOpenTime()); - } - if (other.getCurrentTime() != 0L) { - setCurrentTime(other.getCurrentTime()); - } - if (!other.getGrabToken().isEmpty()) { - grabToken_ = other.grabToken_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.getNeedSendRequest() != false) { - setNeedSendRequest(other.getNeedSendRequest()); - } - if (other.getRequestDelayMillis() != 0L) { - setRequestDelayMillis(other.getRequestDelayMillis()); - } - if (other.getLuckiestDelayMillis() != 0L) { - setLuckiestDelayMillis(other.getLuckiestDelayMillis()); - } - if (other.coverType_ != 0) { - setCoverTypeValue(other.getCoverTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAuthorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - balance_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - openTime_ = input.readUInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - currentTime_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - grabToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - needSendRequest_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - requestDelayMillis_ = input.readUInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - luckiestDelayMillis_ = input.readUInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 80: { - coverType_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo author_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> authorBuilder_; - /** - * .SimpleUserInfo author = 2; - * @return Whether the author field is set. - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .SimpleUserInfo author = 2; - * @return The author. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getAuthor() { - if (authorBuilder_ == null) { - return author_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_; - } else { - return authorBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo author = 2; - */ - public Builder setAuthor(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (authorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - author_ = value; - } else { - authorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo author = 2; - */ - public Builder setAuthor( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (authorBuilder_ == null) { - author_ = builderForValue.build(); - } else { - authorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo author = 2; - */ - public Builder mergeAuthor(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (authorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - author_ != null && - author_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getAuthorBuilder().mergeFrom(value); - } else { - author_ = value; - } - } else { - authorBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo author = 2; - */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00000002); - author_ = null; - if (authorBuilder_ != null) { - authorBuilder_.dispose(); - authorBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo author = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getAuthorBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAuthorFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo author = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getAuthorOrBuilder() { - if (authorBuilder_ != null) { - return authorBuilder_.getMessageOrBuilder(); - } else { - return author_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : author_; - } - } - /** - * .SimpleUserInfo author = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getAuthorFieldBuilder() { - if (authorBuilder_ == null) { - authorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getAuthor(), - getParentForChildren(), - isClean()); - author_ = null; - } - return authorBuilder_; - } - - private long balance_ ; - /** - * uint64 balance = 3; - * @return The balance. - */ - @java.lang.Override - public long getBalance() { - return balance_; - } - /** - * uint64 balance = 3; - * @param value The balance to set. - * @return This builder for chaining. - */ - public Builder setBalance(long value) { - - balance_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 balance = 3; - * @return This builder for chaining. - */ - public Builder clearBalance() { - bitField0_ = (bitField0_ & ~0x00000004); - balance_ = 0L; - onChanged(); - return this; - } - - private long openTime_ ; - /** - * uint64 openTime = 4; - * @return The openTime. - */ - @java.lang.Override - public long getOpenTime() { - return openTime_; - } - /** - * uint64 openTime = 4; - * @param value The openTime to set. - * @return This builder for chaining. - */ - public Builder setOpenTime(long value) { - - openTime_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint64 openTime = 4; - * @return This builder for chaining. - */ - public Builder clearOpenTime() { - bitField0_ = (bitField0_ & ~0x00000008); - openTime_ = 0L; - onChanged(); - return this; - } - - private long currentTime_ ; - /** - * uint64 currentTime = 5; - * @return The currentTime. - */ - @java.lang.Override - public long getCurrentTime() { - return currentTime_; - } - /** - * uint64 currentTime = 5; - * @param value The currentTime to set. - * @return This builder for chaining. - */ - public Builder setCurrentTime(long value) { - - currentTime_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 currentTime = 5; - * @return This builder for chaining. - */ - public Builder clearCurrentTime() { - bitField0_ = (bitField0_ & ~0x00000010); - currentTime_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object grabToken_ = ""; - /** - * string grabToken = 6; - * @return The grabToken. - */ - public java.lang.String getGrabToken() { - java.lang.Object ref = grabToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - grabToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string grabToken = 6; - * @return The bytes for grabToken. - */ - public com.google.protobuf.ByteString - getGrabTokenBytes() { - java.lang.Object ref = grabToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - grabToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string grabToken = 6; - * @param value The grabToken to set. - * @return This builder for chaining. - */ - public Builder setGrabToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - grabToken_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string grabToken = 6; - * @return This builder for chaining. - */ - public Builder clearGrabToken() { - grabToken_ = getDefaultInstance().getGrabToken(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string grabToken = 6; - * @param value The bytes for grabToken to set. - * @return This builder for chaining. - */ - public Builder setGrabTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - grabToken_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private boolean needSendRequest_ ; - /** - * bool needSendRequest = 7; - * @return The needSendRequest. - */ - @java.lang.Override - public boolean getNeedSendRequest() { - return needSendRequest_; - } - /** - * bool needSendRequest = 7; - * @param value The needSendRequest to set. - * @return This builder for chaining. - */ - public Builder setNeedSendRequest(boolean value) { - - needSendRequest_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * bool needSendRequest = 7; - * @return This builder for chaining. - */ - public Builder clearNeedSendRequest() { - bitField0_ = (bitField0_ & ~0x00000040); - needSendRequest_ = false; - onChanged(); - return this; - } - - private long requestDelayMillis_ ; - /** - * uint64 requestDelayMillis = 8; - * @return The requestDelayMillis. - */ - @java.lang.Override - public long getRequestDelayMillis() { - return requestDelayMillis_; - } - /** - * uint64 requestDelayMillis = 8; - * @param value The requestDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setRequestDelayMillis(long value) { - - requestDelayMillis_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * uint64 requestDelayMillis = 8; - * @return This builder for chaining. - */ - public Builder clearRequestDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000080); - requestDelayMillis_ = 0L; - onChanged(); - return this; - } - - private long luckiestDelayMillis_ ; - /** - * uint64 luckiestDelayMillis = 9; - * @return The luckiestDelayMillis. - */ - @java.lang.Override - public long getLuckiestDelayMillis() { - return luckiestDelayMillis_; - } - /** - * uint64 luckiestDelayMillis = 9; - * @param value The luckiestDelayMillis to set. - * @return This builder for chaining. - */ - public Builder setLuckiestDelayMillis(long value) { - - luckiestDelayMillis_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * uint64 luckiestDelayMillis = 9; - * @return This builder for chaining. - */ - public Builder clearLuckiestDelayMillis() { - bitField0_ = (bitField0_ & ~0x00000100); - luckiestDelayMillis_ = 0L; - onChanged(); - return this; - } - - private int coverType_ = 0; - /** - * .WebRedPackCoverType coverType = 10; - * @return The enum numeric value on the wire for coverType. - */ - @java.lang.Override public int getCoverTypeValue() { - return coverType_; - } - /** - * .WebRedPackCoverType coverType = 10; - * @param value The enum numeric value on the wire for coverType to set. - * @return This builder for chaining. - */ - public Builder setCoverTypeValue(int value) { - coverType_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * .WebRedPackCoverType coverType = 10; - * @return The coverType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType getCoverType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.forNumber(coverType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType.UNRECOGNIZED : result; - } - /** - * .WebRedPackCoverType coverType = 10; - * @param value The coverType to set. - * @return This builder for chaining. - */ - public Builder setCoverType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.WebRedPackCoverType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - coverType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebRedPackCoverType coverType = 10; - * @return This builder for chaining. - */ - public Builder clearCoverType() { - bitField0_ = (bitField0_ & ~0x00000200); - coverType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebRedPackInfo) - } - - // @@protoc_insertion_point(class_scope:WebRedPackInfo) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebRedPackInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackInfoOuterClass.WebRedPackInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebRedPackInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebRedPackInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024WebRedPackInfo.proto\032\024SimpleUserInfo.p" + - "roto\032\031WebRedPackCoverType.proto\"\203\002\n\016WebR" + - "edPackInfo\022\n\n\002id\030\001 \001(\t\022\037\n\006author\030\002 \001(\0132\017" + - ".SimpleUserInfo\022\017\n\007balance\030\003 \001(\004\022\020\n\010open" + - "Time\030\004 \001(\004\022\023\n\013currentTime\030\005 \001(\004\022\021\n\tgrabT" + - "oken\030\006 \001(\t\022\027\n\017needSendRequest\030\007 \001(\010\022\032\n\022r" + - "equestDelayMillis\030\010 \001(\004\022\033\n\023luckiestDelay" + - "Millis\030\t \001(\004\022\'\n\tcoverType\030\n \001(\0162\024.WebRed" + - "PackCoverTypeB6\n4tech.ordinaryroad.live." + - "chat.client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.getDescriptor(), - }); - internal_static_WebRedPackInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebRedPackInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebRedPackInfo_descriptor, - new java.lang.String[] { "Id", "Author", "Balance", "OpenTime", "CurrentTime", "GrabToken", "NeedSendRequest", "RequestDelayMillis", "LuckiestDelayMillis", "CoverType", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebRedPackCoverTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebShareFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebShareFeedOuterClass.java deleted file mode 100644 index 97d78171..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebShareFeedOuterClass.java +++ /dev/null @@ -1,1301 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebShareFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebShareFeedOuterClass { - private WebShareFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebShareFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebShareFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser(); - /** - * .SimpleUserInfo user = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder(); - - /** - * uint64 time = 3; - * @return The time. - */ - long getTime(); - - /** - * uint32 thirdPartyPlatform = 4; - * @return The thirdPartyPlatform. - */ - int getThirdPartyPlatform(); - - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - long getSortRank(); - - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return The enum numeric value on the wire for liveAssistantType. - */ - int getLiveAssistantTypeValue(); - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return The liveAssistantType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType(); - - /** - * string deviceHash = 7; - * @return The deviceHash. - */ - java.lang.String getDeviceHash(); - /** - * string deviceHash = 7; - * @return The bytes for deviceHash. - */ - com.google.protobuf.ByteString - getDeviceHashBytes(); - } - /** - * Protobuf type {@code WebShareFeed} - */ - public static final class WebShareFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebShareFeed) - WebShareFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebShareFeed.newBuilder() to construct. - private WebShareFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebShareFeed() { - id_ = ""; - liveAssistantType_ = 0; - deviceHash_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebShareFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.internal_static_WebShareFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.internal_static_WebShareFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - /** - * .SimpleUserInfo user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - - public static final int TIME_FIELD_NUMBER = 3; - private long time_ = 0L; - /** - * uint64 time = 3; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int THIRDPARTYPLATFORM_FIELD_NUMBER = 4; - private int thirdPartyPlatform_ = 0; - /** - * uint32 thirdPartyPlatform = 4; - * @return The thirdPartyPlatform. - */ - @java.lang.Override - public int getThirdPartyPlatform() { - return thirdPartyPlatform_; - } - - public static final int SORTRANK_FIELD_NUMBER = 5; - private long sortRank_ = 0L; - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - - public static final int LIVEASSISTANTTYPE_FIELD_NUMBER = 6; - private int liveAssistantType_ = 0; - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return The enum numeric value on the wire for liveAssistantType. - */ - @java.lang.Override public int getLiveAssistantTypeValue() { - return liveAssistantType_; - } - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return The liveAssistantType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.forNumber(liveAssistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNRECOGNIZED : result; - } - - public static final int DEVICEHASH_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 7; - * @return The deviceHash. - */ - @java.lang.Override - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } - } - /** - * string deviceHash = 7; - * @return The bytes for deviceHash. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (time_ != 0L) { - output.writeUInt64(3, time_); - } - if (thirdPartyPlatform_ != 0) { - output.writeUInt32(4, thirdPartyPlatform_); - } - if (sortRank_ != 0L) { - output.writeUInt64(5, sortRank_); - } - if (liveAssistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - output.writeEnum(6, liveAssistantType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deviceHash_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, time_); - } - if (thirdPartyPlatform_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, thirdPartyPlatform_); - } - if (sortRank_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, sortRank_); - } - if (liveAssistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, liveAssistantType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceHash_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deviceHash_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getTime() - != other.getTime()) return false; - if (getThirdPartyPlatform() - != other.getThirdPartyPlatform()) return false; - if (getSortRank() - != other.getSortRank()) return false; - if (liveAssistantType_ != other.liveAssistantType_) return false; - if (!getDeviceHash() - .equals(other.getDeviceHash())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + THIRDPARTYPLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getThirdPartyPlatform(); - hash = (37 * hash) + SORTRANK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSortRank()); - hash = (37 * hash) + LIVEASSISTANTTYPE_FIELD_NUMBER; - hash = (53 * hash) + liveAssistantType_; - hash = (37 * hash) + DEVICEHASH_FIELD_NUMBER; - hash = (53 * hash) + getDeviceHash().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebShareFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebShareFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.internal_static_WebShareFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.internal_static_WebShareFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - time_ = 0L; - thirdPartyPlatform_ = 0; - sortRank_ = 0L; - liveAssistantType_ = 0; - deviceHash_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.internal_static_WebShareFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.thirdPartyPlatform_ = thirdPartyPlatform_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sortRank_ = sortRank_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.liveAssistantType_ = liveAssistantType_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.deviceHash_ = deviceHash_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (other.getThirdPartyPlatform() != 0) { - setThirdPartyPlatform(other.getThirdPartyPlatform()); - } - if (other.getSortRank() != 0L) { - setSortRank(other.getSortRank()); - } - if (other.liveAssistantType_ != 0) { - setLiveAssistantTypeValue(other.getLiveAssistantTypeValue()); - } - if (!other.getDeviceHash().isEmpty()) { - deviceHash_ = other.deviceHash_; - bitField0_ |= 0x00000040; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - thirdPartyPlatform_ = input.readUInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - sortRank_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - liveAssistantType_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - deviceHash_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> userBuilder_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - } - /** - * .SimpleUserInfo user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private long time_ ; - /** - * uint64 time = 3; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 3; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 time = 3; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000004); - time_ = 0L; - onChanged(); - return this; - } - - private int thirdPartyPlatform_ ; - /** - * uint32 thirdPartyPlatform = 4; - * @return The thirdPartyPlatform. - */ - @java.lang.Override - public int getThirdPartyPlatform() { - return thirdPartyPlatform_; - } - /** - * uint32 thirdPartyPlatform = 4; - * @param value The thirdPartyPlatform to set. - * @return This builder for chaining. - */ - public Builder setThirdPartyPlatform(int value) { - - thirdPartyPlatform_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * uint32 thirdPartyPlatform = 4; - * @return This builder for chaining. - */ - public Builder clearThirdPartyPlatform() { - bitField0_ = (bitField0_ & ~0x00000008); - thirdPartyPlatform_ = 0; - onChanged(); - return this; - } - - private long sortRank_ ; - /** - * uint64 sortRank = 5; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - /** - * uint64 sortRank = 5; - * @param value The sortRank to set. - * @return This builder for chaining. - */ - public Builder setSortRank(long value) { - - sortRank_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 sortRank = 5; - * @return This builder for chaining. - */ - public Builder clearSortRank() { - bitField0_ = (bitField0_ & ~0x00000010); - sortRank_ = 0L; - onChanged(); - return this; - } - - private int liveAssistantType_ = 0; - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return The enum numeric value on the wire for liveAssistantType. - */ - @java.lang.Override public int getLiveAssistantTypeValue() { - return liveAssistantType_; - } - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @param value The enum numeric value on the wire for liveAssistantType to set. - * @return This builder for chaining. - */ - public Builder setLiveAssistantTypeValue(int value) { - liveAssistantType_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return The liveAssistantType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.forNumber(liveAssistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNRECOGNIZED : result; - } - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @param value The liveAssistantType to set. - * @return This builder for chaining. - */ - public Builder setLiveAssistantType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - liveAssistantType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebLiveAssistantType liveAssistantType = 6; - * @return This builder for chaining. - */ - public Builder clearLiveAssistantType() { - bitField0_ = (bitField0_ & ~0x00000020); - liveAssistantType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object deviceHash_ = ""; - /** - * string deviceHash = 7; - * @return The deviceHash. - */ - public java.lang.String getDeviceHash() { - java.lang.Object ref = deviceHash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceHash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deviceHash = 7; - * @return The bytes for deviceHash. - */ - public com.google.protobuf.ByteString - getDeviceHashBytes() { - java.lang.Object ref = deviceHash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceHash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deviceHash = 7; - * @param value The deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHash( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - deviceHash_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * string deviceHash = 7; - * @return This builder for chaining. - */ - public Builder clearDeviceHash() { - deviceHash_ = getDefaultInstance().getDeviceHash(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * string deviceHash = 7; - * @param value The bytes for deviceHash to set. - * @return This builder for chaining. - */ - public Builder setDeviceHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - deviceHash_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebShareFeed) - } - - // @@protoc_insertion_point(class_scope:WebShareFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebShareFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebShareFeedOuterClass.WebShareFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebShareFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebShareFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022WebShareFeed.proto\032\024SimpleUserInfo.pro" + - "to\032\032WebLiveAssistantType.proto\"\273\001\n\014WebSh" + - "areFeed\022\n\n\002id\030\001 \001(\t\022\035\n\004user\030\002 \001(\0132\017.Simp" + - "leUserInfo\022\014\n\004time\030\003 \001(\004\022\032\n\022thirdPartyPl" + - "atform\030\004 \001(\r\022\020\n\010sortRank\030\005 \001(\004\0220\n\021liveAs" + - "sistantType\030\006 \001(\0162\025.WebLiveAssistantType" + - "\022\022\n\ndeviceHash\030\007 \001(\tB6\n4tech.ordinaryroa" + - "d.live.chat.client.kuaishou.protobufb\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor(), - }); - internal_static_WebShareFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebShareFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebShareFeed_descriptor, - new java.lang.String[] { "Id", "User", "Time", "ThirdPartyPlatform", "SortRank", "LiveAssistantType", "DeviceHash", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebSystemNoticeFeedOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebSystemNoticeFeedOuterClass.java deleted file mode 100644 index b633443c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebSystemNoticeFeedOuterClass.java +++ /dev/null @@ -1,1427 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebSystemNoticeFeed.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebSystemNoticeFeedOuterClass { - private WebSystemNoticeFeedOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebSystemNoticeFeedOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebSystemNoticeFeed) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser(); - /** - * .SimpleUserInfo user = 2; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder(); - - /** - * uint64 time = 3; - * @return The time. - */ - long getTime(); - - /** - * string content = 4; - * @return The content. - */ - java.lang.String getContent(); - /** - * string content = 4; - * @return The bytes for content. - */ - com.google.protobuf.ByteString - getContentBytes(); - - /** - * uint64 displayDuration = 5; - * @return The displayDuration. - */ - long getDisplayDuration(); - - /** - * uint64 sortRank = 6; - * @return The sortRank. - */ - long getSortRank(); - - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return The enum numeric value on the wire for displayType. - */ - int getDisplayTypeValue(); - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return The displayType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType getDisplayType(); - } - /** - * Protobuf type {@code WebSystemNoticeFeed} - */ - public static final class WebSystemNoticeFeed extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebSystemNoticeFeed) - WebSystemNoticeFeedOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebSystemNoticeFeed.newBuilder() to construct. - private WebSystemNoticeFeed(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebSystemNoticeFeed() { - id_ = ""; - content_ = ""; - displayType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebSystemNoticeFeed(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.internal_static_WebSystemNoticeFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.internal_static_WebSystemNoticeFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder.class); - } - - /** - * Protobuf enum {@code WebSystemNoticeFeed.DisplayType} - */ - public enum DisplayType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_DISPLAY_TYPE = 0; - */ - UNKNOWN_DISPLAY_TYPE(0), - /** - * COMMENT = 1; - */ - COMMENT(1), - /** - * ALERT = 2; - */ - ALERT(2), - /** - * TOAST = 3; - */ - TOAST(3), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_DISPLAY_TYPE = 0; - */ - public static final int UNKNOWN_DISPLAY_TYPE_VALUE = 0; - /** - * COMMENT = 1; - */ - public static final int COMMENT_VALUE = 1; - /** - * ALERT = 2; - */ - public static final int ALERT_VALUE = 2; - /** - * TOAST = 3; - */ - public static final int TOAST_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DisplayType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DisplayType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_DISPLAY_TYPE; - case 1: return COMMENT; - case 2: return ALERT; - case 3: return TOAST; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DisplayType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DisplayType findValueByNumber(int number) { - return DisplayType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.getDescriptor().getEnumTypes().get(0); - } - - private static final DisplayType[] VALUES = values(); - - public static DisplayType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DisplayType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebSystemNoticeFeed.DisplayType) - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_FIELD_NUMBER = 2; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - /** - * .SimpleUserInfo user = 2; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - - public static final int TIME_FIELD_NUMBER = 3; - private long time_ = 0L; - /** - * uint64 time = 3; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - - public static final int CONTENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; - /** - * string content = 4; - * @return The content. - */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } - } - /** - * string content = 4; - * @return The bytes for content. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAYDURATION_FIELD_NUMBER = 5; - private long displayDuration_ = 0L; - /** - * uint64 displayDuration = 5; - * @return The displayDuration. - */ - @java.lang.Override - public long getDisplayDuration() { - return displayDuration_; - } - - public static final int SORTRANK_FIELD_NUMBER = 6; - private long sortRank_ = 0L; - /** - * uint64 sortRank = 6; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - - public static final int DISPLAYTYPE_FIELD_NUMBER = 7; - private int displayType_ = 0; - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return The enum numeric value on the wire for displayType. - */ - @java.lang.Override public int getDisplayTypeValue() { - return displayType_; - } - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return The displayType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType getDisplayType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType.forNumber(displayType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (user_ != null) { - output.writeMessage(2, getUser()); - } - if (time_ != 0L) { - output.writeUInt64(3, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, content_); - } - if (displayDuration_ != 0L) { - output.writeUInt64(5, displayDuration_); - } - if (sortRank_ != 0L) { - output.writeUInt64(6, sortRank_); - } - if (displayType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType.UNKNOWN_DISPLAY_TYPE.getNumber()) { - output.writeEnum(7, displayType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUser()); - } - if (time_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, time_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, content_); - } - if (displayDuration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, displayDuration_); - } - if (sortRank_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(6, sortRank_); - } - if (displayType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType.UNKNOWN_DISPLAY_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, displayType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getTime() - != other.getTime()) return false; - if (!getContent() - .equals(other.getContent())) return false; - if (getDisplayDuration() - != other.getDisplayDuration()) return false; - if (getSortRank() - != other.getSortRank()) return false; - if (displayType_ != other.displayType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + DISPLAYDURATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDisplayDuration()); - hash = (37 * hash) + SORTRANK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSortRank()); - hash = (37 * hash) + DISPLAYTYPE_FIELD_NUMBER; - hash = (53 * hash) + displayType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebSystemNoticeFeed} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebSystemNoticeFeed) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.internal_static_WebSystemNoticeFeed_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.internal_static_WebSystemNoticeFeed_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - time_ = 0L; - content_ = ""; - displayDuration_ = 0L; - sortRank_ = 0L; - displayType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.internal_static_WebSystemNoticeFeed_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.time_ = time_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.content_ = content_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.displayDuration_ = displayDuration_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.sortRank_ = sortRank_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.displayType_ = displayType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getTime() != 0L) { - setTime(other.getTime()); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getDisplayDuration() != 0L) { - setDisplayDuration(other.getDisplayDuration()); - } - if (other.getSortRank() != 0L) { - setSortRank(other.getSortRank()); - } - if (other.displayType_ != 0) { - setDisplayTypeValue(other.getDisplayTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - time_ = input.readUInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - displayDuration_ = input.readUInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - sortRank_ = input.readUInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - displayType_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> userBuilder_; - /** - * .SimpleUserInfo user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .SimpleUserInfo user = 2; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000002); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getUserBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo user = 2; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - } - /** - * .SimpleUserInfo user = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private long time_ ; - /** - * uint64 time = 3; - * @return The time. - */ - @java.lang.Override - public long getTime() { - return time_; - } - /** - * uint64 time = 3; - * @param value The time to set. - * @return This builder for chaining. - */ - public Builder setTime(long value) { - - time_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * uint64 time = 3; - * @return This builder for chaining. - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000004); - time_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object content_ = ""; - /** - * string content = 4; - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string content = 4; - * @return The bytes for content. - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string content = 4; - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * string content = 4; - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * string content = 4; - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private long displayDuration_ ; - /** - * uint64 displayDuration = 5; - * @return The displayDuration. - */ - @java.lang.Override - public long getDisplayDuration() { - return displayDuration_; - } - /** - * uint64 displayDuration = 5; - * @param value The displayDuration to set. - * @return This builder for chaining. - */ - public Builder setDisplayDuration(long value) { - - displayDuration_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * uint64 displayDuration = 5; - * @return This builder for chaining. - */ - public Builder clearDisplayDuration() { - bitField0_ = (bitField0_ & ~0x00000010); - displayDuration_ = 0L; - onChanged(); - return this; - } - - private long sortRank_ ; - /** - * uint64 sortRank = 6; - * @return The sortRank. - */ - @java.lang.Override - public long getSortRank() { - return sortRank_; - } - /** - * uint64 sortRank = 6; - * @param value The sortRank to set. - * @return This builder for chaining. - */ - public Builder setSortRank(long value) { - - sortRank_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * uint64 sortRank = 6; - * @return This builder for chaining. - */ - public Builder clearSortRank() { - bitField0_ = (bitField0_ & ~0x00000020); - sortRank_ = 0L; - onChanged(); - return this; - } - - private int displayType_ = 0; - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return The enum numeric value on the wire for displayType. - */ - @java.lang.Override public int getDisplayTypeValue() { - return displayType_; - } - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @param value The enum numeric value on the wire for displayType to set. - * @return This builder for chaining. - */ - public Builder setDisplayTypeValue(int value) { - displayType_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return The displayType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType getDisplayType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType.forNumber(displayType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType.UNRECOGNIZED : result; - } - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @param value The displayType to set. - * @return This builder for chaining. - */ - public Builder setDisplayType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed.DisplayType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - displayType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebSystemNoticeFeed.DisplayType displayType = 7; - * @return This builder for chaining. - */ - public Builder clearDisplayType() { - bitField0_ = (bitField0_ & ~0x00000040); - displayType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebSystemNoticeFeed) - } - - // @@protoc_insertion_point(class_scope:WebSystemNoticeFeed) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebSystemNoticeFeed parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebSystemNoticeFeedOuterClass.WebSystemNoticeFeed getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebSystemNoticeFeed_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebSystemNoticeFeed_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031WebSystemNoticeFeed.proto\032\024SimpleUserI" + - "nfo.proto\"\215\002\n\023WebSystemNoticeFeed\022\n\n\002id\030" + - "\001 \001(\t\022\035\n\004user\030\002 \001(\0132\017.SimpleUserInfo\022\014\n\004" + - "time\030\003 \001(\004\022\017\n\007content\030\004 \001(\t\022\027\n\017displayDu" + - "ration\030\005 \001(\004\022\020\n\010sortRank\030\006 \001(\004\0225\n\013displa" + - "yType\030\007 \001(\0162 .WebSystemNoticeFeed.Displa" + - "yType\"J\n\013DisplayType\022\030\n\024UNKNOWN_DISPLAY_" + - "TYPE\020\000\022\013\n\007COMMENT\020\001\022\t\n\005ALERT\020\002\022\t\n\005TOAST\020" + - "\003B6\n4tech.ordinaryroad.live.chat.client." + - "kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - }); - internal_static_WebSystemNoticeFeed_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebSystemNoticeFeed_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebSystemNoticeFeed_descriptor, - new java.lang.String[] { "Id", "User", "Time", "Content", "DisplayDuration", "SortRank", "DisplayType", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebUserPauseTypeOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebUserPauseTypeOuterClass.java deleted file mode 100644 index e86bfabf..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebUserPauseTypeOuterClass.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebUserPauseType.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebUserPauseTypeOuterClass { - private WebUserPauseTypeOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code WebUserPauseType} - */ - public enum WebUserPauseType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN_USER_PAUSE_TYPE = 0; - */ - UNKNOWN_USER_PAUSE_TYPE(0), - /** - * BACKGROUND = 1; - */ - BACKGROUND(1), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN_USER_PAUSE_TYPE = 0; - */ - public static final int UNKNOWN_USER_PAUSE_TYPE_VALUE = 0; - /** - * BACKGROUND = 1; - */ - public static final int BACKGROUND_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static WebUserPauseType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static WebUserPauseType forNumber(int value) { - switch (value) { - case 0: return UNKNOWN_USER_PAUSE_TYPE; - case 1: return BACKGROUND; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - WebUserPauseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public WebUserPauseType findValueByNumber(int number) { - return WebUserPauseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebUserPauseTypeOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final WebUserPauseType[] VALUES = values(); - - public static WebUserPauseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private WebUserPauseType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:WebUserPauseType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026WebUserPauseType.proto*?\n\020WebUserPause" + - "Type\022\033\n\027UNKNOWN_USER_PAUSE_TYPE\020\000\022\016\n\nBAC" + - "KGROUND\020\001B6\n4tech.ordinaryroad.live.chat" + - ".client.kuaishou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebWatchingUserInfoOuterClass.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebWatchingUserInfoOuterClass.java deleted file mode 100644 index 15e9bb2e..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/java/tech/ordinaryroad/live/chat/client/kuaishou/protobuf/WebWatchingUserInfoOuterClass.java +++ /dev/null @@ -1,1080 +0,0 @@ -/* - * MIT License - * - * Copyright (c) 2023 OrdinaryRoad - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: WebWatchingUserInfo.proto - -package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; - -public final class WebWatchingUserInfoOuterClass { - private WebWatchingUserInfoOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WebWatchingUserInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:WebWatchingUserInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * .SimpleUserInfo user = 1; - * @return Whether the user field is set. - */ - boolean hasUser(); - /** - * .SimpleUserInfo user = 1; - * @return The user. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser(); - /** - * .SimpleUserInfo user = 1; - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder(); - - /** - * bool offline = 2; - * @return The offline. - */ - boolean getOffline(); - - /** - * bool tuhao = 3; - * @return The tuhao. - */ - boolean getTuhao(); - - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return The enum numeric value on the wire for liveAssistantType. - */ - int getLiveAssistantTypeValue(); - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return The liveAssistantType. - */ - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType(); - - /** - * string displayKsCoin = 5; - * @return The displayKsCoin. - */ - java.lang.String getDisplayKsCoin(); - /** - * string displayKsCoin = 5; - * @return The bytes for displayKsCoin. - */ - com.google.protobuf.ByteString - getDisplayKsCoinBytes(); - } - /** - * Protobuf type {@code WebWatchingUserInfo} - */ - public static final class WebWatchingUserInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:WebWatchingUserInfo) - WebWatchingUserInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebWatchingUserInfo.newBuilder() to construct. - private WebWatchingUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebWatchingUserInfo() { - liveAssistantType_ = 0; - displayKsCoin_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebWatchingUserInfo(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.internal_static_WebWatchingUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.internal_static_WebWatchingUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder.class); - } - - public static final int USER_FIELD_NUMBER = 1; - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - /** - * .SimpleUserInfo user = 1; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return user_ != null; - } - /** - * .SimpleUserInfo user = 1; - * @return The user. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - /** - * .SimpleUserInfo user = 1; - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - - public static final int OFFLINE_FIELD_NUMBER = 2; - private boolean offline_ = false; - /** - * bool offline = 2; - * @return The offline. - */ - @java.lang.Override - public boolean getOffline() { - return offline_; - } - - public static final int TUHAO_FIELD_NUMBER = 3; - private boolean tuhao_ = false; - /** - * bool tuhao = 3; - * @return The tuhao. - */ - @java.lang.Override - public boolean getTuhao() { - return tuhao_; - } - - public static final int LIVEASSISTANTTYPE_FIELD_NUMBER = 4; - private int liveAssistantType_ = 0; - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return The enum numeric value on the wire for liveAssistantType. - */ - @java.lang.Override public int getLiveAssistantTypeValue() { - return liveAssistantType_; - } - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return The liveAssistantType. - */ - @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.forNumber(liveAssistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNRECOGNIZED : result; - } - - public static final int DISPLAYKSCOIN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object displayKsCoin_ = ""; - /** - * string displayKsCoin = 5; - * @return The displayKsCoin. - */ - @java.lang.Override - public java.lang.String getDisplayKsCoin() { - java.lang.Object ref = displayKsCoin_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayKsCoin_ = s; - return s; - } - } - /** - * string displayKsCoin = 5; - * @return The bytes for displayKsCoin. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayKsCoinBytes() { - java.lang.Object ref = displayKsCoin_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayKsCoin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (user_ != null) { - output.writeMessage(1, getUser()); - } - if (offline_ != false) { - output.writeBool(2, offline_); - } - if (tuhao_ != false) { - output.writeBool(3, tuhao_); - } - if (liveAssistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - output.writeEnum(4, liveAssistantType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayKsCoin_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayKsCoin_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (user_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUser()); - } - if (offline_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, offline_); - } - if (tuhao_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, tuhao_); - } - if (liveAssistantType_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNKNOWN_ASSISTANT_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, liveAssistantType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayKsCoin_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayKsCoin_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo)) { - return super.equals(obj); - } - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo) obj; - - if (hasUser() != other.hasUser()) return false; - if (hasUser()) { - if (!getUser() - .equals(other.getUser())) return false; - } - if (getOffline() - != other.getOffline()) return false; - if (getTuhao() - != other.getTuhao()) return false; - if (liveAssistantType_ != other.liveAssistantType_) return false; - if (!getDisplayKsCoin() - .equals(other.getDisplayKsCoin())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (37 * hash) + OFFLINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOffline()); - hash = (37 * hash) + TUHAO_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTuhao()); - hash = (37 * hash) + LIVEASSISTANTTYPE_FIELD_NUMBER; - hash = (53 * hash) + liveAssistantType_; - hash = (37 * hash) + DISPLAYKSCOIN_FIELD_NUMBER; - hash = (53 * hash) + getDisplayKsCoin().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code WebWatchingUserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:WebWatchingUserInfo) - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.internal_static_WebWatchingUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.internal_static_WebWatchingUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder.class); - } - - // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - offline_ = false; - tuhao_ = false; - liveAssistantType_ = 0; - displayKsCoin_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.internal_static_WebWatchingUserInfo_descriptor; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getDefaultInstanceForType() { - return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.getDefaultInstance(); - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo build() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo buildPartial() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.user_ = userBuilder_ == null - ? user_ - : userBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.offline_ = offline_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tuhao_ = tuhao_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.liveAssistantType_ = liveAssistantType_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.displayKsCoin_ = displayKsCoin_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo) { - return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo other) { - if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.getDefaultInstance()) return this; - if (other.hasUser()) { - mergeUser(other.getUser()); - } - if (other.getOffline() != false) { - setOffline(other.getOffline()); - } - if (other.getTuhao() != false) { - setTuhao(other.getTuhao()); - } - if (other.liveAssistantType_ != 0) { - setLiveAssistantTypeValue(other.getLiveAssistantTypeValue()); - } - if (!other.getDisplayKsCoin().isEmpty()) { - displayKsCoin_ = other.displayKsCoin_; - bitField0_ |= 0x00000010; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getUserFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - offline_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - tuhao_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - liveAssistantType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - displayKsCoin_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo user_; - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> userBuilder_; - /** - * .SimpleUserInfo user = 1; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .SimpleUserInfo user = 1; - * @return The user. - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo getUser() { - if (userBuilder_ == null) { - return user_ == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } else { - return userBuilder_.getMessage(); - } - } - /** - * .SimpleUserInfo user = 1; - */ - public Builder setUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - user_ = value; - } else { - userBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 1; - */ - public Builder setUser( - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder builderForValue) { - if (userBuilder_ == null) { - user_ = builderForValue.build(); - } else { - userBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 1; - */ - public Builder mergeUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo value) { - if (userBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - user_ != null && - user_ != tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance()) { - getUserBuilder().mergeFrom(value); - } else { - user_ = value; - } - } else { - userBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = null; - if (userBuilder_ != null) { - userBuilder_.dispose(); - userBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .SimpleUserInfo user = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder getUserBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getUserFieldBuilder().getBuilder(); - } - /** - * .SimpleUserInfo user = 1; - */ - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder getUserOrBuilder() { - if (userBuilder_ != null) { - return userBuilder_.getMessageOrBuilder(); - } else { - return user_ == null ? - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.getDefaultInstance() : user_; - } - } - /** - * .SimpleUserInfo user = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder> - getUserFieldBuilder() { - if (userBuilder_ == null) { - userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.SimpleUserInfoOrBuilder>( - getUser(), - getParentForChildren(), - isClean()); - user_ = null; - } - return userBuilder_; - } - - private boolean offline_ ; - /** - * bool offline = 2; - * @return The offline. - */ - @java.lang.Override - public boolean getOffline() { - return offline_; - } - /** - * bool offline = 2; - * @param value The offline to set. - * @return This builder for chaining. - */ - public Builder setOffline(boolean value) { - - offline_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * bool offline = 2; - * @return This builder for chaining. - */ - public Builder clearOffline() { - bitField0_ = (bitField0_ & ~0x00000002); - offline_ = false; - onChanged(); - return this; - } - - private boolean tuhao_ ; - /** - * bool tuhao = 3; - * @return The tuhao. - */ - @java.lang.Override - public boolean getTuhao() { - return tuhao_; - } - /** - * bool tuhao = 3; - * @param value The tuhao to set. - * @return This builder for chaining. - */ - public Builder setTuhao(boolean value) { - - tuhao_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * bool tuhao = 3; - * @return This builder for chaining. - */ - public Builder clearTuhao() { - bitField0_ = (bitField0_ & ~0x00000004); - tuhao_ = false; - onChanged(); - return this; - } - - private int liveAssistantType_ = 0; - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return The enum numeric value on the wire for liveAssistantType. - */ - @java.lang.Override public int getLiveAssistantTypeValue() { - return liveAssistantType_; - } - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @param value The enum numeric value on the wire for liveAssistantType to set. - * @return This builder for chaining. - */ - public Builder setLiveAssistantTypeValue(int value) { - liveAssistantType_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return The liveAssistantType. - */ - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType getLiveAssistantType() { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType result = tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.forNumber(liveAssistantType_); - return result == null ? tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType.UNRECOGNIZED : result; - } - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @param value The liveAssistantType to set. - * @return This builder for chaining. - */ - public Builder setLiveAssistantType(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.WebLiveAssistantType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - liveAssistantType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .WebLiveAssistantType liveAssistantType = 4; - * @return This builder for chaining. - */ - public Builder clearLiveAssistantType() { - bitField0_ = (bitField0_ & ~0x00000008); - liveAssistantType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object displayKsCoin_ = ""; - /** - * string displayKsCoin = 5; - * @return The displayKsCoin. - */ - public java.lang.String getDisplayKsCoin() { - java.lang.Object ref = displayKsCoin_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayKsCoin_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string displayKsCoin = 5; - * @return The bytes for displayKsCoin. - */ - public com.google.protobuf.ByteString - getDisplayKsCoinBytes() { - java.lang.Object ref = displayKsCoin_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayKsCoin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string displayKsCoin = 5; - * @param value The displayKsCoin to set. - * @return This builder for chaining. - */ - public Builder setDisplayKsCoin( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayKsCoin_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * string displayKsCoin = 5; - * @return This builder for chaining. - */ - public Builder clearDisplayKsCoin() { - displayKsCoin_ = getDefaultInstance().getDisplayKsCoin(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * string displayKsCoin = 5; - * @param value The bytes for displayKsCoin to set. - * @return This builder for chaining. - */ - public Builder setDisplayKsCoinBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayKsCoin_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:WebWatchingUserInfo) - } - - // @@protoc_insertion_point(class_scope:WebWatchingUserInfo) - private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo(); - } - - public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebWatchingUserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_WebWatchingUserInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_WebWatchingUserInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031WebWatchingUserInfo.proto\032\024SimpleUserI" + - "nfo.proto\032\032WebLiveAssistantType.proto\"\235\001" + - "\n\023WebWatchingUserInfo\022\035\n\004user\030\001 \001(\0132\017.Si" + - "mpleUserInfo\022\017\n\007offline\030\002 \001(\010\022\r\n\005tuhao\030\003" + - " \001(\010\0220\n\021liveAssistantType\030\004 \001(\0162\025.WebLiv" + - "eAssistantType\022\025\n\rdisplayKsCoin\030\005 \001(\tB6\n" + - "4tech.ordinaryroad.live.chat.client.kuai" + - "shou.protobufb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(), - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor(), - }); - internal_static_WebWatchingUserInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_WebWatchingUserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_WebWatchingUserInfo_descriptor, - new java.lang.String[] { "User", "Offline", "Tuhao", "LiveAssistantType", "DisplayKsCoin", }); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SimpleUserInfoOuterClass.getDescriptor(); - tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebLiveAssistantTypeOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/AuditAudienceMask.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/AuditAudienceMask.proto deleted file mode 100644 index 8ffa40ce..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/AuditAudienceMask.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -import "LiveCdnNodeView.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message AuditAudienceMask { - repeated LiveCdnNodeView iconCdnNodeView = 1; - string title = 2; - string detail = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSError.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSError.proto deleted file mode 100644 index 0e179c2b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSError.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSError { - uint32 code = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSHeartbeat.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSHeartbeat.proto deleted file mode 100644 index 0b379093..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSHeartbeat.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSHeartbeat { - uint64 timestamp = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSPing.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSPing.proto deleted file mode 100644 index a7b66fbd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSPing.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; -import "ClientId.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSPing { - string echoData = 1; - ClientId clientId = 2; - string deviceId = 3; - string appVer = 4; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebEnterRoom.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebEnterRoom.proto deleted file mode 100644 index 3b88423c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebEnterRoom.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSWebEnterRoom { - string token = 1; - string liveStreamId = 2; - uint32 reconnectCount = 3; - uint32 lastErrorCode = 4; - string expTag = 5; - string attach = 6; - string pageId = 7; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebError.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebError.proto deleted file mode 100644 index e49d4d4a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebError.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSWebError { - uint32 code = 1; - string msg = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebHeartbeat.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebHeartbeat.proto deleted file mode 100644 index bde62487..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebHeartbeat.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSWebHeartbeat { - uint64 timestamp = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebUserExit.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebUserExit.proto deleted file mode 100644 index 348f3aa0..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebUserExit.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSWebUserExit { - uint64 time = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebUserPause.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebUserPause.proto deleted file mode 100644 index 5987e019..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/CSWebUserPause.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -import "WebUserPauseType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message CSWebUserPause { - uint64 time = 1; - WebUserPauseType pauseType = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ClientId.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ClientId.proto deleted file mode 100644 index 5ec34ad7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ClientId.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum ClientId { - NONE = 0; - IPHONE = 1; - ANDROID = 2; - WEB = 3; - PC = 6; - IPHONE_LIVE_MATE = 8; - ANDROID_LIVE_MATE = 9; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ConfigSwitchItem.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ConfigSwitchItem.proto deleted file mode 100644 index efb3507a..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ConfigSwitchItem.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -import "ConfigSwitchType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message ConfigSwitchItem { - ConfigSwitchType configSwitchType = 1; - bool value = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ConfigSwitchType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ConfigSwitchType.proto deleted file mode 100644 index 3fa75b87..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/ConfigSwitchType.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum ConfigSwitchType { - UNKNOWN = 0; - HIDE_BARRAGE = 1; - HIDE_SPECIAL_EFFECT = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/GzoneNameplate.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/GzoneNameplate.proto deleted file mode 100644 index b8212e74..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/GzoneNameplate.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -import "PicUrl.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message GzoneNameplate { - int64 id = 1; - string name = 2; - repeated PicUrl urls = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveAudienceState.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveAudienceState.proto deleted file mode 100644 index 79c06361..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveAudienceState.proto +++ /dev/null @@ -1,22 +0,0 @@ -syntax = "proto3"; -import "GzoneNameplate.proto"; -import "LiveFansGroupState.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message LiveAudienceState { - bool isFromFansTop = 1; - bool isKoi = 2; - AssistantType assistantType = 3; - uint32 fansGroupIntimacyLevel = 4; - GzoneNameplate nameplate = 5; - LiveFansGroupState liveFansGroupState = 6; - uint32 wealthGrade = 7; - string badgeKey = 8; - -enum AssistantType { - UNKNOWN_ASSISTANT_TYPE = 0; - SUPER = 1; - JUNIOR = 2; -} -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveCdnNodeView.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveCdnNodeView.proto deleted file mode 100644 index 495eb9e7..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveCdnNodeView.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message LiveCdnNodeView { - string cdn = 1; - string url = 2; - bool freeTraffic = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveFansGroupState.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveFansGroupState.proto deleted file mode 100644 index 107d4fd4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/LiveFansGroupState.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message LiveFansGroupState { - uint32 intimacyLevel = 1; - uint32 enterRoomSpecialEffect = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PSHostInfo.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PSHostInfo.proto deleted file mode 100644 index 1eb30422..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PSHostInfo.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message PSHostInfo { - string ip = 1; - int32 port = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PayloadType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PayloadType.proto deleted file mode 100644 index 05eafc26..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PayloadType.proto +++ /dev/null @@ -1,65 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum PayloadType { - UNKNOWN = 0; - CS_HEARTBEAT = 1; - CS_ERROR = 3; - CS_PING = 4; - PS_HOST_INFO = 51; - SC_HEARTBEAT_ACK = 101; - SC_ECHO = 102; - SC_ERROR = 103; - SC_PING_ACK = 104; - SC_INFO = 105; - CS_ENTER_ROOM = 200; - CS_USER_PAUSE = 201; - CS_USER_EXIT = 202; - CS_AUTHOR_PUSH_TRAFFIC_ZERO = 203; - CS_HORSE_RACING = 204; - CS_RACE_LOSE = 205; - CS_VOIP_SIGNAL = 206; - SC_ENTER_ROOM_ACK = 300; - SC_AUTHOR_PAUSE = 301; - SC_AUTHOR_RESUME = 302; - SC_AUTHOR_PUSH_TRAFFIC_ZERO = 303; - SC_AUTHOR_HEARTBEAT_MISS = 304; - SC_PIP_STARTED = 305; - SC_PIP_ENDED = 306; - SC_HORSE_RACING_ACK = 307; - SC_VOIP_SIGNAL = 308; - SC_FEED_PUSH = 310; - SC_ASSISTANT_STATUS = 311; - SC_REFRESH_WALLET = 312; - SC_LIVE_CHAT_CALL = 320; - SC_LIVE_CHAT_CALL_ACCEPTED = 321; - SC_LIVE_CHAT_CALL_REJECTED = 322; - SC_LIVE_CHAT_READY = 323; - SC_LIVE_CHAT_GUEST_END = 324; - SC_LIVE_CHAT_ENDED = 325; - SC_RENDERING_MAGIC_FACE_DISABLE = 326; - SC_RENDERING_MAGIC_FACE_ENABLE = 327; - SC_RED_PACK_FEED = 330; - SC_LIVE_WATCHING_LIST = 340; - SC_LIVE_QUIZ_QUESTION_ASKED = 350; - SC_LIVE_QUIZ_QUESTION_REVIEWED = 351; - SC_LIVE_QUIZ_SYNC = 352; - SC_LIVE_QUIZ_ENDED = 353; - SC_LIVE_QUIZ_WINNERS = 354; - SC_SUSPECTED_VIOLATION = 355; - SC_SHOP_OPENED = 360; - SC_SHOP_CLOSED = 361; - SC_GUESS_OPENED = 370; - SC_GUESS_CLOSED = 371; - SC_PK_INVITATION = 380; - SC_PK_STATISTIC = 381; - SC_RIDDLE_OPENED = 390; - SC_RIDDLE_CLOESED = 391; - SC_RIDE_CHANGED = 412; - SC_BET_CHANGED = 441; - SC_BET_CLOSED = 442; - SC_LIVE_SPECIAL_ACCOUNT_CONFIG_STATE = 645; - SC_LIVE_WARNING_MASK_STATUS_CHANGED_AUDIENCE = 758; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PicUrl.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PicUrl.proto deleted file mode 100644 index 891fea72..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/PicUrl.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message PicUrl { - string cdn = 1; - string url = 2; - string urlPattern = 3; - string ip = 4; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCEcho.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCEcho.proto deleted file mode 100644 index 6682ba66..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCEcho.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCEcho { - string content = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCError.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCError.proto deleted file mode 100644 index c9010285..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCError.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCError { - uint32 code = 1; - string msg = 2; - uint32 subCode = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCHeartbeatAck.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCHeartbeatAck.proto deleted file mode 100644 index 9242e934..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCHeartbeatAck.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCHeartbeatAck { - uint64 timestamp = 1; - uint64 clientTimestamp = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCInfo.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCInfo.proto deleted file mode 100644 index 3099f775..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCInfo.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCInfo { - uint32 code = 1; - string msg = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCLiveWarningMaskStatusChangedAudience.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCLiveWarningMaskStatusChangedAudience.proto deleted file mode 100644 index ebceb655..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCLiveWarningMaskStatusChangedAudience.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -import "AuditAudienceMask.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCLiveWarningMaskStatusChangedAudience { - bool displayMask = 1; - AuditAudienceMask warningMask = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCPingAck.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCPingAck.proto deleted file mode 100644 index 202a86a6..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCPingAck.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCPingAck { - string echoData = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebAuthorPause.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebAuthorPause.proto deleted file mode 100644 index 7beb4e68..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebAuthorPause.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -import "WebPauseType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebAuthorPause { - uint64 time = 1; - WebPauseType pauseType = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebAuthorResume.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebAuthorResume.proto deleted file mode 100644 index fdeae3a9..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebAuthorResume.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebAuthorResume { - uint64 time = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebBetChanged.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebBetChanged.proto deleted file mode 100644 index a8b58cba..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebBetChanged.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebBetChanged { - uint64 maxDelayMillis = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebBetClosed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebBetClosed.proto deleted file mode 100644 index dec4c1de..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebBetClosed.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebBetClosed { - uint64 maxDelayMillis = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebCurrentRedPackFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebCurrentRedPackFeed.proto deleted file mode 100644 index 64b9a41b..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebCurrentRedPackFeed.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -import "WebRedPackInfo.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebCurrentRedPackFeed { - repeated WebRedPackInfo redPack = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebEnterRoomAck.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebEnterRoomAck.proto deleted file mode 100644 index 8885071c..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebEnterRoomAck.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebEnterRoomAck { - uint64 minReconnectMs = 1; - uint64 maxReconnectMs = 2; - uint64 heartbeatIntervalMs = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebError.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebError.proto deleted file mode 100644 index 7bc86441..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebError.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebError { - uint32 code = 1; - string msg = 2; - uint32 subCode = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebFeedPush.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebFeedPush.proto deleted file mode 100644 index c7c41d1d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebFeedPush.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; -import "WebCommentFeed.proto"; -import "WebComboCommentFeed.proto"; -import "WebLikeFeed.proto"; -import "WebGiftFeed.proto"; -import "WebSystemNoticeFeed.proto"; -import "WebShareFeed.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebFeedPush { - string displayWatchingCount = 1; - string displayLikeCount = 2; - uint64 pendingLikeCount = 3; - uint64 pushInterval = 4; - repeated WebCommentFeed commentFeeds = 5; - string commentCursor = 6; - repeated WebComboCommentFeed comboCommentFeed = 7; - repeated WebLikeFeed likeFeeds = 8; - repeated WebGiftFeed giftFeeds = 9; - string giftCursor = 10; - repeated WebSystemNoticeFeed systemNoticeFeeds = 11; - repeated WebShareFeed shareFeeds = 12; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebGuessClosed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebGuessClosed.proto deleted file mode 100644 index 53e3f635..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebGuessClosed.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebGuessClosed { - uint64 time = 1; - string guessId = 2; - uint64 displayMaxDelayMillis = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebGuessOpened.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebGuessOpened.proto deleted file mode 100644 index d46f065d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebGuessOpened.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebGuessOpened { - uint64 time = 1; - string guessId = 2; - uint64 submitDeadline = 3; - uint64 displayMaxDelayMillis = 4; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebHeartbeatAck.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebHeartbeatAck.proto deleted file mode 100644 index 6a6e32be..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebHeartbeatAck.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebHeartbeatAck { - uint64 timestamp = 1; - uint64 clientTimestamp = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebLiveSpecialAccountConfigState.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebLiveSpecialAccountConfigState.proto deleted file mode 100644 index bd2b5fe2..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebLiveSpecialAccountConfigState.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; -import "ConfigSwitchItem.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebLiveSpecialAccountConfigState { - repeated ConfigSwitchItem configSwitchItem = 1; - uint64 timestamp = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebLiveWatchingUsers.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebLiveWatchingUsers.proto deleted file mode 100644 index c8381735..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebLiveWatchingUsers.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -import "WebWatchingUserInfo.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebLiveWatchingUsers { - repeated WebWatchingUserInfo watchingUser = 1; - string displayWatchingCount = 2; - uint64 pendingDuration = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebPipEnded.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebPipEnded.proto deleted file mode 100644 index 1fb073d8..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebPipEnded.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebPipEnded { - uint64 time = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebPipStarted.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebPipStarted.proto deleted file mode 100644 index 5693a3d1..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebPipStarted.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebPipStarted { - uint64 time = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebRefreshWallet.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebRefreshWallet.proto deleted file mode 100644 index f51c5390..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebRefreshWallet.proto +++ /dev/null @@ -1,8 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebRefreshWallet { - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebRideChanged.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebRideChanged.proto deleted file mode 100644 index 2c31e7be..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebRideChanged.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebRideChanged { - string rideId = 1; - uint32 requestMaxDelayMillis = 2; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebSuspectedViolation.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebSuspectedViolation.proto deleted file mode 100644 index a2541043..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SCWebSuspectedViolation.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SCWebSuspectedViolation { - bool suspectedViolation = 1; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SimpleUserInfo.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SimpleUserInfo.proto deleted file mode 100644 index cff3feaa..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SimpleUserInfo.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SimpleUserInfo { - string principalId = 1; - string userName = 2; - string headUrl = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SocketMessage.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SocketMessage.proto deleted file mode 100644 index f75cfed3..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/SocketMessage.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; -import "PayloadType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message SocketMessage { - PayloadType payloadType = 1; - CompressionType compressionType = 2; - bytes payload = 3; - -enum CompressionType { - UNKNOWN = 0; - NONE = 1; - GZIP = 2; - AES = 3; -} -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/UserInfo.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/UserInfo.proto deleted file mode 100644 index 5609492f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/UserInfo.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; -import "PicUrl.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message UserInfo { - uint64 userId = 1; - string userName = 2; - string userGender = 3; - string userText = 4; - repeated PicUrl headUrls = 5; - bool verified = 6; - string sUserId = 7; - repeated PicUrl httpsHeadUrls = 8; - string kwaiId = 9; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebComboCommentFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebComboCommentFeed.proto deleted file mode 100644 index 1ee68ca5..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebComboCommentFeed.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebComboCommentFeed { - string id = 1; - string content = 2; - uint32 comboCount = 3; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebCommentFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebCommentFeed.proto deleted file mode 100644 index 19c776ba..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebCommentFeed.proto +++ /dev/null @@ -1,18 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; -import "WebCommentFeedShowType.proto"; -import "LiveAudienceState.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebCommentFeed { - string id = 1; - SimpleUserInfo user = 2; - string content = 3; - string deviceHash = 4; - uint64 sortRank = 5; - string color = 6; - WebCommentFeedShowType showType = 7; - LiveAudienceState senderState = 8; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebCommentFeedShowType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebCommentFeedShowType.proto deleted file mode 100644 index 7f11ee4d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebCommentFeedShowType.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum WebCommentFeedShowType { - FEED_SHOW_UNKNOWN = 0; - FEED_SHOW_NORMAL = 1; - FEED_HIDDEN = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebGiftFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebGiftFeed.proto deleted file mode 100644 index 0ff3c6cd..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebGiftFeed.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; -import "WebLiveAssistantType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebGiftFeed { - string id = 1; - SimpleUserInfo user = 2; - uint64 time = 3; - uint32 intGiftId = 4; - uint64 sortRank = 5; - string mergeKey = 6; - uint32 batchSize = 7; - uint32 comboCount = 8; - uint32 rank = 9; - uint64 expireDuration = 10; - uint64 clientTimestamp = 11; - uint64 slotDisplayDuration = 12; - uint32 starLevel = 13; - StyleType styleType = 14; - WebLiveAssistantType liveAssistantType = 15; - string deviceHash = 16; - bool danmakuDisplay = 17; - -enum StyleType { - UNKNOWN_STYLE = 0; - BATCH_STAR_0 = 1; - BATCH_STAR_1 = 2; - BATCH_STAR_2 = 3; - BATCH_STAR_3 = 4; - BATCH_STAR_4 = 5; - BATCH_STAR_5 = 6; - BATCH_STAR_6 = 7; -} -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebLikeFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebLikeFeed.proto deleted file mode 100644 index ebcd99ea..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebLikeFeed.proto +++ /dev/null @@ -1,12 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebLikeFeed { - string id = 1; - SimpleUserInfo user = 2; - uint64 sortRank = 3; - string deviceHash = 4; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebLiveAssistantType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebLiveAssistantType.proto deleted file mode 100644 index dc7c85f4..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebLiveAssistantType.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum WebLiveAssistantType { - UNKNOWN_ASSISTANT_TYPE = 0; - SUPER = 1; - JUNIOR = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebPauseType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebPauseType.proto deleted file mode 100644 index c190e09f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebPauseType.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum WebPauseType { - UNKNOWN_PAUSE_TYPE = 0; - TELEPHONE = 1; - SHARE = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebRedPackCoverType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebRedPackCoverType.proto deleted file mode 100644 index 25bc6a59..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebRedPackCoverType.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum WebRedPackCoverType { - UNKNOWN_COVER_TYPE = 0; - NORMAL_COVER = 1; - PRETTY_COVER = 2; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebRedPackInfo.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebRedPackInfo.proto deleted file mode 100644 index c99aac40..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebRedPackInfo.proto +++ /dev/null @@ -1,19 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; -import "WebRedPackCoverType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebRedPackInfo { - string id = 1; - SimpleUserInfo author = 2; - uint64 balance = 3; - uint64 openTime = 4; - uint64 currentTime = 5; - string grabToken = 6; - bool needSendRequest = 7; - uint64 requestDelayMillis = 8; - uint64 luckiestDelayMillis = 9; - WebRedPackCoverType coverType = 10; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebShareFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebShareFeed.proto deleted file mode 100644 index 9e829a3f..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebShareFeed.proto +++ /dev/null @@ -1,16 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; -import "WebLiveAssistantType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebShareFeed { - string id = 1; - SimpleUserInfo user = 2; - uint64 time = 3; - uint32 thirdPartyPlatform = 4; - uint64 sortRank = 5; - WebLiveAssistantType liveAssistantType = 6; - string deviceHash = 7; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebSystemNoticeFeed.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebSystemNoticeFeed.proto deleted file mode 100644 index a6a5ae20..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebSystemNoticeFeed.proto +++ /dev/null @@ -1,21 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebSystemNoticeFeed { - string id = 1; - SimpleUserInfo user = 2; - uint64 time = 3; - string content = 4; - uint64 displayDuration = 5; - uint64 sortRank = 6; - DisplayType displayType = 7; - -enum DisplayType { - UNKNOWN_DISPLAY_TYPE = 0; - COMMENT = 1; - ALERT = 2; - TOAST = 3; -} -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebUserPauseType.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebUserPauseType.proto deleted file mode 100644 index 9f3d2843..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebUserPauseType.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; - - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -enum WebUserPauseType { - UNKNOWN_USER_PAUSE_TYPE = 0; - BACKGROUND = 1; -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebWatchingUserInfo.proto b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebWatchingUserInfo.proto deleted file mode 100644 index ad6a10ae..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/main/resources/proto/WebWatchingUserInfo.proto +++ /dev/null @@ -1,14 +0,0 @@ -syntax = "proto3"; -import "SimpleUserInfo.proto"; -import "WebLiveAssistantType.proto"; - -option java_package = "tech.ordinaryroad.live.chat.client.kuaishou.protobuf"; - -message WebWatchingUserInfo { - SimpleUserInfo user = 1; - bool offline = 2; - bool tuhao = 3; - WebLiveAssistantType liveAssistantType = 4; - string displayKsCoin = 5; - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/test/java/tech/ordinaryroad/live/chat/client/kuaishou/api/KuaishouApisTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/test/java/tech/ordinaryroad/live/chat/client/kuaishou/api/KuaishouApisTest.java deleted file mode 100644 index db2fa9eb..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/test/java/tech/ordinaryroad/live/chat/client/kuaishou/api/KuaishouApisTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package tech.ordinaryroad.live.chat.client.kuaishou.api; - -import org.junit.jupiter.api.Test; - -import java.util.Map; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotEquals; - -/** - * @author mjz - * @date 2024/1/6 - */ -class KuaishouApisTest { - - @Test - void allgifts() { - Map allgifts = KuaishouApis.allgifts(); - assertNotEquals(0, allgifts.size()); - } - - @Test - void getGiftInfoById() { - KuaishouApis.GiftInfo giftInfoById = KuaishouApis.getGiftInfoById("1"); - assertEquals("荧光棒", giftInfoById.getGiftName()); - - } - - @Test - void sendComment() { - System.out.println(KuaishouApis.sendComment(System.getenv("cookie"), - "3x6pb6bcmjrarvs", - KuaishouApis.SendCommentRequest - .builder() - .liveStreamId("XKLoBv2mAEo") - .content("666666a") - .build() - )); - } -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/test/java/tech/ordinaryroad/live/chat/client/kuaishou/client/KuaishouLiveChatClientTest.java b/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/test/java/tech/ordinaryroad/live/chat/client/kuaishou/client/KuaishouLiveChatClientTest.java deleted file mode 100644 index ad94357d..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/live-chat-client-kuaishou/src/test/java/tech/ordinaryroad/live/chat/client/kuaishou/client/KuaishouLiveChatClientTest.java +++ /dev/null @@ -1,206 +0,0 @@ -package tech.ordinaryroad.live.chat.client.kuaishou.client; - -import cn.hutool.core.thread.ThreadUtil; -import lombok.extern.slf4j.Slf4j; -import org.junit.jupiter.api.Test; -import tech.ordinaryroad.live.chat.client.commons.base.msg.ICmdMsg; -import tech.ordinaryroad.live.chat.client.commons.base.msg.IMsg; -import tech.ordinaryroad.live.chat.client.commons.client.enums.ClientStatusEnums; -import tech.ordinaryroad.live.chat.client.kuaishou.config.KuaishouLiveChatClientConfig; -import tech.ordinaryroad.live.chat.client.kuaishou.listener.IKuaishouMsgListener; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouDanmuMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouGiftMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.msg.KuaishouLikeMsg; -import tech.ordinaryroad.live.chat.client.kuaishou.netty.handler.KuaishouBinaryFrameHandler; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.PayloadTypeOuterClass; -import tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebGiftFeedOuterClass; - -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author mjz - * @date 2024/1/5 - */ -@Slf4j -class KuaishouLiveChatClientTest { - - Map> map = new HashMap<>(); - - static Object lock = new Object(); - KuaishouLiveChatClient client; - - @Test - void example() throws InterruptedException { - String cookie = System.getenv("cookie"); -// String cookie =""; - log.error("cookie: {}", cookie); - KuaishouLiveChatClientConfig config = KuaishouLiveChatClientConfig.builder() - // TODO 浏览器Cookie - .cookie(cookie) - .roomId("3xpbyu443usqwau") - .roomId("DX204317461") - .roomId("xzx11234") - .roomId("N-ik-T8-20") - .roomId("3x9f7e3t3fsr74k") - .roomId("3xiqpb2riusznvq") - .roomId("QQ2027379716") - .roomId("xiannvwan1008") - // 祁天道 - .roomId("t8888888") - .roomId("by529529") - // 大师2 - .roomId("3x6pb6bcmjrarvs") - .roomId("3xbyfeffjhky7b2") - // 月神 - .roomId("YUE99999") - .roomId("mengyu980726") - // 大师1 - .roomId("3xkz5pb2kx3q4u6") - .build(); - - client = new KuaishouLiveChatClient(config, new IKuaishouMsgListener() { - @Override - public void onMsg(IMsg msg) { - // log.debug("收到{}消息 {}", msg.getClass(), msg); - } - - @Override - public void onCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { - // log.debug("收到CMD消息{} {}", cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { - log.debug("收到其他CMD消息 {}", cmd); - } - - @Override - public void onUnknownCmd(String cmdString, IMsg msg) { - log.debug("收到未知CMD消息 {}", cmdString); - } - - @Override - public void onDanmuMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouDanmuMsg msg) { - log.info("{} 收到弹幕 [{}] {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouGiftMsg msg) { - String mergeKey = msg.getMsg().getMergeKey(); - map.computeIfAbsent(mergeKey, s -> new ArrayList<>()).add(msg.getMsg()); - - log.info("{} 收到礼物 [{}] {}({}) {} {}({})x{}({}) mergeKey:{},comboCount:{}, batchSize:{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), "赠送", msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice(), msg.getMsg().getMergeKey(), msg.getMsg().getComboCount(), msg.getMsg().getBatchSize()); - } - }); - - client.addStatusChangeListener(new PropertyChangeListener() { - @Override - public void propertyChange(PropertyChangeEvent evt) { - ClientStatusEnums newValue = (ClientStatusEnums) evt.getNewValue(); - if (newValue == ClientStatusEnums.CONNECTED) { - // 连接成功5秒后发送弹幕 - ThreadUtil.execAsync(() -> { - ThreadUtil.sleep(10000); - client.sendDanmu("666666", new Runnable() { - @Override - public void run() { - log.warn("弹幕发送成功"); - } - }); - }); - } - } - }); - - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - - @Test - void clickLike() throws Exception { - String cookie = System.getenv("cookie"); -// String cookie =""; - log.error("cookie: {}", cookie); - KuaishouLiveChatClientConfig config = KuaishouLiveChatClientConfig.builder() - .cookie(cookie) - .roomId("K6866676") - .roomId("xinsang_") - .roomId("lollaopu") - .roomId("YTC2844073618") - .build(); - - client = new KuaishouLiveChatClient(config, new IKuaishouMsgListener() { - @Override - public void onMsg(IMsg msg) { -// log.debug("收到{}消息 {}", msg.getClass(), msg); - } - - @Override - public void onCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { -// log.debug("收到CMD消息{} {}", cmd, cmdMsg); - } - - @Override - public void onOtherCmdMsg(PayloadTypeOuterClass.PayloadType cmd, ICmdMsg cmdMsg) { -// log.debug("收到其他CMD消息 {}", cmd); - } - - @Override - public void onUnknownCmd(String cmdString, IMsg msg) { -// log.debug("收到未知CMD消息 {}", cmdString); - } - - @Override - public void onDanmuMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouDanmuMsg msg) { - log.info("{} 收到弹幕 [{}] {}({}):{}", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), msg.getContent()); - } - - @Override - public void onGiftMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouGiftMsg msg) { - log.info("{} 收到礼物 [{}] {}({}) {} {}({})x{}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid(), "赠送", msg.getGiftName(), msg.getGiftId(), msg.getGiftCount(), msg.getGiftPrice()); - } - - @Override - public void onLikeMsg(KuaishouBinaryFrameHandler binaryFrameHandler, KuaishouLikeMsg msg) { - log.info("{} 收到点赞 [{}] {}({})", binaryFrameHandler.getRoomId(), msg.getBadgeLevel() != 0 ? msg.getBadgeLevel() + msg.getBadgeName() : "", msg.getUsername(), msg.getUid()); - } - }); - - client.addStatusChangeListener(evt -> { - ClientStatusEnums newValue = (ClientStatusEnums) evt.getNewValue(); - if (newValue == ClientStatusEnums.CONNECTED) { - // 连接成功10秒后发送弹幕 - ThreadUtil.execAsync(() -> { - ThreadUtil.sleep(10000); - client.sendDanmu("6666a", () -> { - log.warn("弹幕发送成功"); - client.clickLike(13, () -> { - log.warn("为直播间点赞成功"); - }); - }); - }); - } - }); - - client.connect(); - - // 防止测试时直接退出 - while (true) { - synchronized (lock) { - lock.wait(); - } - } - } - -} \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-live/live-chat-clients/pom.xml b/ruoyi-common/ruoyi-common-live/live-chat-clients/pom.xml deleted file mode 100644 index e06e8a08..00000000 --- a/ruoyi-common/ruoyi-common-live/live-chat-clients/pom.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - 4.0.0 - - org.ruoyi - ruoyi-common-live - ${revision} - ../pom.xml - - - pom - - live-chat-clients - live-chat-client - - - live-chat-client-bilibili - live-chat-client-douyu - live-chat-client-huya - live-chat-client-douyin - live-chat-client-kuaishou - - diff --git a/ruoyi-common/ruoyi-common-live/pom.xml b/ruoyi-common/ruoyi-common-live/pom.xml deleted file mode 100644 index 9e6fe9b8..00000000 --- a/ruoyi-common/ruoyi-common-live/pom.xml +++ /dev/null @@ -1,177 +0,0 @@ - - - org.ruoyi - ruoyi-common - ${revision} - ../pom.xml - - pom - 4.0.0 - ruoyi-common-live - - - 弹幕监听 - - - - live-chat-client-commons - live-chat-client-servers - live-chat-clients - - - - 8 - 8 - UTF-8 - 3.2.1 - 3.5.0 - 3.1.0 - 1.6.13 - - 1.13.0 - 2.16.0 - 5.8.24 - 4.1.104.Final - 1.4.12 - 1.18.30 - 5.10.1 - 3.25.1 - 1.7.3 - - - - - - org.ruoyi - live-chat-client-commons-base - 1.0.0 - - - - org.ruoyi - live-chat-client-commons-util - 1.0.0 - - - - org.ruoyi - live-chat-client-commons-client - 1.0.0 - - - - org.ruoyi - live-chat-client-servers-netty - 1.0.0 - - - - org.ruoyi - live-chat-client-servers-netty-client - 1.0.0 - - - - org.ruoyi - live-chat-client-bilibili - 1.0.0 - - - - org.ruoyi - live-chat-client-douyu - 1.0.0 - - - - org.ruoyi - live-chat-client-huya - 1.0.0 - - - - org.ruoyi - live-chat-client-douyin - 1.0.0 - - - - org.ruoyi - live-chat-client-kuaishou - 1.0.0 - - - - com.aayushatharva.brotli4j - brotli4j - ${brotli4j.version} - - - - com.google.protobuf - protobuf-java-util - ${protobuf-java-util.version} - - - - com.fasterxml.jackson.core - jackson-databind - ${jackson-databind.version} - - - - cn.hutool - hutool-all - ${hutool-all.version} - - - - io.netty - netty-all - ${netty-all.version} - - - - com.tencent.tars - tars-core - ${tars-core.version} - - - - ch.qos.logback - logback-classic - ${logback-classic.version} - - - - org.projectlombok - lombok - ${lombok.version} - compile - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - - - - - org.projectlombok - lombok - provided - - - - com.squareup.okhttp3 - okhttp - 4.10.0 - - - - diff --git a/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/MailConfig.java b/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/MailConfig.java index acd82278..28001d16 100644 --- a/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/MailConfig.java +++ b/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/MailConfig.java @@ -7,8 +7,7 @@ import org.ruoyi.common.core.service.ConfigService; import org.ruoyi.common.mail.utils.MailAccount; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Scope; -import org.springframework.scheduling.annotation.Scheduled; + /** * JavaMail 配置 @@ -22,10 +21,9 @@ import org.springframework.scheduling.annotation.Scheduled; public class MailConfig { private final ConfigService configService; - private MailAccount account; // 缓存MailAccount实例 + private MailAccount account; @Bean - @Scope("singleton") public MailAccount mailAccount() { if (account == null) { account = new MailAccount(); @@ -34,7 +32,6 @@ public class MailConfig { return account; } - @Scheduled(fixedDelay = 10000) // 每10秒检查一次 public void updateMailAccount() { account.setHost(getKey("host")); account.setPort(NumberUtils.toInt(getKey("port"), 465)); diff --git a/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/properties/MailProperties.java b/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/properties/MailProperties.java similarity index 95% rename from ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/properties/MailProperties.java rename to ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/properties/MailProperties.java index 246172bb..e2a9e1db 100644 --- a/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/config/properties/MailProperties.java +++ b/ruoyi-common/ruoyi-common-mail/src/main/java/org/ruoyi/common/mail/properties/MailProperties.java @@ -1,4 +1,4 @@ -package org.ruoyi.common.mail.config.properties; +package org.ruoyi.common.mail.properties; import lombok.Data; diff --git a/ruoyi-common/ruoyi-common-pay/pom.xml b/ruoyi-common/ruoyi-common-pay/pom.xml deleted file mode 100644 index 036991ac..00000000 --- a/ruoyi-common/ruoyi-common-pay/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - 4.0.0 - - org.ruoyi - ruoyi-common - ${revision} - ../pom.xml - - - ruoyi-common-pay - - - org.ruoyi - ruoyi-common-web - - - com.google.zxing - core - 3.3.3 - - - org.springframework.boot - spring-boot-starter-test - test - - - - com.stripe - stripe-java - 22.5.1 - - - - cn.hutool - hutool-all - 5.8.12 - - - - 17 - 17 - UTF-8 - - - diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/PayConfig.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/PayConfig.java deleted file mode 100644 index a5c92c3b..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/PayConfig.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.ruoyi.common.config; - -import lombok.Data; - -/** - * 支付配置信息 - * - * @author Admin - */ -@Data -public class PayConfig { - - /** - * 商户ID - */ - private String pid; - - /** - * 接口地址 - */ - private String payUrl; - - /** - * 私钥 - */ - private String key ; - - /** - * 服务器异步通知地址 - */ - private String notify_url; - - /** - * 页面跳转通知地址 - */ - private String return_url; - - /** - * 支付方式 - */ - private String type; - - /** - * 设备类型 - */ - private String device; - - /** - * 加密方式默认MD5 - */ - private String sign_type; - -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/PayInit.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/PayInit.java deleted file mode 100644 index 47126cef..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/PayInit.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.ruoyi.common.config; - -import org.ruoyi.common.core.service.ConfigService; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Scope; -import org.springframework.scheduling.annotation.Scheduled; - -/** - * 支付配置信息 - * - * @author Admin - */ -@RequiredArgsConstructor -@Configuration -@Slf4j -public class PayInit { - - private final ConfigService configService; - - private PayConfig payConfig; - - @Bean - @Scope("singleton") - public PayConfig payConfig() { - if (payConfig == null) { - payConfig = new PayConfig(); - updatePayConfig(); - } - return payConfig; - } - - @Scheduled(fixedDelay = 10000) // 每10秒检查一次 - public void updatePayConfig() { - payConfig.setType("wxpay"); - payConfig.setDevice("pc"); - payConfig.setSign_type("MD5"); - payConfig.setPid(getKey("pid")); - payConfig.setKey(getKey("key")); - payConfig.setPayUrl(getKey("payUrl")); - payConfig.setNotify_url(getKey("notify_url")); - payConfig.setReturn_url(getKey("return_url")); - } - - public String getKey(String key){ - return configService.getConfigValue("pay", key); - } - -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/WxPayConfiguration.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/WxPayConfiguration.java deleted file mode 100644 index cbe33cd0..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/config/WxPayConfiguration.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.ruoyi.common.config; - -import com.github.binarywang.wxpay.config.WxPayConfig; -import com.github.binarywang.wxpay.service.WxPayService; -import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl; - -import org.ruoyi.common.core.service.ConfigService; -import jakarta.annotation.PostConstruct; -import lombok.RequiredArgsConstructor; -import org.apache.commons.lang3.StringUtils; -import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * @author Binary Wang - */ -@Configuration -@RequiredArgsConstructor -public class WxPayConfiguration { - - private final ConfigService configService; - - private WxPayService wxPayService; - - @PostConstruct - public void init() { - WxPayConfig payConfig = new WxPayConfig(); - payConfig.setAppId(StringUtils.trimToNull(getKey("appId"))); - payConfig.setMchId(StringUtils.trimToNull(getKey("mchId"))); - payConfig.setMchKey(StringUtils.trimToNull(getKey("appSecret"))); - payConfig.setUseSandboxEnv(false); - wxPayService = new WxPayServiceImpl(); - wxPayService.setConfig(payConfig); - } - - @Bean - @ConditionalOnMissingBean - public WxPayService wxService() { - return wxPayService; - } - - public String getKey(String key) { - return configService.getConfigValue("weixin", key); - } - -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/listener/ConfigChangeListener.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/listener/ConfigChangeListener.java deleted file mode 100644 index b6b4fec8..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/listener/ConfigChangeListener.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.ruoyi.common.listener; - -import com.github.binarywang.wxpay.config.WxPayConfig; -import com.github.binarywang.wxpay.service.WxPayService; -import org.ruoyi.common.core.event.ConfigChangeEvent; -import org.ruoyi.common.core.service.ConfigService; -import org.ruoyi.common.core.utils.StringUtils; -import org.jetbrains.annotations.NotNull; -import org.springframework.context.ApplicationListener; -import org.springframework.stereotype.Component; - -/** - * 描述:创建一个监听器,用于处理配置变化事件 - * - * @author ageerle@163.com - * date 2024/5/19 - */ -@Component -public class ConfigChangeListener implements ApplicationListener { - private final WxPayService wxPayService; - private final ConfigService configService; - - public ConfigChangeListener(WxPayService wxPayService, ConfigService configService) { - this.wxPayService = wxPayService; - this.configService = configService; - } - - @Override - public void onApplicationEvent(@NotNull ConfigChangeEvent event) { - WxPayConfig newConfig = new WxPayConfig(); - newConfig.setAppId(StringUtils.trimToNull(configService.getConfigValue("weixin", "appId"))); - newConfig.setMchId(StringUtils.trimToNull(configService.getConfigValue("weixin", "mchId"))); - newConfig.setMchKey(StringUtils.trimToNull(configService.getConfigValue("weixin", "mchKey"))); - newConfig.setUseSandboxEnv(false); - wxPayService.setConfig(newConfig); - } -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/response/PayResponse.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/response/PayResponse.java deleted file mode 100644 index 21690be0..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/response/PayResponse.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.ruoyi.common.response; - -import com.fasterxml.jackson.annotation.JsonProperty; -import lombok.Data; - -/** - * 支付结果响应 - * - * @author: wangle - * @date: 2023/7/3 - */ -@Data -public class PayResponse { - - /** - * 商户ID - */ - private String pid; - - /** - * 易支付订单号 - */ - - @JsonProperty("trade_no") - private String trade_no; - - /** - * 商户订单号 - */ - @JsonProperty("out_trade_no") - private String out_trade_no; - - /** - * 支付方式 - */ - private String type; - - /** - * 商品名称 - */ - private String name; - - /** - * 商品金额 - */ - private String money; - - /** - * 支付状态 - */ - @JsonProperty("trade_status") - private String trade_status; - - /** - * 业务扩展参数 - */ - private String param; - - /** - * 签名字符串 - */ - private String sign; - - /** - * 签名类型 - */ - @JsonProperty("sign_type") - private String signType; - -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/service/PayService.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/service/PayService.java deleted file mode 100644 index f11ed6e4..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/service/PayService.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.ruoyi.common.service; - -/** - * 支付服务 - * - * @author: wangle - * @date: 2023/7/3 - */ -public interface PayService { - - /** - * 获取支付地址 - * - * @Date 2023/7/3 - * @param orderNo - * @param name - * @param money - * @param clientIp - * @return String - **/ - String getPayUrl(String orderNo, String name, double money, String clientIp); - -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/service/impl/PayServiceImpl.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/service/impl/PayServiceImpl.java deleted file mode 100644 index 8e994529..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/service/impl/PayServiceImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.ruoyi.common.service.impl; - -import cn.hutool.http.HttpUtil; -import cn.hutool.json.JSONObject; - -import org.ruoyi.common.config.PayConfig; -import org.ruoyi.common.service.PayService; -import org.ruoyi.common.utils.MD5Util; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; - -import java.util.HashMap; -import java.util.Map; - -/** - * 支付服务 - * @author Admin - */ -@Service -@RequiredArgsConstructor -@Slf4j -public class PayServiceImpl implements PayService { - - private final PayConfig payConfig; - - @Override - public String getPayUrl(String orderNo, String name, double money, String clientIp) { - String out_trade_no = orderNo, sign = ""; - //封装请求参数 - String mdString = "clientip=" + clientIp + "&device=" + payConfig.getDevice() + "&money=" + money + "&name=" + name + "&" + - "notify_url=" + payConfig.getNotify_url() + "&out_trade_no=" + out_trade_no + "&pid=" + payConfig.getPid() + "&return_url=" + payConfig.getReturn_url() + - "&type=" + payConfig.getType() + payConfig.getKey(); - sign = MD5Util.GetMD5Code(mdString); - Map map = new HashMap<>(10); - map.put("clientip", clientIp); - map.put("device", payConfig.getDevice()); - map.put("money", money); - map.put("name", name); - map.put("notify_url", payConfig.getNotify_url()); - map.put("out_trade_no", out_trade_no); - map.put("pid", payConfig.getPid()); - map.put("return_url", payConfig.getReturn_url()); - map.put("sign_type", payConfig.getSign_type()); - map.put("type", payConfig.getType()); - map.put("sign", sign); - String body = HttpUtil.post(payConfig.getPayUrl(), map); - log.info("支付返回信息:{},配置信息: {}",body,payConfig); - JSONObject jsonObject = new JSONObject(body); - return (String) jsonObject.get("qrcode"); - } - -} diff --git a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/utils/MD5Util.java b/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/utils/MD5Util.java deleted file mode 100644 index 3aec5f28..00000000 --- a/ruoyi-common/ruoyi-common-pay/src/main/java/org/ruoyi/common/utils/MD5Util.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.ruoyi.common.utils; - -import cn.hutool.core.util.StrUtil; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.Map; -import java.util.TreeMap; - -/** - * MD5 算法 - * - * @author Admin - */ -public class MD5Util { - - /** - * 全局数组 - */ - public final static String[] strDigits = { "0", "1", "2", "3", "4", "5", - "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; - - public MD5Util() { - } - - /** - * 返回形式为数字跟字符串 - * - * @Date 2023/7/3 - * @param bByte - * @return String - **/ - public static String byteToArrayString(byte bByte) { - int iRet = bByte; - if (iRet < 0) { - iRet += 256; - } - int iD1 = iRet / 16; - int iD2 = iRet % 16; - return strDigits[iD1] + strDigits[iD2]; - } - - /** - * 转换字节数组为16进制字串 - * - * @Date 2023/7/3 - * @param bByte - * @return String - **/ - public static String byteToString(byte[] bByte) { - StringBuffer sBuffer = new StringBuffer(); - for (int i = 0; i < bByte.length; i++) { - sBuffer.append(byteToArrayString(bByte[i])); - } - return sBuffer.toString(); - } - - /** - * 生成md5代码 - * - * @Date 2023/7/3 - * @param strObj - * @return String - **/ - public static String GetMD5Code(String strObj) { - String resultString = null; - try { - resultString = new String(strObj); - MessageDigest md = MessageDigest.getInstance("MD5"); - resultString = byteToString(md.digest(strObj.getBytes())); - } catch (NoSuchAlgorithmException ex) { - ex.printStackTrace(); - } - return resultString; - } - - /** - * 组装签名的字段 - * - * @param params 参数 - * @param urlEncoder 是否urlEncoder - * @return {String} - */ - public static String packageSign(Map params, boolean urlEncoder) { - // 先将参数以其参数名的字典序升序进行排序 - TreeMap sortedParams = new TreeMap(params); - // 遍历排序后的字典,将所有参数按"key=value"格式拼接在一起 - StringBuilder sb = new StringBuilder(); - boolean first = true; - for (Map.Entry param : sortedParams.entrySet()) { - String value = String.valueOf(param.getValue()); - if (StrUtil.isBlank(value)) { - continue; - } - if (first) { - first = false; - } else { - sb.append("&"); - } - sb.append(param.getKey()).append("="); - sb.append(value); - } - return sb.toString(); - } - -} diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/ruoyi/common/web/interceptor/PlusWebInvokeTimeInterceptor.java b/ruoyi-common/ruoyi-common-web/src/main/java/org/ruoyi/common/web/interceptor/PlusWebInvokeTimeInterceptor.java index f728df30..34b0ed0b 100644 --- a/ruoyi-common/ruoyi-common-web/src/main/java/org/ruoyi/common/web/interceptor/PlusWebInvokeTimeInterceptor.java +++ b/ruoyi-common/ruoyi-common-web/src/main/java/org/ruoyi/common/web/interceptor/PlusWebInvokeTimeInterceptor.java @@ -36,20 +36,6 @@ public class PlusWebInvokeTimeInterceptor implements HandlerInterceptor { String url = request.getMethod() + " " + request.getRequestURI(); String domainName = request.getServerName(); log.info("域名信息:{}",domainName); - - String requestURI = request.getRequestURI(); - List urls = whitelistUrls(); - boolean isWhitelisted = urls.stream().anyMatch(requestURI::startsWith); - - if (!isWhitelisted){ - // 根据授权编号查询激活状态 -// ConfigService configService = SpringUtils.context().getBean(ConfigService.class); -// String authNo = configService.getConfigValue("sys", "authcode"); -// if(!configService.checkAuth(authNo,domainName)){ -// throw new BaseException("系统未激活,请联系管理员授权"); -// } - } - // 打印请求参数 if (isJsonRequest(request)) { String jsonParam = ""; @@ -67,7 +53,6 @@ public class PlusWebInvokeTimeInterceptor implements HandlerInterceptor { log.debug("[PLUS]开始请求 => URL[{}],无参数", url); } } - StopWatch stopWatch = new StopWatch(); invokeTimeTL.set(stopWatch); stopWatch.start(); @@ -99,15 +84,4 @@ public class PlusWebInvokeTimeInterceptor implements HandlerInterceptor { } return false; } - - // 授权白名单 - public List whitelistUrls() { - return Arrays.asList( - "/chat/config", - "/pay", - "/weixin", - "/user/qrcode", - "/user/login/qrcode" - ); - } } diff --git a/ruoyi-common/ruoyi-common-wechat/pom.xml b/ruoyi-common/ruoyi-common-wechat/pom.xml deleted file mode 100644 index 26ac86cb..00000000 --- a/ruoyi-common/ruoyi-common-wechat/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - 4.0.0 - - org.ruoyi - ruoyi-common - ${revision} - ../pom.xml - - ruoyi-common-wechat - 1.0.0 - ruoyi-common-wechat 微信服务 - - UTF-8 - - - - - com.jfinal - jfinal - 3.5 - - - com.jfinal - cos - 2017.5 - - - - com.jfinal - jfinal-undertow - 1.4 - - - - com.alibaba - druid - 1.0.29 - - - - com.vdurmont - emoji-java - 3.2.0 - - - javax.activation - activation - 1.1.1 - - - net.mamoe - mirai-core-jvm - 2.16.0 - - - org.ruoyi - ruoyi-common-json - - - - com.alibaba - fastjson - 1.2.31 - - - diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/api/MessageTools.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/api/MessageTools.java deleted file mode 100644 index 9ed005a7..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/api/MessageTools.java +++ /dev/null @@ -1,546 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.api; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.apache.http.Consts; -import org.apache.http.HttpEntity; -import org.apache.http.entity.ContentType; -import org.apache.http.entity.mime.HttpMultipartMode; -import org.apache.http.entity.mime.MultipartEntityBuilder; -import org.apache.http.util.EntityUtils; -import org.ruoyi.common.wechat.itchat4j.beans.BaseMsg; -import org.ruoyi.common.wechat.itchat4j.beans.RecommendInfo; -import org.ruoyi.common.wechat.itchat4j.core.Core; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.utils.Config; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType; -import org.ruoyi.common.wechat.itchat4j.utils.enums.StorageLoginInfoEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.URLEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.VerifyFriendEnum; -import org.ruoyi.common.wechat.web.constant.UploadConstant; - -import javax.activation.MimetypesFileTypeMap; -import java.io.File; -import java.text.SimpleDateFormat; -import java.util.*; - -/** - * 消息处理类 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月23日 下午2:30:37 - * @version 1.0 - * - * @author WesleyOne 修改 - */ -public class MessageTools implements LogInterface { - - - /** - * 通过UserName发送消息 - * @param toUserName - * @param uniqueKey - * @param data - * @param type - * @return - */ - public static boolean send(String toUserName, String uniqueKey, String data, String type){ - String nickName = WechatTools.getNickNameByUserName(toUserName, uniqueKey); - if (SendMsgType.TEXT.toValue().equals(type)){ - LOG.info("发送文本 {}:{}", nickName, data); - return MessageTools.sendMsgById(data,toUserName,uniqueKey); - }else if (SendMsgType.IMG.toValue().equals(type)){ - LOG.info("发送图片 {}:{}", nickName, UploadConstant.IMG_PATH_SEP+data); - return MessageTools.sendPicMsgByUserId(toUserName,UploadConstant.IMG_PATH_SEP+data,uniqueKey); - }else if (SendMsgType.FILE.toValue().equals(type)){ - LOG.info("发送文件 {}:{}",nickName,UploadConstant.FILE_PATH_SEP+data); - return MessageTools.sendFileMsgByUserId(toUserName,UploadConstant.FILE_PATH_SEP+data,uniqueKey); - } - return false; - } - - /** - * 通过NickName发送消息 - * @param nickName - * @param uniqueKey - * @param data - * @param type - * @param isGroup - * @return - */ - public static boolean sendByNickName(String nickName, String uniqueKey, String data, String type,boolean isGroup){ - - if (SendMsgType.TEXT.toValue().equals(type)){ - LOG.info("发送文本 {}:{}", nickName, data); - return MessageTools.sendMsgByNickNameApi(data, nickName, uniqueKey, isGroup); - }else if (SendMsgType.IMG.toValue().equals(type)){ - LOG.info("发送图片 {}:{}", nickName, UploadConstant.IMG_PATH_SEP+data); - return MessageTools.sendPicMsgByNickNameApi(nickName, UploadConstant.IMG_PATH_SEP + data, uniqueKey, isGroup); - }else if (SendMsgType.FILE.toValue().equals(type)){ - LOG.info("发送文件 {}:{}",nickName,UploadConstant.FILE_PATH_SEP+data); - return MessageTools.sendFileMsgByNickNameApi(nickName,UploadConstant.FILE_PATH_SEP+data,uniqueKey,isGroup); - } - return false; - } - - - /** - * 根据UserName发送文本消息 - * - * @author https://github.com/yaphone - * @date 2017年5月6日 上午11:45:51 - * @param text - * @param toUserName - * @param uniqueKey - */ - public static boolean sendMsgById(String text, String toUserName, String uniqueKey) { - if (text == null) { - return false; - } - return webWxSendMsg(1, text, toUserName, uniqueKey); - } - - /** - * 根据NickName发送文本消息 - * - * @author https://github.com/yaphone - * @date 2017年5月4日 下午11:17:38 - * @param text - * @param nickName - */ - public static boolean sendMsgByNickName(String text, String nickName, String uniqueKey) { - if (nickName != null) { - String toUserName = WechatTools.getContactUserNameByNickName(nickName,uniqueKey); - if (toUserName != null) { - return sendMsgById(text, toUserName, uniqueKey); - } - } - return false; - - } - - public static boolean sendMsgByNickNameApi(String text, String nickName, String uniqueKey, boolean isGroup){ - if (isGroup){ - return sendGroupMsgByNickName(text,nickName,uniqueKey); - }else{ - return sendMsgByNickName(text,nickName,uniqueKey); - } - } - - - /** - * 根据NickName发送群文本消息 - * @param text - * @param nickName - * @param uniqueKey - * @return - */ - private static boolean sendGroupMsgByNickName(String text, String nickName, String uniqueKey) { - if (nickName != null) { - String toUserName = WechatTools.getGroupUserNameByNickName(nickName,uniqueKey); - if (toUserName != null) { - return sendMsgById(text, toUserName, uniqueKey); - } - } - return false; - - } - - /** - * 消息发送 - * - * @author https://github.com/yaphone - * @date 2017年4月23日 下午2:32:02 - * @param msgType - * @param content - * @param toUserName - */ - public static boolean webWxSendMsg(int msgType, String content, String toUserName, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - if (!core.isAlive()){ - return false; - } - String url = String.format(URLEnum.WEB_WX_SEND_MSG.getUrl(), core.getLoginInfo().get("url")); - Map msgMap = new HashMap(12); - msgMap.put("Type", msgType); - msgMap.put("Content", content); - msgMap.put("FromUserName", core.getUserName()); - msgMap.put("ToUserName", toUserName == null ? core.getUserName() : toUserName); - msgMap.put("LocalID", System.currentTimeMillis() * 10); - msgMap.put("ClientMsgId", System.currentTimeMillis() * 10); - Map paramMap = core.getParamMap(); - paramMap.put("Msg", msgMap); - paramMap.put("Scene", 0); - try { - String paramStr = JSON.toJSONString(paramMap); - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr); - EntityUtils.toString(entity, Consts.UTF_8); - return true; - } catch (Exception e) { - LOG.error("webWxSendMsg", e); - return false; - } - } - - /** - * 上传多媒体文件到 微信服务器,目前应该支持3种类型: 1. pic 直接显示,包含图片,表情 2.video 3.doc 显示为文件,包含PDF等 - * - * @author https://github.com/yaphone - * @date 2017年5月7日 上午12:41:13 - * @param filePath - * @return - */ - private static JSONObject webWxUploadMedia(String filePath, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - File f = new File(filePath); - if (!f.exists() || !f.isFile()) { - LOG.info("file is not exist"); - return null; - } - String url = String.format(URLEnum.WEB_WX_UPLOAD_MEDIA.getUrl(), core.getLoginInfo().get("fileUrl")); - String mimeType = new MimetypesFileTypeMap().getContentType(f); - String mediaType = ""; - if (mimeType == null) { - mimeType = "text/plain"; - } else { - mediaType = mimeType.split("/")[0].equals("image") ? "pic" : "doc"; - } - String lastModifieDate = new SimpleDateFormat("yyyy MM dd HH:mm:ss").format(new Date()); - long fileSize = f.length(); - String passTicket = (String) core.getLoginInfo().get("pass_ticket"); - String clientMediaId = String.valueOf(System.currentTimeMillis()) - + String.valueOf(new Random().nextLong()).substring(0, 4); - String webwxDataTicket = core.getMyHttpClient().getCookie("webwx_data_ticket"); - if (webwxDataTicket == null) { - LOG.error("get cookie webwx_data_ticket error"); - return null; - } - - Map paramMap = core.getParamMap(); - - paramMap.put("ClientMediaId", clientMediaId); - paramMap.put("TotalLen", fileSize); - paramMap.put("StartPos", 0); - paramMap.put("DataLen", fileSize); - paramMap.put("MediaType", 4); - - MultipartEntityBuilder builder = MultipartEntityBuilder.create(); - builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); - - builder.addTextBody("id", "WU_FILE_0", ContentType.TEXT_PLAIN); - builder.addTextBody("name", filePath, ContentType.TEXT_PLAIN); - builder.addTextBody("type", mimeType, ContentType.TEXT_PLAIN); - builder.addTextBody("lastModifieDate", lastModifieDate, ContentType.TEXT_PLAIN); - builder.addTextBody("size", String.valueOf(fileSize), ContentType.TEXT_PLAIN); - builder.addTextBody("mediatype", mediaType, ContentType.TEXT_PLAIN); - builder.addTextBody("uploadmediarequest", JSON.toJSONString(paramMap), ContentType.TEXT_PLAIN); - builder.addTextBody("webwx_data_ticket", webwxDataTicket, ContentType.TEXT_PLAIN); - builder.addTextBody("pass_ticket", passTicket, ContentType.TEXT_PLAIN); - builder.addBinaryBody("filename", f, ContentType.create(mimeType), filePath); - HttpEntity reqEntity = builder.build(); - HttpEntity entity = core.getMyHttpClient().doPostFile(url, reqEntity); - if (entity != null) { - try { - String result = EntityUtils.toString(entity, Consts.UTF_8); - return JSON.parseObject(result); - } catch (Exception e) { - LOG.error("webWxUploadMedia 错误: ", e); - } - - } - return null; - } - - - public static boolean sendPicMsgByNickNameApi(String nickName, String filePath, String uniqueKey,boolean isGroup){ - if (isGroup){ - return sendGroupPicMsgByNickName(nickName, filePath, uniqueKey); - }else { - return sendPicMsgByNickName(nickName, filePath, uniqueKey); - } - } - - /** - * 根据NickName发送图片消息 - * - * @author https://github.com/yaphone - * @date 2017年5月7日 下午10:32:45 - * @param nickName - * @param filePath - * @return - */ - public static boolean sendPicMsgByNickName(String nickName, String filePath, String uniqueKey) { - String toUserName = WechatTools.getContactUserNameByNickName(nickName,uniqueKey); - if (toUserName != null) { - LOG.info("发送图片 {}:{}",nickName,filePath); - return sendPicMsgByUserId(toUserName, filePath, uniqueKey); - } - return false; - } - - /** - * 根据群的NickName发送图片消息到群 - * @param nickName - * @param filePath - * @param uniqueKey - * @return - */ - public static boolean sendGroupPicMsgByNickName(String nickName, String filePath, String uniqueKey) { - String toUserName = WechatTools.getGroupUserNameByNickName(nickName,uniqueKey); - if (toUserName != null) { - LOG.info("发送群图片 {}:{}",nickName,filePath); - return sendPicMsgByUserId(toUserName, filePath, uniqueKey); - } - return false; - } - - /** - * 根据用户id发送图片消息 - * - * @author https://github.com/yaphone - * @date 2017年5月7日 下午10:34:24 - * @param userId - * @param filePath - * @param uniqueKey - * @return - */ - public static boolean sendPicMsgByUserId(String userId, String filePath, String uniqueKey) { - JSONObject responseObj = webWxUploadMedia(filePath, uniqueKey); - if (responseObj != null) { - String mediaId = responseObj.getString("MediaId"); - if (mediaId != null) { - return webWxSendMsgImg(userId, mediaId, uniqueKey); - } - } - return false; - } - - /** - * 发送图片消息,内部调用 - * - * @author https://github.com/yaphone - * @date 2017年5月7日 下午10:38:55 - * @return - */ - private static boolean webWxSendMsgImg(String userId, String mediaId, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - if (!core.isAlive()){ - return false; - } - String url = String.format("%s/webwxsendmsgimg?fun=async&f=json&pass_ticket=%s", core.getLoginInfo().get("url"), - core.getLoginInfo().get("pass_ticket")); - Map msgMap = new HashMap(8); - msgMap.put("Type", 3); - msgMap.put("MediaId", mediaId); - msgMap.put("FromUserName", core.getUserSelf().getString("UserName")); - msgMap.put("ToUserName", userId); - String clientMsgId = String.valueOf(System.currentTimeMillis()) - + String.valueOf(new Random().nextLong()).substring(1, 5); - msgMap.put("LocalID", clientMsgId); - msgMap.put("ClientMsgId", clientMsgId); - Map paramMap = core.getParamMap(); - paramMap.put("BaseRequest", core.getParamMap().get("BaseRequest")); - paramMap.put("Msg", msgMap); - String paramStr = JSON.toJSONString(paramMap); - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr); - if (entity != null) { - try { - String result = EntityUtils.toString(entity, Consts.UTF_8); - return JSON.parseObject(result).getJSONObject("BaseResponse").getInteger("Ret") == 0; - } catch (Exception e) { - LOG.error("webWxSendMsgImg 错误: ", e); - } - } - return false; - - } - - /** - * 根据用户id发送文件 - * - * @author https://github.com/yaphone - * @date 2017年5月7日 下午11:57:36 - * @param userId - * @param filePath - * @return - */ - private static boolean sendFileMsgByUserId(String userId, String filePath, String uniqueKey) { - String title = new File(filePath).getName(); - Map data = new HashMap(12); - data.put("appid", Config.API_WXAPPID); - data.put("title", title); - data.put("totallen", ""); - data.put("attachid", ""); - data.put("type", "6"); // APPMSGTYPE_ATTACH - data.put("fileext", title.split("\\.")[1]); // 文件后缀 - JSONObject responseObj = webWxUploadMedia(filePath, uniqueKey); - if (responseObj != null) { - data.put("totallen", responseObj.getString("StartPos")); - data.put("attachid", responseObj.getString("MediaId")); - } else { - LOG.error("sednFileMsgByUserId 错误: ", data); - } - return webWxSendAppMsg(userId, data, uniqueKey); - } - - public static boolean sendFileMsgByNickNameApi(String nickName, String filePath, String uniqueKey, boolean isGroup){ - if (isGroup){ - return sendGroupFileMsgByNickName(nickName,filePath,uniqueKey); - }else { - return sendFileMsgByNickName(nickName,filePath,uniqueKey); - } - } - - - /** - * 根据用户昵称发送文件消息 - * - * @author https://github.com/yaphone - * @date 2017年5月10日 下午10:59:27 - * @param nickName - * @param filePath - * @return - */ - private static boolean sendFileMsgByNickName(String nickName, String filePath, String uniqueKey) { - String toUserName = WechatTools.getContactUserNameByNickName(nickName,uniqueKey); - if (toUserName != null) { - LOG.info("发送文件 {}:{}",nickName,filePath); - return sendFileMsgByUserId(toUserName, filePath, uniqueKey); - } - return false; - } - - /** - * 根据群昵称发送文件消息 - * @param nickName - * @param filePath - * @param uniqueKey - * @return - */ - private static boolean sendGroupFileMsgByNickName(String nickName, String filePath, String uniqueKey) { - String toUserName = WechatTools.getGroupUserNameByNickName(nickName,uniqueKey); - if (toUserName != null) { - LOG.info("发送文件 {}:{}",nickName,filePath); - return sendFileMsgByUserId(toUserName, filePath, uniqueKey); - } - return false; - } - - /** - * 内部调用 - * - * @author https://github.com/yaphone - * @date 2017年5月10日 上午12:21:28 - * @param userId - * @param data - * @param uniqueKey - * @return - */ - private static boolean webWxSendAppMsg(String userId, Map data, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - if (!core.isAlive()){ - return false; - } - String url = String.format("%s/webwxsendappmsg?fun=async&f=json&pass_ticket=%s", core.getLoginInfo().get("url"), - core.getLoginInfo().get("pass_ticket")); - String clientMsgId = String.valueOf(System.currentTimeMillis()) - + String.valueOf(new Random().nextLong()).substring(1, 5); - String content = "" + data.get("title") - + "6" - + "" + data.get("totallen") + "" + data.get("attachid") - + "" + data.get("fileext") + ""; - Map msgMap = new HashMap(12); - msgMap.put("Type", data.get("type")); - msgMap.put("Content", content); - msgMap.put("FromUserName", core.getUserSelf().getString("UserName")); - msgMap.put("ToUserName", userId); - msgMap.put("LocalID", clientMsgId); - msgMap.put("ClientMsgId", clientMsgId); - /* - * Map paramMap = new HashMap(); - * - * @SuppressWarnings("unchecked") Map> - * baseRequestMap = (Map>) - * core.getLoginInfo() .get("baseRequest"); paramMap.put("BaseRequest", - * baseRequestMap.get("BaseRequest")); - */ - - Map paramMap = core.getParamMap(); - paramMap.put("Msg", msgMap); - paramMap.put("Scene", 0); - String paramStr = JSON.toJSONString(paramMap); - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr); - if (entity != null) { - try { - String result = EntityUtils.toString(entity, Consts.UTF_8); - return JSON.parseObject(result).getJSONObject("BaseResponse").getInteger("Ret") == 0; - } catch (Exception e) { - LOG.error("错误: ", e); - } - } - return false; - } - - /** - * 被动添加好友 - * - * @date 2017年6月29日 下午10:08:43 - * @param msg - * @param accept - * true 接受 false 拒绝 - */ - private static void addFriend(BaseMsg msg, boolean accept, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - if (!accept) { // 不添加 - return; - } - int status = VerifyFriendEnum.ACCEPT.getCode(); // 接受好友请求 - RecommendInfo recommendInfo = msg.getRecommendInfo(); - String userName = recommendInfo.getUserName(); - String ticket = recommendInfo.getTicket(); - // 更新好友列表 - // TODO 此处需要更新好友列表 - // core.getContactList().add(msg.getJSONObject("RecommendInfo")); - - String url = String.format(URLEnum.WEB_WX_VERIFYUSER.getUrl(), core.getLoginInfo().get("url"), - String.valueOf(System.currentTimeMillis() / 3158L), core.getLoginInfo().get("pass_ticket")); - - List> verifyUserList = new ArrayList>(); - Map verifyUser = new HashMap(); - verifyUser.put("Value", userName); - verifyUser.put("VerifyUserTicket", ticket); - verifyUserList.add(verifyUser); - - List sceneList = new ArrayList(); - sceneList.add(33); - - JSONObject body = new JSONObject(); - body.put("BaseRequest", core.getParamMap().get("BaseRequest")); - body.put("Opcode", status); - body.put("VerifyUserListSize", 1); - body.put("VerifyUserList", verifyUserList); - body.put("VerifyContent", ""); - body.put("SceneListCount", 1); - body.put("SceneList", sceneList); - body.put("skey", core.getLoginInfo().get(StorageLoginInfoEnum.skey.getKey())); - - String result = null; - try { - String paramStr = JSON.toJSONString(body); - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr); - result = EntityUtils.toString(entity, Consts.UTF_8); - } catch (Exception e) { - LOG.error("webWxSendMsg", e); - } - - if (StringUtils.isBlank(result)) { - LOG.error("被动添加好友失败"); - } - - LOG.debug(result); - - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/api/WechatTools.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/api/WechatTools.java deleted file mode 100644 index 5700a65f..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/api/WechatTools.java +++ /dev/null @@ -1,352 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.api; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.apache.http.Consts; -import org.apache.http.HttpEntity; -import org.apache.http.message.BasicNameValuePair; -import org.apache.http.util.EntityUtils; -import org.ruoyi.common.wechat.itchat4j.core.Core; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.enums.StorageLoginInfoEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.URLEnum; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 微信小工具,如获好友列表,根据昵称查找好友或群等 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年5月4日 下午10:49:16 - * @version 1.0 - * - * @author WesleyOne 修改 - */ -public class WechatTools implements LogInterface { - - /** - * 返回好友昵称列表 - * @param uniqueKey - * @return - */ - public static List getContactNickNameList(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - List contactNickNameList = new ArrayList(); - for (JSONObject o : core.getContactList()) { - contactNickNameList.add(o.getString("NickName")); - // 顺便刷下缓存 - core.getUserInfoMap().put(o.getString("NickName"),o); - core.getUserInfoMap().put(o.getString("UserName"),o); - } - return contactNickNameList; - } - - /** - * 返回好友完整信息列表 - * @param uniqueKey - * @return - */ - public static List getContactList(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - return core.getContactList(); - } - - /** - * 返回群列表 - * @param uniqueKey - * @return - */ - public static List getGroupList(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - return core.getGroupList(); - } - - /** - * 获取群NickName列表 - * @param uniqueKey - * @return - */ - public static List getGroupNickNameList(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - List groupNickNameList = new ArrayList(); - for (JSONObject o : core.getGroupList()) { - groupNickNameList.add(o.getString("NickName")); - } - return groupNickNameList; - } - - /** - * 获取群所有成员信息 - * @param groupId - * @param uniqueKey - * @return - */ - public static JSONArray getGroupMemberByGroupId(String groupId, String uniqueKey){ - Core core = CoreManage.getInstance(uniqueKey); - JSONObject jsonObject = core.getGroupInfoMap().get(groupId); - if (jsonObject == null){ - return new JSONArray(); - } - return jsonObject.getJSONArray("MemberList"); - } - - /** - * 通过群成员ID获取昵称 - * @param groupId - * @param uniqueKey - * @param memberId - * @return - */ - public static String getMemberNickName(String groupId, String uniqueKey, String memberId){ - JSONArray members = getGroupMemberByGroupId(groupId, uniqueKey); - int size = members.size(); - if (size > 0){ - for (int i=0;i params = new ArrayList(); - params.add(new BasicNameValuePair("redirect", "1")); - params.add(new BasicNameValuePair("type", "1")); - params.add( - new BasicNameValuePair("skey", (String) core.getLoginInfo().get(StorageLoginInfoEnum.skey.getKey()))); - try { - HttpEntity entity = core.getMyHttpClient().doGet(url, params, false, null); - String text = EntityUtils.toString(entity, Consts.UTF_8); - return true; - } catch (Exception e) { - LOG.debug(e.getMessage()); - } finally { - // 强制退出,提示相关线程退出 - core.setAlive(false); - } - return false; - } - - public static void setUserInfo(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - for (JSONObject o : core.getContactList()) { - core.getUserInfoMap().put(o.getString("NickName"), o); - core.getUserInfoMap().put(o.getString("UserName"), o); - } - } - - /** - * - * 根据用户昵称设置备注名称 - * - * @date 2017年5月27日 上午12:21:40 - * @param nickName - * @param remName - */ - public static void remarkNameByNickName(String nickName, String remName, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - String url = String.format(URLEnum.WEB_WX_REMARKNAME.getUrl(), core.getLoginInfo().get("url"), - core.getLoginInfo().get(StorageLoginInfoEnum.pass_ticket.getKey())); - Map msgMap = new HashMap(8); - Map msgMap_BaseRequest = new HashMap(8); - msgMap.put("CmdId", 2); - msgMap.put("RemarkName", remName); - msgMap.put("UserName", core.getUserInfoMap().get(nickName).get("UserName")); - msgMap_BaseRequest.put("Uin", core.getLoginInfo().get(StorageLoginInfoEnum.wxuin.getKey())); - msgMap_BaseRequest.put("Sid", core.getLoginInfo().get(StorageLoginInfoEnum.wxsid.getKey())); - msgMap_BaseRequest.put("Skey", core.getLoginInfo().get(StorageLoginInfoEnum.skey.getKey())); - msgMap_BaseRequest.put("DeviceID", core.getLoginInfo().get(StorageLoginInfoEnum.deviceid.getKey())); - msgMap.put("BaseRequest", msgMap_BaseRequest); - try { - String paramStr = JSON.toJSONString(msgMap); - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr); - // String result = EntityUtils.toString(entity, Consts.UTF_8); - LOG.info("修改备注" + remName); - } catch (Exception e) { - LOG.error("remarkNameByUserName", e); - } - } - - /** - * 获取微信在线状态 - * - * @date 2017年6月16日 上午12:47:46 - * @return - */ - public static boolean getWechatStatus(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - return core.isAlive(); - } - - - /** - * - * @param userName - * @param nickName - * @return - */ - private static JSONObject getContactByNickNameAndUserName(String userName, String nickName, String uniqueKey){ - Core core = CoreManage.getInstance(uniqueKey); - // 通过userName查询 - if (StringUtils.isNotEmpty(userName) && StringUtils.isEmpty(nickName)){ - for (JSONObject contact:core.getContactList()){ - if (userName.equals(contact.getString("UserName"))){ - return contact; - } - } - } - - // 通过群昵称查询 - if (StringUtils.isNotEmpty(nickName) && StringUtils.isEmpty(userName)){ - for (JSONObject contact:core.getContactList()){ - if (nickName.equals(contact.getString("NickName"))){ - return contact; - } - } - } - - // 通过userName和昵称联合查 - if (StringUtils.isNotEmpty(userName) && StringUtils.isNotEmpty(nickName)){ - for (JSONObject contact:core.getContactList()){ - if (nickName.equals(contact.getString("NickName")) && userName.equals(contact.getString("UserName"))){ - return contact; - } - } - } - - return null; - } - - /** - * 通过群id查找群昵称 - * @param userName - * @return - */ - public static String getContactNickNameByUserName(String userName, String uniqueKey){ - JSONObject contact = getContactByNickNameAndUserName(userName,null, uniqueKey); - if (contact!=null && StringUtils.isNotEmpty(contact.getString("NickName"))){ - return contact.getString("NickName"); - }else{ - return ""; - } - } - - /** - * 通过群昵称查找群id - * @param nickName - * @return - */ - public static String getContactUserNameByNickName(String nickName, String uniqueKey){ - JSONObject contact = getContactByNickNameAndUserName(null,nickName,uniqueKey); - if (contact!=null && StringUtils.isNotEmpty(contact.getString("UserName"))){ - return contact.getString("UserName"); - }else{ - return null; - } - } - - /** - * 通过userName或昵称查找群信息 - * @param userName - * @return - */ - private static JSONObject getGroupByNickNameAndUserName(String userName, String nickName, String uniqueKey){ - Core core = CoreManage.getInstance(uniqueKey); - // 通过userName查询 - if (StringUtils.isNotEmpty(userName) && StringUtils.isEmpty(nickName)){ - for (JSONObject group:core.getGroupList()){ - if (userName.equals(group.getString("UserName"))){ - return group; - } - } - } - - // 通过群昵称查询 - if (StringUtils.isNotEmpty(nickName) && StringUtils.isEmpty(userName)){ - for (JSONObject group:core.getGroupList()){ - if (nickName.equals(group.getString("NickName"))){ - return group; - } - } - } - - // 通过userName和昵称联合查 - if (StringUtils.isNotEmpty(userName) && StringUtils.isNotEmpty(nickName)){ - for (JSONObject group:core.getGroupList()){ - if (nickName.equals(group.getString("NickName")) && userName.equals(group.getString("UserName"))){ - return group; - } - } - } - - return null; - } - - /** - * 通过群id查找群昵称 - * @param userName - * @return - */ - public static String getGroupNickNameByUserName(String userName, String uniqueKey){ - JSONObject group = getGroupByNickNameAndUserName(userName,null,uniqueKey); - if (group!=null && StringUtils.isNotEmpty(group.getString("NickName"))){ - return group.getString("NickName"); - }else{ - return ""; - } - } - - /** - * 通过群昵称查找群id - * @param nickName - * @return - */ - public static String getGroupUserNameByNickName(String nickName, String uniqueKey){ - JSONObject group = getGroupByNickNameAndUserName(null,nickName, uniqueKey); - if (group!=null && StringUtils.isNotEmpty(group.getString("UserName"))){ - return group.getString("UserName"); - }else{ - return null; - } - } - - /** - * 通过UserName查找NickName - * 只查群名和好友名 - * @param userName - * @param uniqueKey - * @return - */ - public static String getNickNameByUserName(String userName, String uniqueKey){ - if (userName.startsWith("@@")){ - return getGroupNickNameByUserName(userName,uniqueKey); - }else if (userName.startsWith("@")){ - return getContactNickNameByUserName(userName,uniqueKey); - }else { - return ""; - } - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/AppInfo.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/AppInfo.java deleted file mode 100644 index 4f80a301..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/AppInfo.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import java.io.Serializable; - -/** - * AppInfo - * - * @author https://github.com/yaphone - * @date 创建时间:2017年7月3日 下午10:38:14 - * @version 1.0 - * - */ -public class AppInfo implements Serializable { - /** - * - */ - private static final long serialVersionUID = 1L; - private int type; - private String appId; - - public int getType() { - return type; - } - - public void setType(int type) { - this.type = type; - } - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/BaseMsg.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/BaseMsg.java deleted file mode 100644 index 43146a82..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/BaseMsg.java +++ /dev/null @@ -1,330 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import java.io.Serializable; - -/** - * 收到的微信消息 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年7月3日 下午10:28:06 - * @version 1.0 - * - */ -public class BaseMsg implements Serializable { - /** - * - */ - private static final long serialVersionUID = 1L; - private int subMsgType; - private int voiceLength; - private String fileName; - private int imgHeight; - private String toUserName; - private int hasProductId; - private int imgStatus; - private String url; - private int imgWidth; - private int forwardFlag; - private int status; - private String Ticket; - /** 推荐消息报文 **/ - private RecommendInfo recommendInfo; - private long createTime; - private String newMsgId; - /** 文本消息内容 **/ - private String text; - /** 消息类型 **/ - private int msgType; - /** 是否为群消息 **/ - private boolean groupMsg; - private String msgId; - private int statusNotifyCode; - private AppInfo appInfo; - private int appMsgType; - private String Type; - private int playLength; - private String mediaId; - private String content; - private String statusNotifyUserName; - private boolean atMe; - // 群发送者ID昵称 - private String sendMemberId; - private String memberNickname; - /** 消息发送者ID **/ - private String fromUserName; - private String oriContent; - private String fileSize; - private String fromNickName; - - public int getSubMsgType() { - return subMsgType; - } - - public void setSubMsgType(int subMsgType) { - this.subMsgType = subMsgType; - } - - public int getVoiceLength() { - return voiceLength; - } - - public void setVoiceLength(int voiceLength) { - this.voiceLength = voiceLength; - } - - public String getFileName() { - return fileName; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - public int getImgHeight() { - return imgHeight; - } - - public void setImgHeight(int imgHeight) { - this.imgHeight = imgHeight; - } - - public String getToUserName() { - return toUserName; - } - - public void setToUserName(String toUserName) { - this.toUserName = toUserName; - } - - public int getHasProductId() { - return hasProductId; - } - - public void setHasProductId(int hasProductId) { - this.hasProductId = hasProductId; - } - - public int getImgStatus() { - return imgStatus; - } - - public void setImgStatus(int imgStatus) { - this.imgStatus = imgStatus; - } - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public int getImgWidth() { - return imgWidth; - } - - public void setImgWidth(int imgWidth) { - this.imgWidth = imgWidth; - } - - public int getForwardFlag() { - return forwardFlag; - } - - public void setForwardFlag(int forwardFlag) { - this.forwardFlag = forwardFlag; - } - - public int getStatus() { - return status; - } - - public void setStatus(int status) { - this.status = status; - } - - public String getTicket() { - return Ticket; - } - - public void setTicket(String ticket) { - Ticket = ticket; - } - - public RecommendInfo getRecommendInfo() { - return recommendInfo; - } - - public void setRecommendInfo(RecommendInfo recommendInfo) { - this.recommendInfo = recommendInfo; - } - - public long getCreateTime() { - return createTime; - } - - public void setCreateTime(long createTime) { - this.createTime = createTime; - } - - public String getNewMsgId() { - return newMsgId; - } - - public void setNewMsgId(String newMsgId) { - this.newMsgId = newMsgId; - } - - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public int getMsgType() { - return msgType; - } - - public void setMsgType(int msgType) { - this.msgType = msgType; - } - - public boolean isGroupMsg() { - return groupMsg; - } - - public void setGroupMsg(boolean groupMsg) { - this.groupMsg = groupMsg; - } - - public String getMsgId() { - return msgId; - } - - public void setMsgId(String msgId) { - this.msgId = msgId; - } - - public int getStatusNotifyCode() { - return statusNotifyCode; - } - - public void setStatusNotifyCode(int statusNotifyCode) { - this.statusNotifyCode = statusNotifyCode; - } - - public AppInfo getAppInfo() { - return appInfo; - } - - public void setAppInfo(AppInfo appInfo) { - this.appInfo = appInfo; - } - - public int getAppMsgType() { - return appMsgType; - } - - public void setAppMsgType(int appMsgType) { - this.appMsgType = appMsgType; - } - - public String getType() { - return Type; - } - - public void setType(String type) { - Type = type; - } - - public int getPlayLength() { - return playLength; - } - - public void setPlayLength(int playLength) { - this.playLength = playLength; - } - - public String getMediaId() { - return mediaId; - } - - public void setMediaId(String mediaId) { - this.mediaId = mediaId; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - public String getStatusNotifyUserName() { - return statusNotifyUserName; - } - - public void setStatusNotifyUserName(String statusNotifyUserName) { - this.statusNotifyUserName = statusNotifyUserName; - } - - public String getFromUserName() { - return fromUserName; - } - - public void setFromUserName(String fromUserName) { - this.fromUserName = fromUserName; - } - - public String getOriContent() { - return oriContent; - } - - public void setOriContent(String oriContent) { - this.oriContent = oriContent; - } - - public String getFileSize() { - return fileSize; - } - - public void setFileSize(String fileSize) { - this.fileSize = fileSize; - } - - public String getMemberNickname() { - return memberNickname; - } - - public void setMemberNickname(String memberNickname) { - this.memberNickname = memberNickname; - } - - public String getFromNickName() { - return fromNickName; - } - - public void setFromNickName(String fromNickName) { - this.fromNickName = fromNickName; - } - - public String getSendMemberId() { - return sendMemberId; - } - - public void setSendMemberId(String sendMemberId) { - this.sendMemberId = sendMemberId; - } - - public boolean isAtMe() { - return atMe; - } - - public void setAtMe(boolean atMe) { - this.atMe = atMe; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/BaseResponse.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/BaseResponse.java deleted file mode 100644 index 063495fb..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/BaseResponse.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -/** - * @author WesleyOne - * @create 2018/12/21 - */ -@Deprecated -public class BaseResponse { - - private Integer Ret; - private String ErrMsg; - - public Integer getRet() { - return Ret; - } - - public void setRet(Integer ret) { - Ret = ret; - } - - public String getErrMsg() { - return ErrMsg; - } - - public void setErrMsg(String errMsg) { - ErrMsg = errMsg; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/Member.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/Member.java deleted file mode 100644 index 2a84d254..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/Member.java +++ /dev/null @@ -1,306 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import java.util.List; - -/** - * 成员信息对象 - * - * 来自获取好友列表 - * /cgi-bin/mmwebwx-bin/webwxgetcontact - * MemberList中单体 - * @author WesleyOne - * @create 2018/12/21 - */ -@Deprecated -public class Member { - - private String Alias; - private Integer AppAccountFlag; - private Integer AttrStatus; - private Integer ChatRoomId; - private String City; - private Integer ContactFlag; - /** - * 群昵称 - */ - private String DisplayName; - private String EncryChatRoomId; - private String HeadImgUrl; - private Integer HideInputBarFlag; - private Integer IsOwner; - private String KeyWord; - private Integer MemberCount; - private List MemberList; - private String NickName; - private Integer OwnerUin; - private String PYInitial; - private String PYQuanPin; - private String Province; - /** - * 备注名、首拼、全拼 - */ - private String RemarkName; - private String RemarkPYInitial; - private String RemarkPYQuanPin; - - private Integer Sex; - private String Signature; - private Integer SnsFlag; - private Integer StarFriend; - private Integer Statues; - private Integer Uin; - private Integer UniFriend; - private String UserName; - /** - * 用来判断是否是公众号或服务号的字段 - */ - private String VerifyFlag; - - public String getAlias() { - return Alias; - } - - public void setAlias(String alias) { - Alias = alias; - } - - public Integer getAppAccountFlag() { - return AppAccountFlag; - } - - public void setAppAccountFlag(Integer appAccountFlag) { - AppAccountFlag = appAccountFlag; - } - - public Integer getAttrStatus() { - return AttrStatus; - } - - public void setAttrStatus(Integer attrStatus) { - AttrStatus = attrStatus; - } - - public Integer getChatRoomId() { - return ChatRoomId; - } - - public void setChatRoomId(Integer chatRoomId) { - ChatRoomId = chatRoomId; - } - - public String getCity() { - return City; - } - - public void setCity(String city) { - City = city; - } - - public Integer getContactFlag() { - return ContactFlag; - } - - public void setContactFlag(Integer contactFlag) { - ContactFlag = contactFlag; - } - - public String getDisplayName() { - return DisplayName; - } - - public void setDisplayName(String displayName) { - DisplayName = displayName; - } - - public String getEncryChatRoomId() { - return EncryChatRoomId; - } - - public void setEncryChatRoomId(String encryChatRoomId) { - EncryChatRoomId = encryChatRoomId; - } - - public String getHeadImgUrl() { - return HeadImgUrl; - } - - public void setHeadImgUrl(String headImgUrl) { - HeadImgUrl = headImgUrl; - } - - public Integer getHideInputBarFlag() { - return HideInputBarFlag; - } - - public void setHideInputBarFlag(Integer hideInputBarFlag) { - HideInputBarFlag = hideInputBarFlag; - } - - public Integer getIsOwner() { - return IsOwner; - } - - public void setIsOwner(Integer isOwner) { - IsOwner = isOwner; - } - - public String getKeyWord() { - return KeyWord; - } - - public void setKeyWord(String keyWord) { - KeyWord = keyWord; - } - - public Integer getMemberCount() { - return MemberCount; - } - - public void setMemberCount(Integer memberCount) { - MemberCount = memberCount; - } - - public List getMemberList() { - return MemberList; - } - - public void setMemberList(List memberList) { - MemberList = memberList; - } - - public String getNickName() { - return NickName; - } - - public void setNickName(String nickName) { - NickName = nickName; - } - - public Integer getOwnerUin() { - return OwnerUin; - } - - public void setOwnerUin(Integer ownerUin) { - OwnerUin = ownerUin; - } - - public String getPYInitial() { - return PYInitial; - } - - public void setPYInitial(String PYInitial) { - this.PYInitial = PYInitial; - } - - public String getPYQuanPin() { - return PYQuanPin; - } - - public void setPYQuanPin(String PYQuanPin) { - this.PYQuanPin = PYQuanPin; - } - - public String getProvince() { - return Province; - } - - public void setProvince(String province) { - Province = province; - } - - public String getRemarkName() { - return RemarkName; - } - - public void setRemarkName(String remarkName) { - RemarkName = remarkName; - } - - public String getRemarkPYInitial() { - return RemarkPYInitial; - } - - public void setRemarkPYInitial(String remarkPYInitial) { - RemarkPYInitial = remarkPYInitial; - } - - public String getRemarkPYQuanPin() { - return RemarkPYQuanPin; - } - - public void setRemarkPYQuanPin(String remarkPYQuanPin) { - RemarkPYQuanPin = remarkPYQuanPin; - } - - public Integer getSex() { - return Sex; - } - - public void setSex(Integer sex) { - Sex = sex; - } - - public String getSignature() { - return Signature; - } - - public void setSignature(String signature) { - Signature = signature; - } - - public Integer getSnsFlag() { - return SnsFlag; - } - - public void setSnsFlag(Integer snsFlag) { - SnsFlag = snsFlag; - } - - public Integer getStarFriend() { - return StarFriend; - } - - public void setStarFriend(Integer starFriend) { - StarFriend = starFriend; - } - - public Integer getStatues() { - return Statues; - } - - public void setStatues(Integer statues) { - Statues = statues; - } - - public Integer getUin() { - return Uin; - } - - public void setUin(Integer uin) { - Uin = uin; - } - - public Integer getUniFriend() { - return UniFriend; - } - - public void setUniFriend(Integer uniFriend) { - UniFriend = uniFriend; - } - - public String getUserName() { - return UserName; - } - - public void setUserName(String userName) { - UserName = userName; - } - - public String getVerifyFlag() { - return VerifyFlag; - } - - public void setVerifyFlag(String verifyFlag) { - VerifyFlag = verifyFlag; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/RecommendInfo.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/RecommendInfo.java deleted file mode 100644 index 51c82217..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/RecommendInfo.java +++ /dev/null @@ -1,146 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import java.io.Serializable; - -/** - * RecommendInfo - * - * @author https://github.com/yaphone - * @date 创建时间:2017年7月3日 下午10:35:14 - * @version 1.0 - * - */ -public class RecommendInfo implements Serializable { - /** - * - */ - private static final long serialVersionUID = 1L; - - private String ticket; - private String userName; - private int sex; - private int attrStatus; - private String city; - private String nickName; - private int scene; - private String province; - private String content; - private String alias; - private String signature; - private int opCode; - private int qQNum; - private int verifyFlag; - - public String getTicket() { - return ticket; - } - - public void setTicket(String ticket) { - this.ticket = ticket; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public int getSex() { - return sex; - } - - public void setSex(int sex) { - this.sex = sex; - } - - public int getAttrStatus() { - return attrStatus; - } - - public void setAttrStatus(int attrStatus) { - this.attrStatus = attrStatus; - } - - public String getCity() { - return city; - } - - public void setCity(String city) { - this.city = city; - } - - public String getNickName() { - return nickName; - } - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - public int getScene() { - return scene; - } - - public void setScene(int scene) { - this.scene = scene; - } - - public String getProvince() { - return province; - } - - public void setProvince(String province) { - this.province = province; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - public String getAlias() { - return alias; - } - - public void setAlias(String alias) { - this.alias = alias; - } - - public String getSignature() { - return signature; - } - - public void setSignature(String signature) { - this.signature = signature; - } - - public int getOpCode() { - return opCode; - } - - public void setOpCode(int opCode) { - this.opCode = opCode; - } - - public int getqQNum() { - return qQNum; - } - - public void setqQNum(int qQNum) { - this.qQNum = qQNum; - } - - public int getVerifyFlag() { - return verifyFlag; - } - - public void setVerifyFlag(int verifyFlag) { - this.verifyFlag = verifyFlag; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/SendMsg.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/SendMsg.java deleted file mode 100644 index 33661f94..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/SendMsg.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType; - -import java.io.Serializable; - -/** - * 发送消息体 - * @author WesleyOne - * @create 2019/1/7 - */ -public class SendMsg implements Serializable { - - private String userName; - private String nickName; - private String message; - private SendMsgType msgType; - private boolean isGroup; - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public String getNickName() { - return nickName; - } - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public SendMsgType getMsgType() { - return msgType; - } - - public void setMsgType(SendMsgType msgType) { - this.msgType = msgType; - } - - public boolean isGroup() { - return isGroup; - } - - public void setGroup(boolean group) { - isGroup = group; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/SyncKey.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/SyncKey.java deleted file mode 100644 index de8078cd..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/SyncKey.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import java.util.List; - -/** - * @author WesleyOne - * @create 2018/12/21 - */ -@Deprecated -public class SyncKey { - - private Integer Count; - - private List List; - - public Integer getCount() { - return Count; - } - - public void setCount(Integer count) { - Count = count; - } - - public java.util.List getList() { - return List; - } - - public void setList(java.util.List list) { - List = list; - } - - class KV{ - private Integer Key; - private Long Val; - - public Integer getKey() { - return Key; - } - - public void setKey(Integer key) { - Key = key; - } - - public Long getVal() { - return Val; - } - - public void setVal(Long val) { - Val = val; - } - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/User.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/User.java deleted file mode 100644 index 750bb5f4..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/User.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -/* -AppAccountFlag: 0 -ContactFlag: 0 -HeadImgFlag: 1 -HeadImgUrl: "/cgi-bin/mmwebwx-bin/webwxgeticon?seq=778915892&username=@7e6934104b3cf1f92dd11344c63a06833ae54bd43b34229b5cc472c4d05eba4a&skey=@crypt_a24169c_f4c07f70afe861da5e8a6e1947044b6e" -HideInputBarFlag: 0 -NickName: "[è¡°]晓炜" -PYInitial: "" -PYQuanPin: "" -RemarkName: "" -RemarkPYInitial: "" -RemarkPYQuanPin: "" -Sex: 1 -Signature: "人工智障" -SnsFlag: 49 -StarFriend: 0 -Uin: 902478981 -UserName: "@7e6934104b3cf1f92dd11344c63a06833ae54bd43b34229b5cc472c4d05eba4a" -VerifyFlag: 0 -WebWxPluginSwitch: 0 -*/ - -/** - * @author WesleyOne - * @create 2018/12/21 - */ -@Deprecated -public class User { - - private String AppAccountFlag; - private String ContactFlag; - private String HeadImgFlag; - private String HeadImgUrl; - private String HideInputBarFlag; - private String NickName; - private String PYInitial; - private String PYQuanPin; - private String RemarkName; - private String RemarkPYInitial; - private String RemarkPYQuanPin; - private String Sex; - /** - * 签名 - */ - private String Signature; - private String SnsFlag; - private String StarFriend; - private String Uin; - private String UserName; - private String VerifyFlag; - private String WebWxPluginSwitch; -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/WebWxInit.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/WebWxInit.java deleted file mode 100644 index fba7077a..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/beans/WebWxInit.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.beans; - -import java.util.List; - -/** - * @author WesleyOne - * @create 2018/12/21 - */ -@Deprecated -public class WebWxInit { - - private BaseResponse BaseResponse; - - private String ChatSet; - - private Long ClickReportInterval; - - private Long ClientVersion; - - private List ContactList; - - private Integer Count; - - private Integer GrayScale; - - private Integer InviteStartCount; - - /** - * 订阅号字段省略 - * MPSubscribeMsgCount - * MPSubscribeMsgList - */ - - private String SKey; - - private SyncKey SyncKey; - - private Long SystemTime; - - private User User; - - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/client/HttpClientManage.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/client/HttpClientManage.java deleted file mode 100644 index 7e157865..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/client/HttpClientManage.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.client; - -import org.apache.commons.lang3.StringUtils; -import org.apache.http.client.CookieStore; - -import java.util.HashMap; - -/** - * 多开请求类管理 - * @author WesleyOne - * @create 2018/12/15 - */ -public class HttpClientManage { - - private static HashMap clientMap = new HashMap<>(32); - - public static SingleHttpClient getInstance(String uniqueKey){ - return getInstance(uniqueKey,null); - } - - public static SingleHttpClient getInstance(String uniqueKey,CookieStore outCookieStore) { - if (StringUtils.isEmpty(uniqueKey)){ - return null; - } - SingleHttpClient client; - - // outCookieStore不为空时也重新构造,主要用于热登录 - if (!clientMap.containsKey(uniqueKey) || clientMap.get(uniqueKey) == null || outCookieStore != null){ - client = SingleHttpClient.getInstance(outCookieStore); - clientMap.put(uniqueKey, client); - } - return clientMap.get(uniqueKey); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/client/SingleHttpClient.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/client/SingleHttpClient.java deleted file mode 100644 index 7fcc9bfb..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/client/SingleHttpClient.java +++ /dev/null @@ -1,187 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.client; - -import org.apache.http.Consts; -import org.apache.http.HttpEntity; -import org.apache.http.client.ClientProtocolException; -import org.apache.http.client.CookieStore; -import org.apache.http.client.config.RequestConfig; -import org.apache.http.client.entity.UrlEncodedFormEntity; -import org.apache.http.client.methods.CloseableHttpResponse; -import org.apache.http.client.methods.HttpGet; -import org.apache.http.client.methods.HttpPost; -import org.apache.http.cookie.Cookie; -import org.apache.http.entity.StringEntity; -import org.apache.http.impl.client.BasicCookieStore; -import org.apache.http.impl.client.CloseableHttpClient; -import org.apache.http.impl.client.DefaultHttpRequestRetryHandler; -import org.apache.http.impl.client.HttpClients; -import org.apache.http.message.BasicNameValuePair; -import org.apache.http.util.EntityUtils; -import org.ruoyi.common.wechat.itchat4j.utils.Config; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.Set; - -/** - * @author WesleyOne - * @create 2018/12/15 - */ -public class SingleHttpClient { - private Logger logger = LoggerFactory.getLogger("UTILLOG"); - - private CloseableHttpClient httpClient ; - - private CookieStore cookieStore; - - private String uniqueKey; - - public String getCookie(String name) { - List cookies = cookieStore.getCookies(); - for (Cookie cookie : cookies) { - if (cookie.getName().equalsIgnoreCase(name)) { - return cookie.getValue(); - } - } - return null; - - } - - private SingleHttpClient(CookieStore outCookieStore){ - if (outCookieStore == null){ - outCookieStore = new BasicCookieStore(); - } - this.cookieStore = outCookieStore; - httpClient = HttpClients.custom().setDefaultCookieStore(cookieStore).setRetryHandler(new DefaultHttpRequestRetryHandler(0,false)).build(); - } - - private SingleHttpClient(){ - this(null); - } - - public static SingleHttpClient getInstance(CookieStore outCookieStore){ - return new SingleHttpClient(outCookieStore); - } - - /** - * 处理GET请求 - * - * @author https://github.com/yaphone - * @date 2017年4月9日 下午7:06:19 - * @param url - * @param params - * @return - */ - public HttpEntity doGet(String url, List params, boolean redirect, - Map headerMap) { - HttpEntity entity = null; - HttpGet httpGet = new HttpGet(); - - try { - if (params != null) { - String paramStr = EntityUtils.toString(new UrlEncodedFormEntity(params, Consts.UTF_8)); - httpGet = new HttpGet(url + "?" + paramStr); -// System.out.println(url + "?" + paramStr); - } else { - httpGet = new HttpGet(url); - } - if (!redirect) { - // 禁止重定向 - httpGet.setConfig(RequestConfig.custom().setRedirectsEnabled(false).build()); - } - httpGet.setHeader("User-Agent", Config.USER_AGENT); - if (headerMap != null) { - Set> entries = headerMap.entrySet(); - for (Map.Entry entry : entries) { - httpGet.setHeader(entry.getKey(), entry.getValue()); - } - } - CloseableHttpResponse response = httpClient.execute(httpGet); - entity = response.getEntity(); - } catch (ClientProtocolException e) { - logger.error(e.getMessage()); - } catch (IOException e) { - logger.error(e.getMessage()); - } catch (Exception e){ - logger.error(e.getMessage()); - } - return entity; - } - - /** - * 处理POST请求 - * - * @author https://github.com/yaphone - * @date 2017年4月9日 下午7:06:35 - * @param url - * @param paramsStr - * @return - */ - public HttpEntity doPost(String url, String paramsStr) { - return doPost(url,paramsStr,null); - } - - public HttpEntity doPost(String url, String paramsStr, Map headerMap) { - HttpEntity entity = null; - HttpPost httpPost = new HttpPost(); - try { - StringEntity params = new StringEntity(paramsStr, Consts.UTF_8); - httpPost = new HttpPost(url); - httpPost.setEntity(params); - httpPost.setHeader("Content-type", "application/json; charset=utf-8"); - httpPost.setHeader("User-Agent", Config.USER_AGENT); - if (headerMap != null) { - Set> entries = headerMap.entrySet(); - for (Map.Entry entry : entries) { - httpPost.setHeader(entry.getKey(), entry.getValue()); - } - } - CloseableHttpResponse response = httpClient.execute(httpPost); - entity = response.getEntity(); - } catch (ClientProtocolException e) { - logger.error(e.getMessage()); - } catch (IOException e) { - logger.error(e.getMessage()); - } catch (Exception e){ - logger.error(e.getMessage()); - } - return entity; - } - - /** - * 上传文件到服务器 - * - * @author https://github.com/yaphone - * @date 2017年5月7日 下午9:19:23 - * @param url - * @param reqEntity - * @return - */ - public HttpEntity doPostFile(String url, HttpEntity reqEntity) { - HttpEntity entity = null; - HttpPost httpPost = new HttpPost(url); - httpPost.setHeader("User-Agent", Config.USER_AGENT); - httpPost.setEntity(reqEntity); - try { - CloseableHttpResponse response = httpClient.execute(httpPost); - entity = response.getEntity(); - - } catch (Exception e) { - logger.error(e.getMessage()); - } - return entity; - } - - - public CookieStore getCookieStore() { - return this.cookieStore; - } - - public void setCookieStore(CookieStore cookieStore) { - this.cookieStore = cookieStore; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/controller/LoginController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/controller/LoginController.java deleted file mode 100644 index 171f73f3..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/controller/LoginController.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.controller; - -import org.ruoyi.common.wechat.itchat4j.core.Core; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.core.MsgCenter; -import org.ruoyi.common.wechat.itchat4j.service.ILoginService; -import org.ruoyi.common.wechat.itchat4j.service.impl.LoginServiceImpl; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.SleepUtils; -import org.ruoyi.common.wechat.itchat4j.utils.enums.URLEnum; -import org.ruoyi.common.wechat.web.base.BaseException; - -/** - * 登陆控制器 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年5月13日 下午12:56:07 - * @version 1.0 - * - * @author WesleyOne 修改 - */ -public class LoginController implements LogInterface { - - private ILoginService loginService; - private String uniqueKey; - private Core core; - - public LoginController(String uniqueKey){ - this.uniqueKey = uniqueKey; - this.loginService = new LoginServiceImpl(uniqueKey); - this.core = CoreManage.getInstance(uniqueKey); - } - - /** - * 获取二维码地址 - * 风险:已登录账号不可调用该接口,会移除当前core信息 - * @return - */ - public String login_1() throws BaseException { - if (core.isAlive()) { - LOG.warn("微信已登陆"); - throw new BaseException("微信已登陆"); - } - LOG.info("1.获取微信UUID"); - while (loginService.getUuid() == null) { - LOG.warn("1.1. 获取微信UUID失败,一秒后重新获取"); - SleepUtils.sleep(1000); - } - LOG.info("2. 获取登陆二维码图片"); - return URLEnum.QRCODE_URL.getUrl() + core.getUuid(); - } - - /** - * 确认登录 - * @return - */ - public boolean login_2(){ - - boolean result = false; - - LOG.info("3. 请扫描二维码图片,并在手机上确认"); - if (!core.isAlive()) { - if (loginService.login()){ - core.setAlive(true); - LOG.info(("3.1登陆成功")); - result = true; - } - } - return result; - } - - /** - * 加载数据 - * @return - */ - public boolean login_3() { - - boolean result = true; - - LOG.info("4.微信初始化"); - if (!loginService.webWxInit()) { - LOG.info("4.1 微信初始化异常"); - result = false; - } - - if (result){ - - LOG.info("5. 开启微信状态通知"); - loginService.wxStatusNotify(); - - LOG.info(String.format("欢迎回来, %s", core.getNickName())); - LOG.info("6.+++开启消息发送线程["+uniqueKey+"]+++"); - Thread sendThread = new Thread(core.getThreadGroup(), () -> MsgCenter.sendMsg(uniqueKey), "SEND-" + uniqueKey); - sendThread.start(); - - LOG.info("8. +++开始接收消息线程["+uniqueKey+"]+++"); - loginService.startReceiving(); - - LOG.info("9. 获取联系人信息"); - loginService.webWxGetContact(); - - LOG.info("10. 获取群好友及群好友列表及缓存"); - loginService.WebWxBatchGetContact(); - - } - - if (!result){ - core.setAlive(false); - return false; - } - - core.setFinishInit(true); - - return true; - } - - public boolean reboot(){ - - core.setFinishInit(false); - // 重新加载数据 - boolean result = true; - LOG.info("1.刷新初始化信息"); - if (!loginService.webWxInit()) { - LOG.info("1.1 微信初始化异常"); - result = false; - } - - if (result){ - LOG.info("2. 刷新开启微信状态通知"); - loginService.wxStatusNotify(); - - LOG.info("3. 刷新获取联系人信息"); - loginService.webWxGetContact(); - - LOG.info("4. 刷新获取群好友及群好友列表"); - loginService.WebWxBatchGetContact(); - } - - if (!result){ - core.setAlive(false); - return false; - } - - core.setFinishInit(true); - return true; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/Core.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/Core.java deleted file mode 100644 index a1c65aa0..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/Core.java +++ /dev/null @@ -1,371 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.core; - -import com.alibaba.fastjson.JSONObject; -import com.alibaba.fastjson.annotation.JSONField; -import org.ruoyi.common.wechat.itchat4j.beans.BaseMsg; -import org.ruoyi.common.wechat.itchat4j.beans.SendMsg; -import org.ruoyi.common.wechat.itchat4j.beans.User; -import org.ruoyi.common.wechat.itchat4j.client.HttpClientManage; -import org.ruoyi.common.wechat.itchat4j.client.SingleHttpClient; -import org.ruoyi.common.wechat.itchat4j.service.impl.LoginServiceImpl; -import org.ruoyi.common.wechat.itchat4j.utils.enums.parameters.BaseParaEnum; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 核心存储类,全局只保存一份,单例模式 - * - * @author https://github.com/yaphone - * @author WesleyOne 修改 - * @version 1.0 - * @date 创建时间:2017年4月23日 下午2:33:56 - */ -public class Core { - - private Core() { - - } - - private Core(String uniqueKey) { - this.uniqueKey = uniqueKey; - this.myHttpClient = HttpClientManage.getInstance(this.uniqueKey); - this.threadGroup = new ThreadGroup(this.uniqueKey); - } - - protected static Core getInstance(String uniqueKey) { - return new Core(uniqueKey); - } - - private String uniqueKey; - - boolean alive = false; - - /** - * 管理当前机器人的所有业务线程 - */ - @JSONField(serialize = false) - private ThreadGroup threadGroup; - - @JSONField(serialize = false) - boolean isFinishInit = false; - - /** - * login,webWxInit - * 登录接口获取 - */ - private String indexUrl; - private String userName; - private String nickName; - String uuid = null; - /** - * webWxInit - * InviteStartCount - * SyncKey - * synckey 随着每次获取最新消息后的返回值更新,其目的在于每次同步消息后记录一个当前同步的状态 - */ - Map loginInfo = new HashMap(); - - /** - * webWxInit - * 登陆账号自身信息 - * - * @see User - */ - private JSONObject userSelf; - - - /** - * 初始化/cgi-bin/mmwebwx-bin/webwxinit - * 最后一次收到正常retcode的时间,秒为单位 - *

- * synccheck刷新 - */ - private long lastNormalRetcodeTime; - - - /** - * synccheck和webWxSync容错次数,超过退出 - */ - int receivingRetryCount = 5; - - - @JSONField(serialize = false) - SingleHttpClient myHttpClient; - - public SingleHttpClient getMyHttpClient() { - return HttpClientManage.getInstance(uniqueKey); - } - - /** - * 初始话时获取联系人时创建 - * @see LoginServiceImpl#webWxGetContact() - */ - /** - * memberList长度 - */ - @JSONField(serialize = false) - private int memberCount = 0; - /** - * 好友+群聊+公众号+特殊账号 - * 注意:不主动插入,获取时通过其他几个账号集合合并 - */ - @JSONField(serialize = false) - private List memberList = new ArrayList(); - /** - * 好友 - */ - @JSONField(serialize = false) - private List contactList = new ArrayList(); - /** - * 群 - */ - @JSONField(serialize = false) - private List groupList = new ArrayList(); - /** - * 公众号/服务号 - */ - @Deprecated - @JSONField(serialize = false) - private List publicUsersList = new ArrayList(); - /** - * 特殊账号 - */ - @JSONField(serialize = false) - private List specialUsersList = new ArrayList(); - - /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ - - /** - * synccheck和webWxSynct添加 - * 异步接受消息存储 - */ - @JSONField(serialize = false) - private List msgList = new ArrayList<>(); - - /** - * 异步发送消息存储 - */ - @JSONField(serialize = false) - private List sendList = new ArrayList(); - - /******************************** - * 缓存字段,用于快速查找 - ********************************/ - - /** - * 微信昵称不能超过16位,而ID比较长,干脆用一个Map - * 群ID或昵称,群信息 - * 注意:存在相同昵称会后者覆盖前者 - *

- * WebWxBatchGetContact之后可以通过 - * .getJSONArray("MemberList")获取群成员列表 - */ - @JSONField(serialize = false) - private Map groupInfoMap = new HashMap<>(1024); - - /** - * 微信昵称不能超过16位,而ID比较长,干脆用一个Map - * 玩家ID或昵称,玩家信息 - * 注意:存在相同昵称会后者覆盖前者 - */ - @JSONField(serialize = false) - private Map userInfoMap = new HashMap<>(1024); - - /* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ - - /** - * 请求参数 - */ - @JSONField(serialize = false) - public Map getParamMap() { - return new HashMap(1) { - /** - * - */ - private static final long serialVersionUID = 1L; - - { - Map map = new HashMap<>(16); - for (BaseParaEnum baseRequest : BaseParaEnum.values()) { - map.put(baseRequest.para(), getLoginInfo().get(baseRequest.value()).toString()); - } - put("BaseRequest", map); - } - }; - } - - public String getUniqueKey() { - return uniqueKey; - } - - public void setUniqueKey(String uniqueKey) { - this.uniqueKey = uniqueKey; - } - - public boolean isAlive() { - return alive; - } - - public void setAlive(boolean alive) { - this.alive = alive; - if (!alive) { - this.isFinishInit = false; - } - } - - public String getIndexUrl() { - return indexUrl; - } - - public void setIndexUrl(String indexUrl) { - this.indexUrl = indexUrl; - } - - public String getUserName() { - return userName; - } - - public void setUserName(String userName) { - this.userName = userName; - } - - public String getNickName() { - return nickName; - } - - public void setNickName(String nickName) { - this.nickName = nickName; - } - - public String getUuid() { - return uuid; - } - - public void setUuid(String uuid) { - this.uuid = uuid; - } - - public Map getLoginInfo() { - return loginInfo; - } - - public void setLoginInfo(Map loginInfo) { - this.loginInfo = loginInfo; - } - - public JSONObject getUserSelf() { - return userSelf; - } - - public void setUserSelf(JSONObject userSelf) { - this.userSelf = userSelf; - } - - public long getLastNormalRetcodeTime() { - return lastNormalRetcodeTime; - } - - public void setLastNormalRetcodeTime(long lastNormalRetcodeTime) { - this.lastNormalRetcodeTime = lastNormalRetcodeTime; - } - - public int getReceivingRetryCount() { - return receivingRetryCount; - } - - public void setReceivingRetryCount(int receivingRetryCount) { - this.receivingRetryCount = receivingRetryCount; - } - - public int getMemberCount() { - return getContactList().size() + getGroupList().size() + getPublicUsersList().size() + getSpecialUsersList().size(); - } - - public List getMemberList() { - List memberList = new ArrayList<>(); - memberList.addAll(this.getContactList()); - memberList.addAll(this.getGroupList()); - memberList.addAll(this.getPublicUsersList()); - memberList.addAll(this.getSpecialUsersList()); - return memberList; - } - - public List getContactList() { - return contactList; - } - - public void setContactList(List contactList) { - this.contactList = contactList; - } - - public List getGroupList() { - return groupList; - } - - public void setGroupList(List groupList) { - this.groupList = groupList; - } - - public List getPublicUsersList() { - return publicUsersList; - } - - public void setPublicUsersList(List publicUsersList) { - this.publicUsersList = publicUsersList; - } - - public List getSpecialUsersList() { - return specialUsersList; - } - - public void setSpecialUsersList(List specialUsersList) { - this.specialUsersList = specialUsersList; - } - - public List getMsgList() { - return msgList; - } - - public void setMsgList(List msgList) { - this.msgList = msgList; - } - - public Map getGroupInfoMap() { - return groupInfoMap; - } - - public void setGroupInfoMap(Map groupInfoMap) { - this.groupInfoMap = groupInfoMap; - } - - public Map getUserInfoMap() { - return userInfoMap; - } - - public void setUserInfoMap(Map userInfoMap) { - this.userInfoMap = userInfoMap; - } - - public boolean isFinishInit() { - return isFinishInit; - } - - public void setFinishInit(boolean finishInit) { - isFinishInit = finishInit; - } - - public ThreadGroup getThreadGroup() { - return threadGroup; - } - - public void setThreadGroup(ThreadGroup threadGroup) { - this.threadGroup = threadGroup; - } - - public List getSendList() { - return sendList; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/CoreManage.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/CoreManage.java deleted file mode 100644 index 140903fa..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/CoreManage.java +++ /dev/null @@ -1,323 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.core; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.apache.http.impl.client.BasicCookieStore; -import org.apache.http.impl.cookie.BasicClientCookie; -import org.ruoyi.common.wechat.itchat4j.beans.SendMsg; -import org.ruoyi.common.wechat.itchat4j.client.HttpClientManage; -import org.ruoyi.common.wechat.itchat4j.controller.LoginController; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType; -import org.ruoyi.common.wechat.itchat4j.utils.tools.CommonTools; - -import java.io.*; -import java.util.Collection; -import java.util.Date; -import java.util.HashMap; -import java.util.Iterator; - -/** - * 多开管理 - * - * @author WesleyOne - * @create 2018/12/13 - */ -public class CoreManage implements LogInterface { - - static int MAX_CORE_NUM = 50; - private static HashMap coreMap = new HashMap<>(MAX_CORE_NUM / 3 * 4 + 1); - - // 是否热加载 - public static boolean USE_HOT_RELOAD = false; - public static String HOT_RELOAD_DIR = "/Users/wesley/output/hotreload/wxwobot.hot"; - - public static Core getInstance(String uniqueKey) { - if (StringUtils.isEmpty(uniqueKey)) { - return null; - } - Core core; - if (!coreMap.containsKey(uniqueKey) || coreMap.get(uniqueKey) == null) { - core = Core.getInstance(uniqueKey); - coreMap.put(uniqueKey, core); - } - return coreMap.get(uniqueKey); - } - - /** - * 移除 - * - * @param uniqueKey - */ - public static void remove(String uniqueKey) { - if (coreMap.containsKey(uniqueKey)) { - coreMap.remove(uniqueKey); - } - } - - /** - * 查询是否在线 - * - * @param uniqueKey - * @return - */ - public static boolean isActive(String uniqueKey) { - if (StringUtils.isNotEmpty(uniqueKey) && coreMap.containsKey(uniqueKey) && coreMap.get(uniqueKey).isAlive()) { - return true; - } - return false; - } - - /** - * 持久化 - */ - public static void persistence() { - - // 格式化数据 - Collection valueCollection = coreMap.values(); - int size = valueCollection.size(); - // 没有数据不操作 - if (size <= 0) { - return; - } - LOG.info("登录数据持久化中"); - Iterator iterator = valueCollection.iterator(); - JSONArray jsonArray = new JSONArray(); - while (iterator.hasNext()) { - Core core = iterator.next(); - if (core.isAlive()) { - JSONObject jsonObject = new JSONObject(); - jsonObject.put("core", core); - jsonObject.put("cookies", core.getMyHttpClient().getCookieStore().getCookies()); - jsonArray.add(jsonObject); - } - } - - try { - File file = new File(HOT_RELOAD_DIR); - if (!file.exists()) { - file.createNewFile(); - } - // 每次覆盖 - FileWriter fileWritter = new FileWriter(HOT_RELOAD_DIR, false); - fileWritter.write(jsonArray.toJSONString()); - fileWritter.close(); - - LOG.info("登录数据持久化完成"); - } catch (IOException e) { - e.printStackTrace(); - } - } - - /** - * 启动加载持久化文件 - */ - public static void reload() { - if (USE_HOT_RELOAD) { - File file = new File(HOT_RELOAD_DIR); - if (file.exists()) { - LOG.info("登录数据热加载中"); - StringBuilder stringBuilder = new StringBuilder(); - try { - FileReader fr = new FileReader(HOT_RELOAD_DIR); - BufferedReader bf = new BufferedReader(fr); - String str; - // 按行读取字符串 - while ((str = bf.readLine()) != null) { - stringBuilder.append(str); - } - bf.close(); - fr.close(); - } catch (IOException e) { - e.printStackTrace(); - return; - } - String result = stringBuilder.toString(); - if (StringUtils.isEmpty(result)) { - return; - } - - JSONArray jsonArray = JSONArray.parseArray(result); - int size = jsonArray.size(); - if (size > 0) { - // 封装成线程操作 - for (int i = 0; i < size; i++) { - JSONObject jsonObject = jsonArray.getJSONObject(i); - ReloadThread reloadThread = new ReloadThread(jsonObject); - Thread thread = new Thread(reloadThread); - thread.start(); - } - } - - LOG.info("登录数据热加载完成"); - } - } - } - - private static class ReloadThread implements Runnable { - - private JSONObject reloadObject; - - public ReloadThread(JSONObject object) { - this.reloadObject = object; - } - - @Override - public void run() { - Core core = null; - try { - /** - * 初始化Core, - * 1.获取登入的状态信息并装入CoreManage - * 2.构建ThreadGroup - * 3.获取Cookies并装入HttpClientManage - * 4.获取信息及启动线程 - */ - JSONObject jsonObject = this.reloadObject; - core = jsonObject.getObject("core", Core.class); - String uniqueKey = core.getUniqueKey(); - if (core.isAlive()) { - core.setThreadGroup(new ThreadGroup(uniqueKey)); - coreMap.put(uniqueKey, core); - - JSONArray cookiesJsonArray = jsonObject.getJSONArray("cookies"); - int arraySize = cookiesJsonArray.size(); - if (arraySize <= 0) { - return; - } - - // 装载原cookie信息,json解析cookie异常,干脆手动封装 - BasicCookieStore cookieStore = new BasicCookieStore(); - for (int ci = 0; ci < arraySize; ci++) { - JSONObject cookieJson = cookiesJsonArray.getJSONObject(ci); - String name = cookieJson.getString("name"); - String value = cookieJson.getString("value"); - String domain = cookieJson.getString("domain"); - String path = cookieJson.getString("path"); - Boolean persistent = cookieJson.getBoolean("persistent"); - Boolean secure = cookieJson.getBoolean("secure"); - Long expiryDate = cookieJson.getLong("expiryDate"); - Integer version = cookieJson.getInteger("version"); - - BasicClientCookie cookie = new BasicClientCookie(name, value); - cookie.setDomain(domain); - cookie.setPath(path); - cookie.setSecure(secure); - cookie.setExpiryDate(new Date(expiryDate)); - cookie.setVersion(version); - - cookieStore.addCookie(cookie); - } - // 必须在构建client时就放入cookie - HttpClientManage.getInstance(uniqueKey, cookieStore); - //装载core信息及启动线程 - LoginController login = new LoginController(uniqueKey); - if (!login.login_3()) { - // 加载失败退出 - core.setAlive(false); - return; - } - LOG.info("热登录成功: {}", uniqueKey); - } - } catch (Exception e) { - e.printStackTrace(); - if (core != null) { - core.setAlive(false); - core = null; - } - } - } - } - - - /** - * 存放新的群,昵称emoji处理 - * - * @param core - * @param jsonObject - */ - public static void addNewGroup(Core core, JSONObject jsonObject) { - String userName = jsonObject.getString("UserName"); - - CommonTools.emojiFormatter2(jsonObject, "NickName"); - // 删除重复的 - core.getGroupList().removeIf(group -> userName.equals(group.getString("UserName"))); - - core.getGroupList().add(jsonObject); - core.getGroupInfoMap().put(jsonObject.getString("NickName"), jsonObject); - core.getGroupInfoMap().put(userName, jsonObject); - } - - - /** - * 存放新的联系人,昵称emoji处理 - * - * @param core - * @param jsonObject - */ - public static void addNewContact(Core core, JSONObject jsonObject) { - String userName = jsonObject.getString("UserName"); - - CommonTools.emojiFormatter2(jsonObject, "NickName"); - // 删除重复的 - core.getContactList().removeIf(contact -> userName.equals(contact.getString("UserName"))); - - core.getContactList().add(jsonObject); - core.getUserInfoMap().put(jsonObject.getString("NickName"), jsonObject); - core.getUserInfoMap().put(userName, jsonObject); - } - - /** - * 消息统一加到队列里处理1 - * 用于已知UserName - * - * @param uniqueKey - * @param toUserName - * @param data - * @param type - */ - public static void addSendMsg4UserName(String uniqueKey, String toUserName, String data, SendMsgType type) { - if (StringUtils.isEmpty(uniqueKey) || StringUtils.isEmpty(toUserName) || StringUtils.isEmpty(data) || type == null) { - LOG.error("消息参数不完整 uk:{} un: {} data: {} ", uniqueKey, toUserName, data); - return; - } - - SendMsg sendMsg = new SendMsg(); - sendMsg.setUserName(toUserName); - sendMsg.setMessage(data); - sendMsg.setMsgType(type); - boolean isGroup = true; - if (toUserName != null && !toUserName.startsWith("@@")) { - isGroup = false; - } - sendMsg.setGroup(isGroup); - CoreManage.getInstance(uniqueKey).getSendList().add(sendMsg); - } - - /** - * 消息统一加到队列里处理2 - * 用于已知NickName - * - * @param uniqueKey - * @param toNickName - * @param data - * @param type - * @param isGroup - */ - public static void addSendMsg4NickName(String uniqueKey, String toNickName, String data, SendMsgType type, Boolean isGroup) { - - if (StringUtils.isEmpty(uniqueKey) || StringUtils.isEmpty(toNickName) || StringUtils.isEmpty(data) || type == null) { - LOG.error("消息参数不完整 uk:{} nn: {} data: {} ", uniqueKey, toNickName, data); - return; - } - - SendMsg sendMsg = new SendMsg(); - sendMsg.setNickName(toNickName); - sendMsg.setMessage(data); - sendMsg.setMsgType(type); - sendMsg.setGroup(isGroup); - CoreManage.getInstance(uniqueKey).getSendList().add(sendMsg); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/MsgCenter.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/MsgCenter.java deleted file mode 100644 index 9a8f607c..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/core/MsgCenter.java +++ /dev/null @@ -1,273 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.core; - - -import cn.hutool.core.collection.CollectionUtil; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.ruoyi.common.wechat.itchat4j.api.MessageTools; -import org.ruoyi.common.wechat.itchat4j.api.WechatTools; -import org.ruoyi.common.wechat.itchat4j.beans.BaseMsg; -import org.ruoyi.common.wechat.itchat4j.beans.SendMsg; -import org.ruoyi.common.wechat.itchat4j.face.IMsgHandlerFace; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.MoreConfig; -import org.ruoyi.common.wechat.itchat4j.utils.enums.MsgCodeEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.MsgTypeEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType; -import org.ruoyi.common.wechat.itchat4j.utils.tools.CommonTools; - -import java.util.ArrayList; -import java.util.List; - -/** - * 消息处理中心 - * - * @author https://github.com/yaphone - * @author WesleyOne 修改 - * @version 1.0 - * @date 创建时间:2017年5月14日 下午12:47:50 - */ -public class MsgCenter implements LogInterface { - - /** - * 接收消息,放入队列 - * - * @param msgList - * @return - * @author https://github.com/yaphone - * @date 2017年4月23日 下午2:30:48 - */ - public static JSONArray produceMsg(JSONArray msgList, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - JSONArray result = new JSONArray(); - // 用于暂存未知群ID,最后调用webwxbatchgetcontact获取 - List unknowGroup = new ArrayList<>(); - - for (int i = 0; i < msgList.size(); i++) { - JSONObject m = msgList.getJSONObject(i); - // 是否是群消息 - boolean isGroupMsg = false; - boolean isAtMe = false; - if (m.getString("FromUserName").contains("@@") || m.getString("ToUserName").contains("@@")) { - // 群聊消息 - isGroupMsg = true; - if (m.getString("FromUserName").contains("@@") - && !core.getGroupInfoMap().containsKey(m.getString("FromUserName"))) { - unknowGroup.add(m.getString("FromUserName")); - } else if (m.getString("ToUserName").contains("@@") - && !core.getGroupInfoMap().containsKey(m.getString("ToUserName"))) { - unknowGroup.add(m.getString("ToUserName")); - } - // 群消息与普通消息不同的是在其消息体(Content)中会包含发送者id及":
"消息,这里需要处理一下,去掉多余信息,只保留消息内容 - String splitCode = ":
"; - if (m.getString("Content").contains(splitCode)) { - String source = m.getString("Content"); - String content = source.substring(source.indexOf(splitCode) + splitCode.length()); - String sendMemberId = source.substring(0, source.indexOf(splitCode)); - - m.put("Content", content); - m.put(MoreConfig.SEND_MEMBER_ID, sendMemberId); - - if (content.contains("@" + core.getNickName())) { - isAtMe = true; - } - } - - } - m.put("groupMsg", isGroupMsg); - m.put("atMe", isAtMe); - // 1.文本消息 - if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_TEXT.getCode())) { - if (m.getString("Url").length() != 0) { - // 1.1分享位置 不处理 - continue; -// String[] contents = m.getString("Content").split(":"); -// String data = "Map"; -// if (contents.length>0) { -// data = contents[0]+":"+m.getString("Url"); -// } -// m.put("Type", MsgTypeEnum.MAP.getType()); -// m.put("Text", data); -// LOG.warn("MAP_CONTENT: {},URL: {}",m.getString("Content"),m.getString("Url")); - /** - * MAP_CONTENT: 滨兴小区(东区):/cgi-bin/mmwebwx-bin/webwxgetpubliclinkimg?url=xxx&msgid=7525662842661720095&pictype=location,URL: http://apis.map.qq.com/uri/v1/geocoder?coord=30.191660,120.200508 - */ - - } else { - // 1.2 普通文本 - m.put("Type", MsgTypeEnum.TEXT.getType()); - CommonTools.emojiFormatter2(m, "Content"); - m.put("Text", m.getString("Content")); - - } - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_IMAGE.getCode()) - || m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_EMOTICON.getCode())) { - // 2.图片消息 不处理 - continue; -// m.put("Type", MsgTypeEnum.PIC.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_VOICE.getCode())) { - // 3.语音消息 不处理 - continue; -// m.put("Type", MsgTypeEnum.VOICE.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_VERIFYMSG.getCode())) { - // 4.好友确认消息 不处理 - continue; - // MessageTools.addFriend(core, userName, 3, ticket); // 确认添加好友 -// m.put("Type", MsgTypeEnum.VERIFYMSG.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_SHARECARD.getCode())) { - // 5.共享名片 不处理 -// m.put("Type", MsgTypeEnum.NAMECARD.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_VIDEO.getCode()) - || m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_MICROVIDEO.getCode())) { - // 6.视频 不处理 - continue; -// m.put("Type", MsgTypeEnum.VIEDO.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_MEDIA.getCode())) { - // 7.分享链接 不处理 - continue; -// m.put("Type", MsgTypeEnum.MEDIA.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_STATUSNOTIFY.getCode())) { - // 微信初始化消息 系统 - m.put("Type", MsgTypeEnum.SYS.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_SYS.getCode())) { - // 系统消息 系统 - m.put("Type", MsgTypeEnum.SYS.getType()); - } else if (m.getInteger("MsgType").equals(MsgCodeEnum.MSGTYPE_RECALLED.getCode())) { - // 撤回消息 系统 不处理 - continue; -// m.put("Type", MsgTypeEnum.SYS.getType()); - } else { - LOG.error("Useless msg: {} \n {}", m.getInteger("MsgType"), m.getString("Content")); - } - - /** - * 日志 - * 显示收到的消息 - */ - String nickName; - String memberName = ""; - if (m.getBoolean("groupMsg")) { - nickName = WechatTools.getGroupNickNameByUserName(m.getString("FromUserName"), uniqueKey); - - if (m.getString(MoreConfig.SEND_MEMBER_ID) != null) { - // 获取成员昵称 - memberName = WechatTools.getMemberNickName(m.getString("FromUserName"), uniqueKey, m.getString(MoreConfig.SEND_MEMBER_ID)); - m.put(MoreConfig.SEND_MEMBER_NICKNAMW, memberName); - } - } else { - nickName = WechatTools.getContactNickNameByUserName(m.getString("FromUserName"), uniqueKey); - } - m.put("fromNickName", nickName); - LOG.info("收到【{}】=>【{}】消息,来自: {} 内容:\n{} ", - MsgCodeEnum.fromCode(m.getInteger("MsgType")) == null ? "未知类型" + m.getInteger("MsgType") : MsgCodeEnum.fromCode(m.getInteger("MsgType")).getType(), - m.getString("Type"), - nickName + " : " + memberName, - StringUtils.isNotEmpty(m.getString("Content")) ? m.getString("Content") : ""); - result.add(m); - } - return result; - } - - /** - * 微信接收消息处理 - * - * @param uniqueKey - * @author https://github.com/yaphone - * @date 2017年5月14日 上午10:52:34 - */ - public static void handleMsg(String uniqueKey, IMsgHandlerFace msgHandler) { - Core core = CoreManage.getInstance(uniqueKey); - while (true) { - if (!core.isAlive()) { - LOG.info("停止消息处理"); - break; - } - if (core.getMsgList().size() > 0 && core.getMsgList().get(0).getContent() != null) { - if (core.getMsgList().get(0).getContent().length() > 0) { - BaseMsg msg = core.getMsgList().get(0); - if (msg.getType() != null) { - try { - if (msg.getType().equals(MsgTypeEnum.TEXT.getType())) { - msgHandler.textMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.PIC.getType())) { - msgHandler.picMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.VOICE.getType())) { - msgHandler.voiceMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.VIEDO.getType())) { - msgHandler.videoMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.NAMECARD.getType())) { - msgHandler.nameCardMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.SYS.getType())) { - msgHandler.sysMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.VERIFYMSG.getType())) { - msgHandler.verifyAddFriendMsgHandle(msg); - } else if (msg.getType().equals(MsgTypeEnum.MEDIA.getType())) { - msgHandler.mediaMsgHandle(msg); - } else { - LOG.warn("暂未处理信息【{}】", msg.getType()); - } - } catch (Exception e) { - LOG.error(e.getMessage(), e); - } - } - } - core.getMsgList().remove(0); - } - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - e.printStackTrace(); - LOG.error("消息处理中断"); - break; - } - } - } - - /** - * 统一发送消息 - * - * @param uniqueKey - */ - public static void sendMsg(String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - while (true) { - if (core == null || !core.isAlive()) { - LOG.info("停止消息发送"); - break; - } - if (CollectionUtil.isNotEmpty(core.getSendList())) { - SendMsg sendMsg = core.getSendList().get(0); - try { - String userName = sendMsg.getUserName(); - String nickName = sendMsg.getNickName(); - String message = sendMsg.getMessage(); - boolean isGroup = sendMsg.isGroup(); - SendMsgType msgType = sendMsg.getMsgType(); - if (StringUtils.isNotEmpty(message) && msgType != null) { - if (StringUtils.isNotEmpty(userName)) { - MessageTools.send(userName, uniqueKey, message, msgType.toValue()); - } else if (StringUtils.isNotEmpty(nickName)) { - MessageTools.sendByNickName(nickName, uniqueKey, message, msgType.toValue(), isGroup); - } else { - LOG.error("无效发送消息: {}", JSONObject.toJSONString(sendMsg)); - } - } - } catch (Exception e) { - LOG.error(e.getMessage(), e); - } - core.getSendList().remove(0); - } - try { - // 控制发送频率 - Thread.sleep(2000); - } catch (InterruptedException e) { - e.printStackTrace(); - LOG.error("消息发送中断"); - break; - } - } - - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/face/IMsgHandlerFace.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/face/IMsgHandlerFace.java deleted file mode 100644 index 31e2c2a9..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/face/IMsgHandlerFace.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.face; - -import org.ruoyi.common.wechat.itchat4j.beans.BaseMsg; - -/** - * 消息处理接口 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月20日 上午12:13:49 - * @version 1.0 - * - * @author WesleyOne 修改 - */ -public interface IMsgHandlerFace { - - /** - * - * @author https://github.com/yaphone - * @date 2017年4月20日 上午12:15:00 - * @param msg - * @return - */ - void textMsgHandle(BaseMsg msg); - - /** - * 处理图片消息 - * - * @author https://github.com/yaphone - * @date 2017年4月21日 下午11:07:06 - * @param msg - * @return - */ - void picMsgHandle(BaseMsg msg); - - /** - * 处理声音消息 - * - * @author https://github.com/yaphone - * @date 2017年4月22日 上午12:09:44 - * @param msg - * @return - */ - void voiceMsgHandle(BaseMsg msg); - - /** - * 处理小视频消息 - * - * @author https://github.com/yaphone - * @date 2017年4月23日 下午12:19:50 - * @param msg - * @return - */ - void videoMsgHandle(BaseMsg msg); - - /** - * 处理名片消息 - * - * @author https://github.com/yaphone - * @date 2017年5月1日 上午12:50:50 - * @param msg - * @return - */ - void nameCardMsgHandle(BaseMsg msg); - - /** - * 处理系统消息 - * - * @author Relyn - * @date 2017年6月21日17:43:51 - * @param msg - * @return - */ - void sysMsgHandle(BaseMsg msg); - - /** - * 处理确认添加好友消息 - * - * @date 2017年6月28日 下午10:15:30 - * @param msg - * @return - */ - void verifyAddFriendMsgHandle(BaseMsg msg); - - /** - * 处理收到的文件消息 - * - * @date 2017年7月21日 下午11:59:14 - * @param msg - * @return - */ - void mediaMsgHandle(BaseMsg msg); - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/service/ILoginService.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/service/ILoginService.java deleted file mode 100644 index 97a7cb51..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/service/ILoginService.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.service; - - - -/** - * 登陆服务接口 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年5月13日 上午12:07:21 - * @version 1.0 - * - * @author WesleyOne 修改 - */ -public interface ILoginService { - - /** - * 登陆 - * - * @author https://github.com/yaphone - * @date 2017年5月13日 上午12:14:07 - * @return - */ - boolean login(); - - /** - * 获取UUID - * - * @author https://github.com/yaphone - * @date 2017年5月13日 上午12:21:40 - * @return - */ - String getUuid(); - - /** - * 获取二维码图片 - * (直接获取图片链接,不下载文件) - * @author https://github.com/yaphone - * @date 2017年5月13日 上午12:13:51 - * @param qrPath - * @return - */ - @Deprecated - boolean getQR(String qrPath); - - /** - * web初始化 - * - * @author https://github.com/yaphone - * @date 2017年5月13日 上午12:14:13 - * @return - */ - boolean webWxInit(); - - /** - * 微信状态通知 - * - * @author https://github.com/yaphone - * @date 2017年5月13日 上午12:14:24 - */ - void wxStatusNotify(); - - /** - * 接收消息 - * - * @author https://github.com/yaphone - * @date 2017年5月13日 上午12:14:37 - */ - void startReceiving(); - - /** - * 获取微信联系人 - * - * @author https://github.com/yaphone - * @date 2017年5月13日 下午2:26:18 - */ - void webWxGetContact(); - - /** - * 批量获取联系人信息 - * - * @date 2017年6月22日 下午11:24:35 - */ - void WebWxBatchGetContact(); - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/service/impl/LoginServiceImpl.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/service/impl/LoginServiceImpl.java deleted file mode 100644 index 9e1d021a..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/service/impl/LoginServiceImpl.java +++ /dev/null @@ -1,894 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.service.impl; - - -import cn.hutool.core.collection.CollectionUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.apache.http.Consts; -import org.apache.http.HttpEntity; -import org.apache.http.cookie.Cookie; -import org.apache.http.message.BasicNameValuePair; -import org.apache.http.util.EntityUtils; -import org.ruoyi.common.wechat.itchat4j.beans.BaseMsg; -import org.ruoyi.common.wechat.itchat4j.beans.Member; -import org.ruoyi.common.wechat.itchat4j.beans.WebWxInit; -import org.ruoyi.common.wechat.itchat4j.core.Core; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.core.MsgCenter; -import org.ruoyi.common.wechat.itchat4j.service.ILoginService; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.SleepUtils; -import org.ruoyi.common.wechat.itchat4j.utils.enums.*; -import org.ruoyi.common.wechat.itchat4j.utils.enums.parameters.BaseParaEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.parameters.LoginParaEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.parameters.StatusNotifyParaEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.parameters.UUIDParaEnum; -import org.ruoyi.common.wechat.itchat4j.utils.tools.CommonTools; -import org.w3c.dom.Document; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.OutputStream; -import java.util.*; -import java.util.Map.Entry; -import java.util.regex.Matcher; - -/** - * 登陆服务实现类 - * - * @author https://github.com/yaphone - * @author WesleyOne 修改 - * @version 1.0 - * @date 创建时间:2017年5月13日 上午12:09:35 - */ -public class LoginServiceImpl implements ILoginService, LogInterface { - private Core core; - private String uniqueKey; - - public LoginServiceImpl(String uniqueKey) { - this.uniqueKey = uniqueKey; - this.core = CoreManage.getInstance(uniqueKey); - } - - @Override - public boolean login() { - - boolean isLogin = false; - // 组装参数和URL - List params = new ArrayList(); - params.add(new BasicNameValuePair(LoginParaEnum.LOGIN_ICON.para(), LoginParaEnum.LOGIN_ICON.value())); - params.add(new BasicNameValuePair(LoginParaEnum.UUID.para(), core.getUuid())); - params.add(new BasicNameValuePair(LoginParaEnum.TIP.para(), LoginParaEnum.TIP.value())); - - // long time = 4000; - long startMillis = System.currentTimeMillis(); - boolean overTime = false; - - while (!isLogin && !overTime) { - // 防止请求重复时的问题 - if (core.isAlive()) { - break; - } - - long millis = System.currentTimeMillis(); - params.add(new BasicNameValuePair(LoginParaEnum.R.para(), String.valueOf(millis / 1579L))); - params.add(new BasicNameValuePair(LoginParaEnum._1.para(), String.valueOf(millis))); - HttpEntity entity = core.getMyHttpClient().doGet(URLEnum.LOGIN_URL.getUrl(), params, true, null); - - try { - String result = EntityUtils.toString(entity); - String status = checklogin(result); - if (ResultEnum.SUCCESS.getCode().equals(status)) { - // 处理结果 - if (processLoginInfo(result)) { - isLogin = true; - core.setAlive(isLogin); - break; - } else { - isLogin = false; - core.setAlive(isLogin); - // 登入异常直接退出,防止死循环 - break; - } - } - if (ResultEnum.WAIT_CONFIRM.getCode().equals(status)) { - LOG.info("请点击微信确认按钮,进行登陆"); - } - - } catch (Exception e) { - LOG.error("微信登陆异常!", e); - break; - } - // 3分钟超时不再请求 - SleepUtils.sleep(1000); - overTime = (millis - startMillis) > 1000 * 180; - } - return isLogin; - } - - - @Override - public String getUuid() { - // 组装参数和URL - List params = new ArrayList(); - params.add(new BasicNameValuePair(UUIDParaEnum.APP_ID.para(), UUIDParaEnum.APP_ID.value())); - params.add(new BasicNameValuePair(UUIDParaEnum.FUN.para(), UUIDParaEnum.FUN.value())); - params.add(new BasicNameValuePair(UUIDParaEnum.LANG.para(), UUIDParaEnum.LANG.value())); - params.add(new BasicNameValuePair(UUIDParaEnum._1.para(), String.valueOf(System.currentTimeMillis()))); - - HttpEntity entity = core.getMyHttpClient().doGet(URLEnum.UUID_URL.getUrl(), params, true, null); - - try { - String result = EntityUtils.toString(entity); - String regEx = "window.QRLogin.code = (\\d+); window.QRLogin.uuid = \"(\\S+?)\";"; - Matcher matcher = CommonTools.getMatcher(regEx, result); - LOG.info(result); - if (matcher.find()) { - if ((ResultEnum.SUCCESS.getCode().equals(matcher.group(1)))) { - core.setUuid(matcher.group(2)); - } - } - } catch (Exception e) { - LOG.error(e.getMessage(), e); - } - - return core.getUuid(); - } - - @Deprecated - @Override - public boolean getQR(String qrPath) { - return getQR(qrPath, false); - } - - @Deprecated - public boolean getQR(String qrPath, boolean open) { - qrPath = qrPath + File.separator + "QR.jpg"; - String qrUrl = URLEnum.QRCODE_URL.getUrl() + core.getUuid(); - HttpEntity entity = core.getMyHttpClient().doGet(qrUrl, null, true, null); - try { - // 文件已存在先删除 - File file = new File(qrPath); - if (file.exists() && file.isFile()) { - file.delete(); - } - // 写入二维码 - OutputStream out = new FileOutputStream(qrPath); - byte[] bytes = EntityUtils.toByteArray(entity); - out.write(bytes); - out.flush(); - out.close(); - if (open) { - try { - CommonTools.printQr(qrPath); // 打开登陆二维码图片 - } catch (Exception e) { - LOG.info(e.getMessage()); - } - } - - } catch (Exception e) { - e.printStackTrace(); - LOG.error(e.getMessage(), e); - return false; - } - - return true; - } - - /** - * 获取自身登录信息缓存 - * - * @return - */ - @Override - public boolean webWxInit() { - core.setAlive(true); - core.setLastNormalRetcodeTime(System.currentTimeMillis()); - - try { - // 组装请求URL和参数 - String url = String.format(URLEnum.INIT_URL.getUrl(), - core.getLoginInfo().get(StorageLoginInfoEnum.url.getKey()), - System.currentTimeMillis() / 3158L, - core.getLoginInfo().get(StorageLoginInfoEnum.pass_ticket.getKey())); - Map paramMap = core.getParamMap(); - - // 请求初始化接口 - HttpEntity entity = core.getMyHttpClient().doPost(url, JSONObject.toJSONString(paramMap), getPersistentCookieMap()); - String result = EntityUtils.toString(entity, Consts.UTF_8); - - /** - * 相关返回信息,本项目未做封装 - * @see WebWxInit - */ - JSONObject obj = JSON.parseObject(result); - - JSONObject user = obj.getJSONObject(StorageLoginInfoEnum.User.getKey()); - JSONObject syncKey = obj.getJSONObject(StorageLoginInfoEnum.SyncKey.getKey()); - - core.getLoginInfo().put(StorageLoginInfoEnum.InviteStartCount.getKey(), - obj.getInteger(StorageLoginInfoEnum.InviteStartCount.getKey())); - core.getLoginInfo().put(StorageLoginInfoEnum.SyncKey.getKey(), syncKey); - - JSONArray syncArray = syncKey.getJSONArray("List"); - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < syncArray.size(); i++) { - sb.append(syncArray.getJSONObject(i).getString("Key") + "_" - + syncArray.getJSONObject(i).getString("Val") + "|"); - } - // 1_661706053|2_661706420|3_661706415|1000_1494151022| - String synckey = sb.toString(); - - // 1_661706053|2_661706420|3_661706415|1000_1494151022 - core.getLoginInfo().put(StorageLoginInfoEnum.synckey.getKey(), synckey.substring(0, synckey.length() - 1)); - core.setUserName(user.getString("UserName")); - core.setNickName(user.getString("NickName")); - core.setUserSelf(obj.getJSONObject("User")); - - /** - * TIP: - * ContactList此处只是部分,不做处理,webwxgetcontact接口统一处理 - * MPSubscribeMsgList 公众号服务号也不处理 - */ - } catch (Exception e) { - LOG.error("热登录出现该异常请忽略" + e.getMessage(), e); - core.setAlive(false); - return false; - } - return true; - } - - @Override - public void wxStatusNotify() { - // 组装请求URL和参数 - String url = String.format(URLEnum.STATUS_NOTIFY_URL.getUrl(), - core.getLoginInfo().get(StorageLoginInfoEnum.pass_ticket.getKey())); - - Map paramMap = core.getParamMap(); - paramMap.put(StatusNotifyParaEnum.CODE.para(), StatusNotifyParaEnum.CODE.value()); - paramMap.put(StatusNotifyParaEnum.FROM_USERNAME.para(), core.getUserName()); - paramMap.put(StatusNotifyParaEnum.TO_USERNAME.para(), core.getUserName()); - paramMap.put(StatusNotifyParaEnum.CLIENT_MSG_ID.para(), System.currentTimeMillis()); - String paramStr = JSON.toJSONString(paramMap); - - try { - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr); -// String result = EntityUtils.toString(entity, Consts.UTF_8); -// LOG.info(result); - } catch (Exception e) { - LOG.error("微信状态通知接口失败!", e); - } - - } - - @Override - public void startReceiving() { - core.setAlive(true); - Thread thread = new Thread(core.getThreadGroup(), new Runnable() { - int retryCount = 0; - - @Override - public void run() { - while (core.isAlive()) { - try { - long startTime = System.currentTimeMillis(); - Map resultMap = syncCheck(); - LOG.info(JSONObject.toJSONString(resultMap)); - String retcode = resultMap.get("retcode"); - String selector = resultMap.get("selector"); - RetCodeEnum retCodeEnum = RetCodeEnum.fromCode(retcode); - if (retCodeEnum != null) { - LOG.info(retCodeEnum.getType()); - if (retcode.equals(RetCodeEnum.UNKOWN.getCode())) { - // 防止频繁请求 - Thread.sleep(1000); - continue; - } else if (retcode.equals(RetCodeEnum.SUCCESS.getCode())) { - // 修改最后收到正常报文时间 - core.setLastNormalRetcodeTime(System.currentTimeMillis()); - SelectorEnum selectorEnum = SelectorEnum.fromCode(selector); - if (selectorEnum != null) { - if (selector.equals(SelectorEnum.NORMAL.getCode())) { - continue; - } else if (selector.equals(SelectorEnum.NEW_MSG.getCode())) { - // 有新消息 -// processWebwxSync(); - } else if (selector.equals(SelectorEnum.ENTER_OR_LEAVE_CHAT.getCode())) { -// processWebwxSync(); - } else if (selector.equals(SelectorEnum.MOD_CONTACT.getCode())) { -// processWebwxSync(); - } else if (selector.equals(SelectorEnum.SELECTOR_3.getCode())) { -// processWebwxSync(); -// continue; - } else if (selector.equals(SelectorEnum.ADD_OR_DEL_CONTACT.getCode())) { -// processWebwxSync(); - } else { - LOG.error("UNKNOW SELECTOR CODE {}", selector); - } - } else { - // 防止新类型不处理堆积 -// processWebwxSync(); - } - } else if (retcode.equals(RetCodeEnum.NOT_LOGIN_CHECK.getCode()) || - retcode.equals(RetCodeEnum.TICKET_ERROR.getCode()) || - retcode.equals(RetCodeEnum.PARAM_ERROR.getCode()) || - retcode.equals(RetCodeEnum.NOT_LOGIN_WARN.getCode()) || - retcode.equals(RetCodeEnum.COOKIE_INVALID_ERROR.getCode()) || - retcode.equals(RetCodeEnum.LOGIN_ENV_ERROR.getCode())) { - // 状态异常直接退出 - core.setAlive(false); - break; - } else { - // 防止频繁请求 - Thread.sleep(1000); - break; - } - } else { - LOG.error("特殊retcode: {}", retcode); - } - // 统统尝试获取新消息 - processWebwxSync(); - if (System.currentTimeMillis() - startTime < 1000 * 1) { - Thread.sleep(1000); - } - } catch (InterruptedException e0) { - LOG.error("线程中断"); - core.setAlive(false); - break; - } catch (Exception e) { - LOG.error(e.getMessage()); - retryCount += 1; - if (core.getReceivingRetryCount() < retryCount) { - core.setAlive(false); - } else { - try { - Thread.sleep(1000); - } catch (InterruptedException e1) { - LOG.error(e.getMessage()); - break; - } - } - } - - } - } - }, "REC-" + uniqueKey); - thread.start(); - } - - - private void processWebwxSync() { - JSONObject msgObj = webWxSync(); - if (msgObj != null) { - Integer addMsgCount = msgObj.getInteger("AddMsgCount"); - Integer ModMsgCount = msgObj.getInteger("ModContactCount"); - Integer DelContactCount = msgObj.getInteger("DelContactCount"); - Integer ModChatRoomMemberCount = msgObj.getInteger("ModChatRoomMemberCount"); - - - if (addMsgCount > 0 || ModMsgCount > 0 || DelContactCount > 0 || ModChatRoomMemberCount > 0) { - LOG.info("接收原文:{}", msgObj.toJSONString()); - } - - // 用于通知获取详细详细 - List modUserName = new ArrayList<>(); - - // 处理新消息 - try { - - if (addMsgCount > 0) { - JSONArray msgList = msgObj.getJSONArray("AddMsgList"); - msgList = MsgCenter.produceMsg(msgList, uniqueKey); - for (int j = 0; j < msgList.size(); j++) { - BaseMsg baseMsg = JSON.toJavaObject(msgList.getJSONObject(j), - BaseMsg.class); - // TODO 日志 - LOG.info("处理后对象:{}", JSON.toJSONString(baseMsg)); - core.getMsgList().add(baseMsg); - } - } - } catch (Exception e) { - e.printStackTrace(); - } - - // 处理修改联系人或群成员 - try { - if (ModMsgCount > 0) { - JSONArray list = msgObj.getJSONArray("ModContactList"); - int size = list.size(); - for (int j = 0; j < size; j++) { - String userName = list.getJSONObject(j).getString("UserName"); - if (userName.startsWith("@@")) { - CoreManage.addNewGroup(core, list.getJSONObject(j)); - } else if (userName.startsWith("@")) { - CoreManage.addNewContact(core, list.getJSONObject(j)); - } - modUserName.add(userName); - } - } - } catch (Exception e) { - e.printStackTrace(); - } - - /** - * 没有获取过数据,不知道干啥用 - * DelContactCount: 0 - * DelContactList: [] - * ModChatRoomMemberCount: 0 - * ModChatRoomMemberList: [] - */ - - // 获取详细信息 - WebWxBatchGetContact(modUserName); - - } - - - } - - - @Override - public void webWxGetContact() { - String url = String.format(URLEnum.WEB_WX_GET_CONTACT.getUrl(), - core.getLoginInfo().get(StorageLoginInfoEnum.url.getKey())); - JSONArray member = new JSONArray(); - try { - - // 循环获取seq直到为0,即获取全部好友列表 ==0:好友获取完毕 >0:好友未获取完毕,此时seq为已获取的字节数 - Long seq = 0L; - do { - // 设置seq传参 - List params = new ArrayList<>(); - params.add(new BasicNameValuePair("r", String.valueOf(System.currentTimeMillis()))); - params.add(new BasicNameValuePair("seq", String.valueOf(seq))); - params.add(new BasicNameValuePair("skey", core.getLoginInfo().get(BaseParaEnum.Skey.value()).toString())); - HttpEntity entity = core.getMyHttpClient().doGet(url, params, false, getPersistentCookieMap()); - - String result = EntityUtils.toString(entity, Consts.UTF_8); - JSONObject fullFriendsJsonList = JSON.parseObject(result); - - if (fullFriendsJsonList.get("Seq") != null) { - seq = fullFriendsJsonList.getLong("Seq"); - } - - // 累加好友列表 - member.addAll(fullFriendsJsonList.getJSONArray(StorageLoginInfoEnum.MemberList.getKey())); - } while (seq > 0); - Iterator iterator = member.iterator(); - while (iterator.hasNext()) { - /** - * @see Member - */ - JSONObject o = (JSONObject) iterator.next(); - - String userName = o.getString("UserName"); - - if (StringUtils.isEmpty(userName)) { - LOG.error("{} 好友列表存在UserName空", core.getUniqueKey()); - continue; - } - /** - * 自己信息不添加 - */ - if (userName.equals(core.getUserName())) { - continue; - } - - /** - * 开头@@ => 群聊 - * 开头@ => VerifyFlag -> == 0 好友 - * -> != 0 公众号、服务号 - * 不含@开头(其他) => 特殊账号 - */ - - if (userName.startsWith("@@")) { - // 群聊 - CoreManage.addNewGroup(core, o); - - } else if (userName.startsWith("@")) { - Integer verifyFlag = o.getInteger("VerifyFlag"); - if (verifyFlag != null && verifyFlag == 0) { - // 好友 - CoreManage.addNewContact(core, o); - } else { - // 公众号 - core.getPublicUsersList().add(o); - } - } else { - // 特殊账号 - core.getSpecialUsersList().add(o); - } - } - } catch (Exception e) { - LOG.error(e.getMessage(), e); - } - return; - } - - /** - * 获取群和好友详细信息 - * 首次加载用 - */ - @Override - public void WebWxBatchGetContact() { - - Map paramMap = core.getParamMap(); - // 处理群成员信息 - int size = core.getGroupList().size(); - List> list = new ArrayList<>(); - for (int i = 0; i < size; i++) { - HashMap map = new HashMap<>(4); - map.put("UserName", core.getGroupList().get(i).getString("UserName")); - map.put("EncryChatRoomId", ""); - list.add(map); - } - // 处理玩家 - int sizeUser = core.getContactList().size(); - for (int i = 0; i < sizeUser; i++) { - HashMap map = new HashMap<>(4); - map.put("UserName", core.getContactList().get(i).getString("UserName")); - map.put("EncryChatRoomId", ""); - list.add(map); - } - - WebWxBatchGetContactMain(paramMap, list); - } - - /** - * 获取群和好友详细信息 - * 过程中零散查询 - */ - public void WebWxBatchGetContact(List userNameList) { - - if (CollectionUtil.isEmpty(userNameList)) { - return; - } - - String url = String.format(URLEnum.WEB_WX_BATCH_GET_CONTACT.getUrl(), - core.getLoginInfo().get(StorageLoginInfoEnum.url.getKey()), System.currentTimeMillis(), - core.getLoginInfo().get(StorageLoginInfoEnum.pass_ticket.getKey())); - Map paramMap = core.getParamMap(); - // 为了获取群成员信息 - List> list = new ArrayList<>(); - int size = userNameList.size(); - for (int i = 0; i < size; i++) { - HashMap map = new HashMap<>(4); - map.put("UserName", userNameList.get(i)); - map.put("EncryChatRoomId", ""); - list.add(map); - } - WebWxBatchGetContactMain(paramMap, list); - } - - private void WebWxBatchGetContactMain(Map paramMap, List> list) { - - String url = String.format(URLEnum.WEB_WX_BATCH_GET_CONTACT.getUrl(), - core.getLoginInfo().get(StorageLoginInfoEnum.url.getKey()), System.currentTimeMillis(), - core.getLoginInfo().get(StorageLoginInfoEnum.pass_ticket.getKey())); - - int totalSize = list.size(); - - int batchSize = 50; - int num = totalSize / batchSize; - if (totalSize % batchSize > 0) { - num += 1; - } - - for (int i = 0; i < num; i++) { - int startNum = i * batchSize; - int endNum = (i + 1) * batchSize; - if (endNum > totalSize) { - endNum = totalSize; - } - paramMap.put("Count", endNum - startNum); - paramMap.put("List", list.subList(startNum, endNum)); - HttpEntity entity = core.getMyHttpClient().doPost(url, JSON.toJSONString(paramMap), getPersistentCookieMap()); - try { - String text = EntityUtils.toString(entity, Consts.UTF_8); - JSONObject obj = JSON.parseObject(text); - JSONArray contactList = obj.getJSONArray("ContactList"); - int contactSize = contactList.size(); - if (contactSize > 0) { - for (int j = 0; j < contactSize; j++) { - String userName = contactList.getJSONObject(j).getString("UserName"); - if (userName.startsWith("@@")) { - CoreManage.addNewGroup(core, contactList.getJSONObject(j)); - } else if (userName.startsWith("@")) { - CoreManage.addNewContact(core, contactList.getJSONObject(j)); - } - } - } - } catch (Exception e) { - LOG.info(e.getMessage()); - } - } - } - - - /** - * 检查登陆状态 - * - * @param result - * @return - */ - public String checklogin(String result) { - String regEx = "window.code=(\\d+)"; - Matcher matcher = CommonTools.getMatcher(regEx, result); - if (matcher.find()) { - return matcher.group(1); - } - return null; - } - - /** - * 处理登陆信息 - * - * @param loginContent - * @author https://github.com/yaphone - * @date 2017年4月9日 下午12:16:26 - */ - private boolean processLoginInfo(String loginContent) { - String regEx = "window.redirect_uri=\"(\\S+)\";"; - Matcher matcher = CommonTools.getMatcher(regEx, loginContent); - if (matcher.find()) { - String originalUrl = matcher.group(1); - String url = originalUrl.substring(0, originalUrl.lastIndexOf('/')); - core.getLoginInfo().put("url", url); - Map> possibleUrlMap = this.getPossibleUrlMap(); - Iterator>> iterator = possibleUrlMap.entrySet().iterator(); - Entry> entry; - String fileUrl; - String syncUrl; - while (iterator.hasNext()) { - entry = iterator.next(); - String indexUrl = entry.getKey(); - fileUrl = "https://" + entry.getValue().get(0) + "/cgi-bin/mmwebwx-bin"; - syncUrl = "https://" + entry.getValue().get(1) + "/cgi-bin/mmwebwx-bin"; - if (core.getLoginInfo().get("url").toString().contains(indexUrl)) { - core.setIndexUrl(indexUrl); - core.getLoginInfo().put("fileUrl", fileUrl); - core.getLoginInfo().put("syncUrl", syncUrl); - break; - } - } - if (core.getLoginInfo().get("fileUrl") == null && core.getLoginInfo().get("syncUrl") == null) { - core.getLoginInfo().put("fileUrl", url); - core.getLoginInfo().put("syncUrl", url); - } - core.getLoginInfo().put("deviceid", "e" + String.valueOf(new Random().nextLong()).substring(1, 16)); // 生成15位随机数 - core.getLoginInfo().put("BaseRequest", new ArrayList()); - String text = ""; - - try { - Map header = new HashMap<>(); - header.put("client-version", "2.0.0"); - header.put("extspam", "Go8FCIkFEokFCggwMDAwMDAwMRAGGvAESySibk50w5Wb3uTl2c2h64jVVrV7gNs06GFlWplHQbY/5FfiO++1yH4ykCyNPWKXmco+wfQzK5R98D3so7rJ5LmGFvBLjGceleySrc3SOf2Pc1gVehzJgODeS0lDL3/I/0S2SSE98YgKleq6Uqx6ndTy9yaL9qFxJL7eiA/R3SEfTaW1SBoSITIu+EEkXff+Pv8NHOk7N57rcGk1w0ZzRrQDkXTOXFN2iHYIzAAZPIOY45Lsh+A4slpgnDiaOvRtlQYCt97nmPLuTipOJ8Qc5pM7ZsOsAPPrCQL7nK0I7aPrFDF0q4ziUUKettzW8MrAaiVfmbD1/VkmLNVqqZVvBCtRblXb5FHmtS8FxnqCzYP4WFvz3T0TcrOqwLX1M/DQvcHaGGw0B0y4bZMs7lVScGBFxMj3vbFi2SRKbKhaitxHfYHAOAa0X7/MSS0RNAjdwoyGHeOepXOKY+h3iHeqCvgOH6LOifdHf/1aaZNwSkGotYnYScW8Yx63LnSwba7+hESrtPa/huRmB9KWvMCKbDThL/nne14hnL277EDCSocPu3rOSYjuB9gKSOdVmWsj9Dxb/iZIe+S6AiG29Esm+/eUacSba0k8wn5HhHg9d4tIcixrxveflc8vi2/wNQGVFNsGO6tB5WF0xf/plngOvQ1/ivGV/C1Qpdhzznh0ExAVJ6dwzNg7qIEBaw+BzTJTUuRcPk92Sn6QDn2Pu3mpONaEumacjW4w6ipPnPw+g2TfywJjeEcpSZaP4Q3YV5HG8D6UjWA4GSkBKculWpdCMadx0usMomsSS/74QgpYqcPkmamB4nVv1JxczYITIqItIKjD35IGKAUwAA=="); - originalUrl = originalUrl + "&fun=new&version=v2&mod=desktop&lang=zh_CN"; - HttpEntity entity = core.getMyHttpClient().doGet(originalUrl, null, false, header); - text = EntityUtils.toString(entity); - } catch (Exception e) { - LOG.info(e.getMessage()); - return false; - } - //add by 默非默 2017-08-01 22:28:09 - //如果登录被禁止时,则登录返回的message内容不为空,下面代码则判断登录内容是否为空,不为空则退出程序 - String msg = getLoginMessage(text); - if (!"".equals(msg)) { - LOG.info(msg); -// System.exit(0); - return false; - } - Document doc = CommonTools.xmlParser(text); - if (doc != null) { - core.getLoginInfo().put(StorageLoginInfoEnum.skey.getKey(), - doc.getElementsByTagName(StorageLoginInfoEnum.skey.getKey()).item(0).getFirstChild() - .getNodeValue()); - core.getLoginInfo().put(StorageLoginInfoEnum.wxsid.getKey(), - doc.getElementsByTagName(StorageLoginInfoEnum.wxsid.getKey()).item(0).getFirstChild() - .getNodeValue()); - core.getLoginInfo().put(StorageLoginInfoEnum.wxuin.getKey(), - doc.getElementsByTagName(StorageLoginInfoEnum.wxuin.getKey()).item(0).getFirstChild() - .getNodeValue()); - core.getLoginInfo().put(StorageLoginInfoEnum.pass_ticket.getKey(), - doc.getElementsByTagName(StorageLoginInfoEnum.pass_ticket.getKey()).item(0).getFirstChild() - .getNodeValue()); - } - - } - return true; - } - - private Map> getPossibleUrlMap() { - Map> possibleUrlMap = new HashMap>(); - possibleUrlMap.put("wx.qq.com", new ArrayList() { - /** - * - */ - private static final long serialVersionUID = 1L; - - { - add("file.wx.qq.com"); - add("webpush.wx.qq.com"); - } - }); - - possibleUrlMap.put("wx2.qq.com", new ArrayList() { - /** - * - */ - private static final long serialVersionUID = 1L; - - { - add("file.wx2.qq.com"); - add("webpush.wx2.qq.com"); - } - }); - possibleUrlMap.put("wx8.qq.com", new ArrayList() { - /** - * - */ - private static final long serialVersionUID = 1L; - - { - add("file.wx8.qq.com"); - add("webpush.wx8.qq.com"); - } - }); - - possibleUrlMap.put("web2.wechat.com", new ArrayList() { - /** - * - */ - private static final long serialVersionUID = 1L; - - { - add("file.web2.wechat.com"); - add("webpush.web2.wechat.com"); - } - }); - possibleUrlMap.put("wechat.com", new ArrayList() { - /** - * - */ - private static final long serialVersionUID = 1L; - - { - add("file.web.wechat.com"); - add("webpush.web.wechat.com"); - } - }); - return possibleUrlMap; - } - - /** - * 同步消息 sync the messages - * - * @return - * @author https://github.com/yaphone - * @date 2017年5月12日 上午12:24:55 - */ - private JSONObject webWxSync() { - JSONObject result = null; - String url = String.format(URLEnum.WEB_WX_SYNC_URL.getUrl(), - core.getLoginInfo().get(StorageLoginInfoEnum.url.getKey()), - core.getLoginInfo().get(StorageLoginInfoEnum.wxsid.getKey()), - core.getLoginInfo().get(StorageLoginInfoEnum.skey.getKey()), - core.getLoginInfo().get(StorageLoginInfoEnum.pass_ticket.getKey())); - Map paramMap = core.getParamMap(); - paramMap.put(StorageLoginInfoEnum.SyncKey.getKey(), - core.getLoginInfo().get(StorageLoginInfoEnum.SyncKey.getKey())); - paramMap.put("rr", -System.currentTimeMillis() / 1000); - String paramStr = JSON.toJSONString(paramMap); - try { - HttpEntity entity = core.getMyHttpClient().doPost(url, paramStr, getPersistentCookieMap()); - String text = EntityUtils.toString(entity, Consts.UTF_8); - JSONObject obj = JSON.parseObject(text); - if (obj.getJSONObject("BaseResponse").getInteger("Ret") != 0) { - result = null; - } else { - result = obj; - core.getLoginInfo().put(StorageLoginInfoEnum.SyncKey.getKey(), obj.getJSONObject("SyncCheckKey")); - JSONArray syncArray = obj.getJSONObject(StorageLoginInfoEnum.SyncKey.getKey()).getJSONArray("List"); - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < syncArray.size(); i++) { - sb.append(syncArray.getJSONObject(i).getString("Key") + "_" - + syncArray.getJSONObject(i).getString("Val") + "|"); - } - String synckey = sb.toString(); - /** - * 随着每次获取最新消息(参见9)后的返回值更新,其目的在于每次同步消息后记录一个当前同步的状态 - */ - core.getLoginInfo().put(StorageLoginInfoEnum.synckey.getKey(), - synckey.substring(0, synckey.length() - 1));// 1_656161336|2_656161626|3_656161313|11_656159955|13_656120033|201_1492273724|1000_1492265953|1001_1492250432|1004_1491805192 - } - } catch (Exception e) { - LOG.info(e.getMessage()); - } - return result; - - } - - /** - * 检查是否有新消息 check whether there's a message - * - * @return - * @author https://github.com/yaphone - * @date 2017年4月16日 上午11:11:34 - */ - private Map syncCheck() { - Map resultMap = new HashMap(); - // 组装请求URL和参数 - String url = core.getLoginInfo().get(StorageLoginInfoEnum.syncUrl.getKey()) + URLEnum.SYNC_CHECK_URL.getUrl(); - List params = new ArrayList(); - for (BaseParaEnum baseRequest : BaseParaEnum.values()) { - params.add(new BasicNameValuePair(baseRequest.para().toLowerCase(), - core.getLoginInfo().get(baseRequest.value()).toString())); - } - params.add(new BasicNameValuePair("r", String.valueOf(System.currentTimeMillis()))); - params.add(new BasicNameValuePair("synckey", (String) core.getLoginInfo().get("synckey"))); - params.add(new BasicNameValuePair("_", String.valueOf(System.currentTimeMillis()))); - try { - HttpEntity entity = core.getMyHttpClient().doGet(url, params, true, getPersistentCookieMap()); - if (entity == null) { - resultMap.put("retcode", "9999"); - resultMap.put("selector", "9999"); - return resultMap; - } - String text = EntityUtils.toString(entity); - String regEx = "window.synccheck=\\{retcode:\"(\\d+)\",selector:\"(\\d+)\"\\}"; - Matcher matcher = CommonTools.getMatcher(regEx, text); - if (!matcher.find() || matcher.group(1).equals("2")) { - LOG.info(String.format("Unexpected sync check result: %s", text)); - } else { - resultMap.put("retcode", matcher.group(1)); - resultMap.put("selector", matcher.group(2)); - } - } catch (Exception e) { - e.printStackTrace(); - } - return resultMap; - } - - private Map getPersistentCookieMap() { - /** - * 以下部分确保cookie存在header中,重启时需要强制手动添加, - * TODO 不强制加重启会cookie失效,还不确定问题 - */ - String cookieStr = null; - if (core != null && core.getMyHttpClient() != null && core.getMyHttpClient().getCookieStore() != null) { - List cookies = core.getMyHttpClient().getCookieStore().getCookies(); - StringBuilder sb = new StringBuilder(); - if (CollectionUtil.isNotEmpty(cookies)) { - for (Cookie ck : cookies) { - sb.append(ck.getName()).append('=').append(ck.getValue()).append(';'); - } - cookieStr = sb.toString().substring(0, sb.toString().length() - 1); - } - - } - Map headerMap = null; - if (cookieStr != null) { - headerMap = new HashMap<>(6); - headerMap.put("Cookie", cookieStr); - } - /* ^-----------------------------------------------^ */ - return headerMap; - } - - /** - * 解析登录返回的消息,如果成功登录,则message为空 - * - * @param result - * @return - */ - public String getLoginMessage(String result) { - String[] strArr = result.split(""); - String[] rs = strArr[1].split(""); - if (rs != null && rs.length > 1) { - return rs[0]; - } - return ""; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/Config.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/Config.java deleted file mode 100644 index af88ac30..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/Config.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils; - -import org.ruoyi.common.wechat.itchat4j.utils.enums.OsNameEnum; - -import java.io.File; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; - -/** - * 配置信息 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月23日 下午2:26:21 - * @version 1.0 - * - */ -public class Config { - - public static final String API_WXAPPID = "API_WXAPPID"; - - public static final String picDir = "D://org.ruoyi.common.wechat"; - public static final String VERSION = "1.2.18"; - public static final String BASE_URL = "https://login.weixin.qq.com"; - public static final String OS = ""; - public static final String DIR = ""; - public static final String DEFAULT_QR = "QR.jpg"; - public static final String USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"; - - /** - * 仅仅用于参考 - */ - @Deprecated - public static final ArrayList API_SPECIAL_USER = new ArrayList(Arrays.asList("filehelper", "weibo", - "qqmail", "fmessage", "tmessage", "qmessage", "qqsync", "floatbottle", "lbsapp", "shakeapp", "medianote", - "qqfriend", "readerapp", "blogapp", "facebookapp", "masssendapp", "meishiapp", "feedsapp", "voip", - "blogappweixin", "brandsessionholder", "weixin", "weixinreminder", "officialaccounts", "wxitil", - "notification_messages", "wxid_novlwrv3lqwv11", "gh_22b87fa7cb3c", "userexperience_alarm")); - - /** - * 获取文件目录 - * - * @author https://github.com/yaphone - * @date 2017年4月8日 下午10:27:42 - * @return - */ - public static String getLocalPath() { - String localPath = null; - try { - localPath = new File("").getCanonicalPath(); - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - return localPath; - } - - /** - * 获取系统平台 - * - * @author https://github.com/yaphone - * @date 2017年4月8日 下午10:27:53 - */ - public static OsNameEnum getOsNameEnum() { - String os = System.getProperty("os.name").toUpperCase(); - if (os.indexOf(OsNameEnum.DARWIN.toString()) >= 0) { - return OsNameEnum.DARWIN; - } else if (os.indexOf(OsNameEnum.WINDOWS.toString()) >= 0) { - return OsNameEnum.WINDOWS; - } else if (os.indexOf(OsNameEnum.LINUX.toString()) >= 0) { - return OsNameEnum.LINUX; - } else if (os.indexOf(OsNameEnum.MAC.toString()) >= 0) { - return OsNameEnum.MAC; - } - return OsNameEnum.OTHER; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/ConstantConfigEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/ConstantConfigEnum.java deleted file mode 100644 index 95bd1166..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/ConstantConfigEnum.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils; - -/** - * 常量 - * - * @author https=//github.com/yaphone - * @date 创建时间:2017年5月5日 下午11=29=04 - * @version 1.0 - * - */ -public class ConstantConfigEnum { - public static final int APPMSGTYPE_TEXT = 1; - public static final int APPMSGTYPE_IMG = 2; - public static final int APPMSGTYPE_AUDIO = 3; - public static final int APPMSGTYPE_VIDEO = 4; - public static final int APPMSGTYPE_URL = 5; - public static final int APPMSGTYPE_ATTACH = 6; - public static final int APPMSGTYPE_OPEN = 7; - public static final int APPMSGTYPE_EMOJI = 8; - public static final int APPMSGTYPE_VOICE_REMIND = 9; - public static final int APPMSGTYPE_SCAN_GOOD = 10; - public static final int APPMSGTYPE_GOOD = 13; - public static final int APPMSGTYPE_EMOTION = 15; - public static final int APPMSGTYPE_CARD_TICKET = 16; - public static final int APPMSGTYPE_REALTIME_SHARE_LOCATION = 17; - // public static final int APPMSGTYPE_TRANSFERS = 2e3; - public static final int APPMSGTYPE_RED_ENVELOPES = 2001; - public static final int APPMSGTYPE_READER_TYPE = 100001; - public static final int UPLOAD_MEDIA_TYPE_IMAGE = 1; - public static final int UPLOAD_MEDIA_TYPE_VIDEO = 2; - public static final int UPLOAD_MEDIA_TYPE_AUDIO = 3; - public static final int UPLOAD_MEDIA_TYPE_ATTACHMENT = 4; - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/LogInterface.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/LogInterface.java deleted file mode 100644 index 176c2793..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/LogInterface.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * 公共日志接口 - * @author WesleyOne - * @create 2018/12/12 - */ -public interface LogInterface { - public final Logger LOG = LoggerFactory.getLogger("WXROBLOG"); -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/MoreConfig.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/MoreConfig.java deleted file mode 100644 index 88d125cb..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/MoreConfig.java +++ /dev/null @@ -1,12 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils; - -/** - * @author WesleyOne - * @create 2018/12/19 - */ -public class MoreConfig { - - //存储群聊成员ID的键标识 - public static final String SEND_MEMBER_ID = "sendMemberId"; - public static final String SEND_MEMBER_NICKNAMW = "memberNickname"; -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/SleepUtils.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/SleepUtils.java deleted file mode 100644 index bff19010..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/SleepUtils.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils; - -/** - * Created by xiaoxiaomo on 2017/5/6. - */ -public class SleepUtils { - - /** - * 毫秒为单位 - * @param time - */ - public static void sleep( long time ){ - try { - Thread.sleep( time ); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/MsgCodeEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/MsgCodeEnum.java deleted file mode 100644 index b8a5f239..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/MsgCodeEnum.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Map; - -/** - * 消息类型 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月23日 下午12:15:00 - * @version 1.0 - * - */ -public enum MsgCodeEnum { - - MSGTYPE_TEXT(1, "文本消息"), - MSGTYPE_IMAGE(3, "图片消息"), - MSGTYPE_VOICE(34, "语音消息"), - MSGTYPE_VERIFYMSG(37, "好友请求"), - MSGTYPE_POSSIBLEFRIEND_MSG(40, "POSSIBLEFRIEND_MSG"), - MSGTYPE_SHARECARD(42, "分享名片"), - MSGTYPE_VIDEO(43, "视频消息"), - MSGTYPE_EMOTICON(47, "表情消息"), - MSGTYPE_LOCATION(48, "位置消息"), - MSGTYPE_MEDIA(49, "分享链接"), - MSGTYPE_VOIPMSG(50, "VOIPMSG"), - MSGTYPE_STATUSNOTIFY(51, "状态通知"), - MSGTYPE_VOIPNOTIFY(52, "VOIPNOTIFY"), - MSGTYPE_VOIPINVITE(53, "VOIPINVITE"), - MSGTYPE_MICROVIDEO(62, "短视频消息"), - MSGTYPE_SYSNOTICE(9999, "SYSNOTICE"), - MSGTYPE_SYS(10000, "系统消息"), - MSGTYPE_RECALLED(10002, "撤回消息") - - ; - - private static final Map lookup = new HashMap<>(); - static { - for (MsgCodeEnum s : EnumSet.allOf(MsgCodeEnum.class)){ - lookup.put(s.getCode(), s); - } - } - public static MsgCodeEnum fromCode(int code) { - return lookup.get(code); - } - - private int code; - private String type; - - MsgCodeEnum(int code, String type) { - this.code = code; - this.type = type; - } - - public int getCode() { - return code; - } - - public String getType() { - return type; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/MsgTypeEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/MsgTypeEnum.java deleted file mode 100644 index 66c0907a..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/MsgTypeEnum.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - - -/** - * 消息类型枚举类 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年5月13日 下午11:53:00 - * @version 1.0 - * - */ -public enum MsgTypeEnum { - TEXT("Text", "文本消息"), - MAP("MAP", "地理位置"), - PIC("Pic", "图片消息"), - VOICE("Voice", "语音消息"), - VIEDO("Viedo", "小视频消息"), - NAMECARD("NameCard", "名片消息"), - SYS("Sys", "系统消息"), - VERIFYMSG("VerifyMsg", "添加好友"), - - // 地址分享 - MEDIA("app", "文件消息"); - - private String type; - private String code; - - MsgTypeEnum(String type, String code) { - this.type = type; - this.code = code; - } - - public String getType() { - return type; - } - - public String getCode() { - return code; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/OsNameEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/OsNameEnum.java deleted file mode 100644 index 0272d76e..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/OsNameEnum.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -/** - * 系统平台 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月8日 下午10:36:28 - * @version 1.0 - * - */ -public enum OsNameEnum { - WINDOWS, LINUX, DARWIN, MAC, OTHER -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/ResultEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/ResultEnum.java deleted file mode 100644 index 8c4cdaa3..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/ResultEnum.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -import lombok.Getter; - -/** - * 返回结构枚举类 - *

- * Created by xiaoxiaomo on 2017/5/6. - */ -@Getter -public enum ResultEnum { - - SUCCESS("200", "成功"), - WAIT_CONFIRM("201", "请在手机上点击确认"), - WAIT_SCAN("400", "请扫描二维码"); - - - private final String code; - private final String msg; - - ResultEnum(String code, String msg) { - this.code = code; - this.msg = msg; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/RetCodeEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/RetCodeEnum.java deleted file mode 100644 index e4628f2e..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/RetCodeEnum.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Map; - - -public enum RetCodeEnum { - - UNKOWN("9999", "未知"), - SUCCESS("0", "成功"), - TICKET_ERROR("-14", "ticket错误"), - PARAM_ERROR("1", "传入参数错误"), - NOT_LOGIN_WARN("1100", "未登录提示"), - NOT_LOGIN_CHECK("1101", "未检测到登录"), - COOKIE_INVALID_ERROR("1102", "cookie值无效"), - LOGIN_ENV_ERROR("1203", "当前登录环境异常,为了安全起见请不要在web端进行登录"), - TOO_OFEN("1205", "操作频繁") - ; - - private static final Map lookup = new HashMap(); - static { - for (RetCodeEnum s : EnumSet.allOf(RetCodeEnum.class)){ - lookup.put(s.getCode(), s); - } - } - public static RetCodeEnum fromCode(String code) { - return lookup.get(code); - } - - private String code; - private String type; - - RetCodeEnum(String code, String type) { - this.code = code; - this.type = type; - } - - public String getCode() { - return code; - } - - public String getType() { - return type; - } - - - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/SelectorEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/SelectorEnum.java deleted file mode 100644 index 99b3048d..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/SelectorEnum.java +++ /dev/null @@ -1,48 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - - -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Map; - -/** - * @author WesleyOne - * @create 2018/12/21 - */ -public enum SelectorEnum { - - - UNKOWN("9999", "未知"), - NORMAL("0", "正常"), - NEW_MSG("2", "有新消息"), - SELECTOR_3("3", "访问频繁#"), - MOD_CONTACT("4", "有人修改了自己的昵称或你修改了别人的备注"), - ADD_OR_DEL_CONTACT("6", "存在删除或者新增的好友信息"), - ENTER_OR_LEAVE_CHAT("7", "进入或离开聊天界面"); - - private static final Map lookup = new HashMap<>(); - static { - for (SelectorEnum s : EnumSet.allOf(SelectorEnum.class)) { - lookup.put(s.getCode(), s); - } - } - public static SelectorEnum fromCode(String code) { - return lookup.get(code); - } - - private String code; - private String type; - - SelectorEnum(String code, String type) { - this.code = code; - this.type = type; - } - - public String getCode() { - return code; - } - - public String getType() { - return type; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/SendMsgType.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/SendMsgType.java deleted file mode 100644 index 4a424365..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/SendMsgType.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -import com.jfinal.plugin.activerecord.Record; - -import java.util.*; -/** - * 发送类型 - * @author WesleyOne - * @create 2018/12/14 - */ -public enum SendMsgType { - - IMG("IMG","图片"), - FILE("FILE","文件"), - TEXT("TEXT","纯文本") - ; - - private String value; - private String name; - - SendMsgType(String value, String name) { - this.value = value; - this.name = name; - } - - - private static final Map lookup = new HashMap<>(); - public static List LIST_KV = new ArrayList<>(); - static { - for (SendMsgType s : EnumSet.allOf(SendMsgType.class)){ - lookup.put(s.toValue(), s); - LIST_KV.add(new Record().set("v",s.toValue()).set("n",s.toName())); - } - } - - - /** - * 获取枚举的值(整数值、字符串值等) - * @return - */ - public String toValue() { - return this.value; - } - - public String toName() { - return this.name; - } - - - /** - * 根据值(整数值、字符串值等)获取相应的枚举类型 - * @param value - * @return - */ - public static SendMsgType fromValue(String value) { - return lookup.get(value); - } - - public boolean equal(SendMsgType type){ - if (type != null && this.toValue().equals(type.toValue())){ - return true; - } - return false; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/StorageLoginInfoEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/StorageLoginInfoEnum.java deleted file mode 100644 index a9722ee0..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/StorageLoginInfoEnum.java +++ /dev/null @@ -1,57 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; - -/** - * Created by xiaoxiaomo on 2017/5/7. - */ -public enum StorageLoginInfoEnum { - - //URL - url("url",new String()), - fileUrl("fileUrl",new String()), - syncUrl("syncUrl",new String()), - //生成15位随机数 - deviceid("deviceid",new String()), - - //baseRequest - skey("skey",new String()), - wxsid("wxsid",new String()), - wxuin("wxuin",new String()), - pass_ticket("pass_ticket",new String()), - - - InviteStartCount("InviteStartCount",new Integer(0)), - // 登录用户登录时信息 - User("User",new JSONObject()), - SyncKey("SyncKey",new JSONObject()), - synckey("synckey",new String()), - - - - MemberCount("MemberCount",new String()), - MemberList("MemberList",new JSONArray()), - - - - ; - - private String key; - private Object type; - - StorageLoginInfoEnum(String key, Object type) { - this.key = key; - this.type = type; - } - - public String getKey() { - return key; - } - - - public Object getType() { - return type; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/URLEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/URLEnum.java deleted file mode 100644 index 2f713c12..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/URLEnum.java +++ /dev/null @@ -1,49 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -/** - * URL - * Created by xiaoxiaomo on 2017/5/6. - */ -public enum URLEnum { - - - - BASE_URL("https://login.weixin.qq.com","基本的URL"), - UUID_URL(BASE_URL.url+"/jslogin","UUIDLURL"), - QRCODE_URL(BASE_URL.url+"/qrcode/","初始化URL"), - STATUS_NOTIFY_URL(BASE_URL.url+"/webwxstatusnotify?lang=zh_CN&pass_ticket=%s","微信状态通知"), - LOGIN_URL(BASE_URL.url+"/cgi-bin/mmwebwx-bin/login","登陆URL"), - INIT_URL("%s/webwxinit?r=%s&pass_ticket=%s","初始化URL"), - SYNC_CHECK_URL("/synccheck","检查心跳URL"), - WEB_WX_SYNC_URL("%s/webwxsync?sid=%s&skey=%s&pass_ticket=%s&lang=zh_CN","web微信消息同步URL"), - WEB_WX_GET_CONTACT("%s/webwxgetcontact","web微信获取联系人信息URL"), - WEB_WX_SEND_MSG("%s/webwxsendmsg","发送消息URL"), - WEB_WX_UPLOAD_MEDIA("%s/webwxuploadmedia?f=json", "上传文件到服务器"), - WEB_WX_GET_MSG_IMG("%s/webwxgetmsgimg", "下载图片消息"), - WEB_WX_GET_VOICE("%s/webwxgetvoice", "下载语音消息"), - WEB_WX_GET_VIEDO("%s/webwxgetvideo", "下载语音消息"), - WEB_WX_PUSH_LOGIN("%s/webwxpushloginurl", "不扫码登陆"), - WEB_WX_LOGOUT("%s/webwxlogout", "退出微信"), - WEB_WX_BATCH_GET_CONTACT("%s/webwxbatchgetcontact?type=ex&r=%s&lang=zh_CN&pass_ticket=%s", "查询群信息"), - WEB_WX_REMARKNAME("%s/webwxoplog?lang=zh_CN&pass_ticket=%s", "修改好友备注"), - WEB_WX_VERIFYUSER("%s/webwxverifyuser?r=%s&lang=zh_CN&pass_ticket=%s", "被动添加好友"), - WEB_WX_GET_MEDIA("%s/webwxgetmedia", "下载文件") - - - - - ; - - private String url; - private String msg; - - URLEnum(String url, String msg) { - this.url = url; - this.msg = msg; - } - - - public String getUrl() { - return url; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/VerifyFriendEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/VerifyFriendEnum.java deleted file mode 100644 index 8ff1ea1b..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/VerifyFriendEnum.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums; - -/** - * 确认添加好友Enum - * - * @author https://github.com/yaphone - * @date 创建时间:2017年6月29日 下午9:47:14 - * @version 1.0 - * - */ -public enum VerifyFriendEnum { - - ADD(2, "添加"), - ACCEPT(3, "接受"); - - private int code; - private String desc; - - private VerifyFriendEnum(int code, String desc) { - this.code = code; - this.desc = desc; - } - - public int getCode() { - return code; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/BaseParaEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/BaseParaEnum.java deleted file mode 100644 index 7631ff37..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/BaseParaEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums.parameters; - -/** - * - * 基本请求参数 - * 1. webWxInit 初始化 - * 2. wxStatusNotify 微信状态通知 - * - *

- * Created by xiaoxiaomo on 2017/5/7. - */ -public enum BaseParaEnum { - - Uin("Uin", "wxuin"), - Sid("Sid", "wxsid"), - Skey("Skey", "skey"), - DeviceID("DeviceID", "pass_ticket"); - - private String para; - private String value; - - BaseParaEnum(String para, String value) { - this.para = para; - this.value = value; - } - - public String para() { - return para; - } - - - public Object value() { - return value; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/LoginParaEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/LoginParaEnum.java deleted file mode 100644 index 507c87ef..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/LoginParaEnum.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums.parameters; - -/** - * 登陆 - *

- * Created by xiaoxiaomo on 2017/5/7. - */ -public enum LoginParaEnum { - - LOGIN_ICON("loginicon", "true"), - UUID("uuid", ""), - TIP("tip", "0"), - R("r", ""), - _1("_", ""); - - private String para; - private String value; - - LoginParaEnum(String para, String value) { - this.para = para; - this.value = value; - } - - public String para() { - return para; - } - - public String value() { - return value; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/StatusNotifyParaEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/StatusNotifyParaEnum.java deleted file mode 100644 index 6e105e63..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/StatusNotifyParaEnum.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums.parameters; - -/** - * 状态通知 - *

- * Created by xiaoxiaomo on 2017/5/7. - */ -public enum StatusNotifyParaEnum { - - CODE("Code", "3"), - FROM_USERNAME("FromUserName", ""), - TO_USERNAME("ToUserName", ""), - //时间戳 - CLIENT_MSG_ID("ClientMsgId", ""); - - private String para; - private String value; - - StatusNotifyParaEnum(String para, String value) { - this.para = para; - this.value = value; - } - - public String para() { - return para; - } - - public String value() { - return value; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/UUIDParaEnum.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/UUIDParaEnum.java deleted file mode 100644 index 5d002587..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/enums/parameters/UUIDParaEnum.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.enums.parameters; - -/** - * UUID - *

- * Created by xiaoxiaomo on 2017/5/7. - */ -public enum UUIDParaEnum { - - APP_ID("appid", "wx782c26e4c19acffb"), - FUN("fun", "new"), - LANG("lang", "zh_CN"), - _1("_", "时间戳"); - - private String para; - private String value; - - UUIDParaEnum(String para, String value) { - this.para = para; - this.value = value; - } - - public String para() { - return para; - } - - public String value() { - return value; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/tools/CommonTools.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/tools/CommonTools.java deleted file mode 100644 index 17b2aff8..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/tools/CommonTools.java +++ /dev/null @@ -1,301 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.tools; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.vdurmont.emoji.EmojiParser; -import org.ruoyi.common.wechat.itchat4j.utils.Config; -import org.ruoyi.common.wechat.itchat4j.utils.enums.OsNameEnum; -import org.w3c.dom.Document; -import org.xml.sax.InputSource; - -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import java.io.StringReader; -import java.util.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * 常用工具类 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月8日 下午10:59:55 - * @version 1.0 - * - */ -public class CommonTools { - - public static boolean printQr(String qrPath) { - - switch (Config.getOsNameEnum()) { - case WINDOWS: - if (Config.getOsNameEnum().equals(OsNameEnum.WINDOWS)) { - Runtime runtime = Runtime.getRuntime(); - try { - runtime.exec("cmd /c start " + qrPath); - } catch (Exception e) { - e.printStackTrace(); - } - } - break; - case MAC: - if (Config.getOsNameEnum().equals(OsNameEnum.MAC)) { - Runtime runtime = Runtime.getRuntime(); - try { - runtime.exec("open " + qrPath); - } catch (Exception e) { - e.printStackTrace(); - } - } - break; - - default: - break; - } - return true; - } - - public static boolean clearScreen() { - switch (Config.getOsNameEnum()) { - case WINDOWS: - if (Config.getOsNameEnum().equals(OsNameEnum.WINDOWS)) { - Runtime runtime = Runtime.getRuntime(); - try { - runtime.exec("cmd /c " + "cls"); - } catch (Exception e) { - e.printStackTrace(); - } - } - break; - - default: - break; - } - return true; - } - - /** - * 正则表达式处理工具 - * - * @author https://github.com/yaphone - * @date 2017年4月9日 上午12:27:10 - * @return - */ - public static Matcher getMatcher(String regEx, String text) { - Pattern pattern = Pattern.compile(regEx); - Matcher matcher = pattern.matcher(text); - return matcher; - } - - /** - * xml解析器 - * - * @author https://github.com/yaphone - * @date 2017年4月9日 下午6:24:25 - * @param text - * @return - */ - public static Document xmlParser(String text) { - Document doc = null; - StringReader sr = new StringReader(text); - InputSource is = new InputSource(sr); - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - try { - DocumentBuilder builder = factory.newDocumentBuilder(); - doc = builder.parse(is); - } catch (Exception e) { - e.printStackTrace(); - } - return doc; - } - - public static JSONObject structFriendInfo(JSONObject userObj) { - Map friendInfoTemplate = new HashMap(); - friendInfoTemplate.put("UserName", ""); - friendInfoTemplate.put("City", ""); - friendInfoTemplate.put("DisplayName", ""); - friendInfoTemplate.put("PYQuanPin", ""); - friendInfoTemplate.put("RemarkPYInitial", ""); - friendInfoTemplate.put("Province", ""); - friendInfoTemplate.put("KeyWord", ""); - friendInfoTemplate.put("RemarkName", ""); - friendInfoTemplate.put("PYInitial", ""); - friendInfoTemplate.put("EncryChatRoomId", ""); - friendInfoTemplate.put("Alias", ""); - friendInfoTemplate.put("Signature", ""); - friendInfoTemplate.put("NickName", ""); - friendInfoTemplate.put("RemarkPYQuanPin", ""); - friendInfoTemplate.put("HeadImgUrl", ""); - - friendInfoTemplate.put("UniFriend", 0); - friendInfoTemplate.put("Sex", 0); - friendInfoTemplate.put("AppAccountFlag", 0); - friendInfoTemplate.put("VerifyFlag", 0); - friendInfoTemplate.put("ChatRoomId", 0); - friendInfoTemplate.put("HideInputBarFlag", 0); - friendInfoTemplate.put("AttrStatus", 0); - friendInfoTemplate.put("SnsFlag", 0); - friendInfoTemplate.put("MemberCount", 0); - friendInfoTemplate.put("OwnerUin", 0); - friendInfoTemplate.put("ContactFlag", 0); - friendInfoTemplate.put("Uin", 0); - friendInfoTemplate.put("StarFriend", 0); - friendInfoTemplate.put("Statues", 0); - - friendInfoTemplate.put("MemberList", new ArrayList()); - - JSONObject r = new JSONObject(); - Set keySet = friendInfoTemplate.keySet(); - for (String key : keySet) { - if (userObj.containsKey(key)) { - r.put(key, userObj.get(key)); - } else { - r.put(key, friendInfoTemplate.get(key)); - } - } - - return r; - } - - public static String getSynckey(JSONObject obj) { - JSONArray obj2 = obj.getJSONArray("List"); - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < obj2.size(); i++) { - JSONObject obj3 = (JSONObject) JSON.toJSON(obj2.get(i)); - sb.append(obj3.get("Val") + "|"); - } - return sb.substring(0, sb.length() - 1); // 656159784|656159911|656159873|1491905341 - - } - - public static JSONObject searchDictList(List list, String key, String value) { - JSONObject r = null; - for (JSONObject i : list) { - if (i.getString(key).equals(value)) { - r = i; - break; - } - } - return r; - } - - /** - * 处理emoji表情 - * - * @author https://github.com/yaphone - * @date 2017年4月23日 下午2:39:04 - * @param d - * @param k - */ - public static void emojiFormatter(JSONObject d, String k) { -// Matcher matcher = getMatcher("", d.getString(k)); - Matcher matcher = getMatcher("", d.getString(k)); - StringBuilder sb = new StringBuilder(); - String content = d.getString(k); - int lastStart = 0; - while (matcher.find()) { - String str = matcher.group(1); - if (str.length() == 6) { - - } else if (str.length() == 10) { - - } else { - str = "&#x" + str + ";"; - String tmp = content.substring(lastStart, matcher.start()); - sb.append(tmp + str); - lastStart = matcher.end(); - } - } - if (lastStart < content.length()) { - sb.append(content.substring(lastStart)); - } - if (sb.length() != 0) { - d.put(k, EmojiParser.parseToUnicode(sb.toString())); - } else { - d.put(k, content); - } - - } - - /** - * 转化成alias - * @param d - * @param k - */ - public static void emojiFormatter2(JSONObject d, String k) { - Matcher matcher = getMatcher("", d.getString(k)); - StringBuilder sb = new StringBuilder(); - String content = d.getString(k); - int lastStart = 0; - while (matcher.find()) { - String str = matcher.group(1); - if (str.length() == 6) { - - } else if (str.length() == 10) { - - } else { - str = "&#x" + str + ";"; - String tmp = content.substring(lastStart, matcher.start()); - sb.append(tmp + str); - lastStart = matcher.end(); - } - } - if (lastStart < content.length()) { - sb.append(content.substring(lastStart)); - } - if (sb.length() != 0) { - d.put(k, EmojiParser.parseToAliases(EmojiParser.parseToUnicode(sb.toString()))); - } else { - d.put(k, content); - } - - } - - /** - * 消息格式化 - * - * @author https://github.com/yaphone - * @date 2017年4月23日 下午4:19:08 - * @param d - * @param k - */ - public static void msgFormatter(JSONObject d, String k) { - d.put(k, d.getString(k).replace("
", "\n")); - emojiFormatter(d, k); - // TODO 与emoji表情有部分兼容问题,目前暂未处理解码处理 d.put(k, - // StringEscapeUtils.unescapeHtml4(d.getString(k))); - - } - - public static void main(String[] args) { - String str2 = "三生三世十三水"; - - Matcher matcher = getMatcher("", str2); - StringBuilder sb = new StringBuilder(); - String content = str2; - int lastStart = 0; - while (matcher.find()) { - String str = matcher.group(1); - if (str.length() == 6) { - - } else if (str.length() == 10) { - - } else { - str = "&#x" + str + ";"; - String tmp = content.substring(lastStart, matcher.start()); - sb.append(tmp + str); - lastStart = matcher.end(); - } - } - if (lastStart < content.length()) { - sb.append(content.substring(lastStart)); - } - if (sb.length() != 0) { - System.out.println(EmojiParser.parseToUnicode(sb.toString())); - System.out.println(EmojiParser.parseToAliases(EmojiParser.parseToUnicode(sb.toString()))); - System.out.println(EmojiParser.removeAllEmojis(sb.toString())); - } - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/tools/DownloadTools.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/tools/DownloadTools.java deleted file mode 100644 index 3b1f3600..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/itchat4j/utils/tools/DownloadTools.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.ruoyi.common.wechat.itchat4j.utils.tools; - -import org.apache.http.HttpEntity; -import org.apache.http.message.BasicNameValuePair; -import org.apache.http.util.EntityUtils; -import org.ruoyi.common.wechat.itchat4j.beans.BaseMsg; -import org.ruoyi.common.wechat.itchat4j.core.Core; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.utils.LogInterface; -import org.ruoyi.common.wechat.itchat4j.utils.enums.MsgTypeEnum; -import org.ruoyi.common.wechat.itchat4j.utils.enums.URLEnum; - -import java.io.FileOutputStream; -import java.io.OutputStream; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.logging.Logger; - -/** - * 下载工具类 - * - * @author https://github.com/yaphone - * @date 创建时间:2017年4月21日 下午11:18:46 - * @version 1.0 - * - */ -public class DownloadTools implements LogInterface { - private static Logger logger = Logger.getLogger("UTILLOG"); - - /** - * 处理下载任务 - * - * @author https://github.com/yaphone - * @date 2017年4月21日 下午11:00:25 - * @param msg - * @param type - * @param path - * @return - */ - public static Object getDownloadFn(BaseMsg msg, String type, String path, String uniqueKey) { - Core core = CoreManage.getInstance(uniqueKey); - Map headerMap = new HashMap(); - List params = new ArrayList(); - String url = ""; - if (type.equals(MsgTypeEnum.PIC.getType())) { - url = String.format(URLEnum.WEB_WX_GET_MSG_IMG.getUrl(), (String) core.getLoginInfo().get("url")); - } else if (type.equals(MsgTypeEnum.VOICE.getType())) { - url = String.format(URLEnum.WEB_WX_GET_VOICE.getUrl(), (String) core.getLoginInfo().get("url")); - } else if (type.equals(MsgTypeEnum.VIEDO.getType())) { - headerMap.put("Range", "bytes=0-"); - url = String.format(URLEnum.WEB_WX_GET_VIEDO.getUrl(), (String) core.getLoginInfo().get("url")); - } else if (type.equals(MsgTypeEnum.MEDIA.getType())) { - headerMap.put("Range", "bytes=0-"); - url = String.format(URLEnum.WEB_WX_GET_MEDIA.getUrl(), (String) core.getLoginInfo().get("fileUrl")); - params.add(new BasicNameValuePair("sender", msg.getFromUserName())); - params.add(new BasicNameValuePair("mediaid", msg.getMediaId())); - params.add(new BasicNameValuePair("filename", msg.getFileName())); - } - params.add(new BasicNameValuePair("msgid", msg.getNewMsgId())); - params.add(new BasicNameValuePair("skey", (String) core.getLoginInfo().get("skey"))); - HttpEntity entity = core.getMyHttpClient().doGet(url, params, true, headerMap); - try { - OutputStream out = new FileOutputStream(path); - byte[] bytes = EntityUtils.toByteArray(entity); - out.write(bytes); - out.flush(); - out.close(); - } catch (Exception e) { - logger.info(e.getMessage()); - return false; - } - return null; - }; - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/annotation/UnCheckLogin.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/annotation/UnCheckLogin.java deleted file mode 100644 index 22ec06c4..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/annotation/UnCheckLogin.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.ruoyi.common.wechat.web.annotation; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - -/** - * 不检查登录 - */ -@Retention(RetentionPolicy.RUNTIME) -public @interface UnCheckLogin { -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseError.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseError.java deleted file mode 100644 index 41c263cb..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseError.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.ruoyi.common.wechat.web.base; - -import java.util.EnumSet; -import java.util.HashMap; -import java.util.Map; - -/** - * 错误管理 - * @author WesleyOne - * @create 2018/7/28 - */ -public enum BaseError { - - UNPERMISSION("09","没有操作权限"), - UNLOGIN("01","未登录或登录过期"), - OPERATION_ERR("8899","操作失败!"), - NORMAL_ERR("8999","参数异常"), - SYSTEM_ERR("9999","系统异常"); - - - private String code; - private String msg; - BaseError(String code, String msg) { - this.code = code; - this.msg = msg; - } - - - private static final Map lookup = new HashMap(); - static { - for (BaseError s : EnumSet.allOf(BaseError.class)) - lookup.put(s.getMsg(), s); - } - - /** - * 获取枚举的值(整数值、字符串值等) - * @return - */ - public String getCode() { - return this.code; - } - - public String getMsg() { - return this.msg; - } - - - /** - * 根据值(整数值、字符串值等)获取相应的枚举类型 - * @param code - * @return - */ - public static BaseError fromValue(String code) { - return lookup.get(code); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseException.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseException.java deleted file mode 100644 index aecd571b..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseException.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.ruoyi.common.wechat.web.base; - -import java.io.Serializable; - -/** - * 统一异常对象 - * @author WesleyOne - * @create 2018/7/28 - */ -public class BaseException extends Exception implements Serializable { - - private static final long serialVersionUID = 2007525058641283836L; - - private String code; - - public BaseException(String code, String msg) { - super(msg); - this.code = code; - - } - - public BaseException(BaseError baseError) { - super(baseError.getMsg()); - this.code = baseError.getCode(); - } - - public BaseException(String msg) { - super(msg); - this.code = BaseError.NORMAL_ERR.getCode(); - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseResponse.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseResponse.java deleted file mode 100644 index c8468a4d..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/base/BaseResponse.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.ruoyi.common.wechat.web.base; - -/** - * @author WesleyOne - * @create 2018/7/28 - */ -public class BaseResponse { - public static BaseResponse OK = new BaseResponse(); - - private String code = "00"; - private String message = "操作成功"; - - private T data; - public BaseResponse() { - } - - public BaseResponse(T data) { - this.data = data; - } - - public BaseResponse(String code, String message) { - this.code = code; - this.message = message; - } - - public static BaseResponse success(){ - return new BaseResponse(); - } - - public static BaseResponse success(Object o){ - return new BaseResponse(o); - } - - public static BaseResponse error(String code,String msg){ - BaseResponse r = new BaseResponse(); - r.setCode(code); - r.setMessage(msg); - return r; - } - public static BaseResponse error(BaseError baseError){ - BaseResponse r = new BaseResponse(); - r.setCode(baseError.getCode()); - r.setMessage(baseError.getMsg()); - return r; - } - - /** - * 未登录返回 - * @return - */ - public static BaseResponse unLogin(){ - BaseResponse r = new BaseResponse(); - r.setCode(BaseError.UNLOGIN.getCode()); - r.setMessage(BaseError.UNLOGIN.getMsg()); - return r; - } - - /** - * 无权限返回 - * @return - */ - public static BaseResponse unPermission(){ - BaseResponse r = new BaseResponse(); - r.setCode(BaseError.UNPERMISSION.getCode()); - r.setMessage(BaseError.UNPERMISSION.getMsg()); - return r; - } - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/cache/UserSession.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/cache/UserSession.java deleted file mode 100644 index a915d7ff..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/cache/UserSession.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.ruoyi.common.wechat.web.cache; - -import org.ruoyi.common.wechat.web.utils.LRUCache; - -import java.util.LinkedHashMap; - -/** - * 简单的本地会话存储 - * @author WesleyOne - * @create 2018/9/25 - */ -public class UserSession { - public static LinkedHashMap USERSESSION_CACHE = new LRUCache(64); - - public static void addUserSession(String username,String userSession){ - USERSESSION_CACHE.put(username,userSession); - } - - public static void delUserSession(String username){ - USERSESSION_CACHE.remove(username); - } - - public static boolean checkUserSession(String username,String userSession){ - String s = USERSESSION_CACHE.get(username); - if (userSession!=null&&userSession.equals(s)){ - return true; - } - return false; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/MyConfig.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/MyConfig.java deleted file mode 100644 index 779f1a5b..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/MyConfig.java +++ /dev/null @@ -1,153 +0,0 @@ -package org.ruoyi.common.wechat.web.common; - -import com.alibaba.druid.filter.stat.StatFilter; -import com.alibaba.druid.wall.WallFilter; -import com.jfinal.config.*; -import com.jfinal.json.FastJsonFactory; -import com.jfinal.kit.PropKit; -import com.jfinal.plugin.activerecord.ActiveRecordPlugin; -import com.jfinal.plugin.activerecord.dialect.MysqlDialect; -import com.jfinal.plugin.druid.DruidPlugin; -import com.jfinal.server.undertow.UndertowServer; -import com.jfinal.template.Engine; -import com.jfinal.template.source.ClassPathSourceFactory; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.web.constant.UploadConstant; -import org.ruoyi.common.wechat.web.interceptor.ExceptionInterceptor; -import org.ruoyi.common.wechat.web.model._MappingKit; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.File; - - -/** - * JFinal项目的核心配置 - * 详情查看官方文档 - * https://www.jfinal.com/doc - * - * @author WesleyOne - */ -public class MyConfig extends JFinalConfig { - - public final Logger LOG = LoggerFactory.getLogger(this.getClass()); - - public static void main(String[] args) { - UndertowServer.start(MyConfig.class, 8180, true); - } - - /** - * 配置常量 - */ - @Override - public void configConstant(Constants me) { - PropKit.use("appConfig.properties"); - me.setDevMode(PropKit.getBoolean("devMode", false)); - //上传的文件的最大50M - me.setMaxPostSize(10 * 1024 * 1024); - me.setEncoding("UTF-8"); - me.setJsonFactory(new FastJsonFactory()); - me.setError404View("/WEB-INF/templates/404.html"); - } - - /** - * 配置路由 - */ - @Override - public void configRoute(Routes me) { - me.add(new MyRoute()); - me.add(new OutRoute()); - } - - @Override - public void configEngine(Engine me) { - me.setDevMode(PropKit.use("appConfig.properties").getBoolean("devMode", false)); - me.addSharedFunction("/WEB-INF/templates/bs4temp/layout.html"); - me.addSharedObject("imgDomain" , UploadConstant.IMG_URL); - me.addSharedObject("filedomain" , UploadConstant.FILE_URL); - } - - /** - * 配置插件 - */ - @Override - public void configPlugin(Plugins me) { - // 配置 druid 数据库连接池插件 - DruidPlugin druidPlugin = createDruidPlugin(); - druidPlugin.addFilter(new StatFilter()); - WallFilter wall = new WallFilter(); - wall.setDbType("mysql"); - druidPlugin.addFilter(wall); - druidPlugin.setInitialSize(1); - me.add(druidPlugin); - - // 配置ActiveRecord插件 - ActiveRecordPlugin arp = new ActiveRecordPlugin(druidPlugin); - _MappingKit.mapping(arp); - arp.setDialect(new MysqlDialect()); - arp.setShowSql(PropKit.use("appConfig.properties").getBoolean("devMode", false)); - arp.getEngine().setSourceFactory(new ClassPathSourceFactory()); - me.add(arp); - } - - public static DruidPlugin createDruidPlugin() { - return new DruidPlugin(PropKit.get("jdbcUrl"), PropKit.get("user"), PropKit.get("password").trim()); - } - /** - * 配置全局拦截器 - */ - @Override - public void configInterceptor(Interceptors me) { - me.add(new ExceptionInterceptor()); - } - - /** - * 配置处理器 - */ - @Override - public void configHandler(Handlers me) { - } - - @Override - public void afterJFinalStart() { - System.setProperty("jsse.enableSNIExtension", "false"); - // 检查文件夹(/热登录/下载根目录)是否存在 - checkFileExist(); - - // 热登陆操作 - CoreManage.reload(); - } - - @Override - public void beforeJFinalStop() { - CoreManage.persistence(); - } - - /** - * 检查文件夹(/热登录/下载根目录)是否存在 - */ - private void checkFileExist() { - String hotReloadDir = PropKit.get("hotReloadDir"); - String downloadPath = PropKit.get("download_path"); - String logPath = PropKit.get("log_path"); - File hotReloadFile = new File(hotReloadDir); - if (!hotReloadFile.exists()){ - if (!hotReloadFile.mkdirs()) { - LOG.error("热加载文件夹创建失败[{}]",hotReloadDir); - } - } - File downloadFile = new File(downloadPath); - if (!downloadFile.exists()){ - if (!downloadFile.mkdirs()) { - LOG.error("下载文件夹创建失败[{}]",downloadPath); - } - } - File logFile = new File(logPath); - if (!logFile.exists()){ - if (!logFile.mkdirs()) { - LOG.error("日志文件夹创建失败[{}]",logPath); - } - } - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/MyRoute.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/MyRoute.java deleted file mode 100644 index b4b89fb3..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/MyRoute.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.ruoyi.common.wechat.web.common; - -import com.jfinal.config.Routes; -import org.ruoyi.common.wechat.web.controller.*; -import org.ruoyi.common.wechat.web.interceptor.VisitLogInterceptor; - -/** - * 管理后台路由统一管理 - * @author wesleyOne - */ -public class MyRoute extends Routes { - - - @Override - public void config() { - //设置视图根目录 - setBaseViewPath("/WEB-INF/templates"); - //设置拦截器,前面的先执行 - addInterceptor(new VisitLogInterceptor()); - //添加路由 - add("/", IndexController.class); - add("/rob",RobotController.class); - add("/robwk",RobotWorkController.class); - add("/relate",RelateController.class); - add("/kw",KeyWordController.class); - - add("/upload",UploadController.class); - add("/tool",ToolController.class); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/OutRoute.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/OutRoute.java deleted file mode 100644 index 979389f7..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/common/OutRoute.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.ruoyi.common.wechat.web.common; - -import com.jfinal.config.Routes; -import org.ruoyi.common.wechat.web.controller.ExtendController; -import org.ruoyi.common.wechat.web.interceptor.VisitLogInterceptor4down; - -/** - * 对外路由统一管理 - * @author WesleyOne - * @create 2018/9/25 - */ -public class OutRoute extends Routes { - @Override - public void config() { - //设置视图根目录 - setBaseViewPath("/WEB-INF/templates"); - addInterceptor(new VisitLogInterceptor4down()); - //添加路由 - add("/ext", ExtendController.class); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/constant/ConfigKeys.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/constant/ConfigKeys.java deleted file mode 100644 index 76577c4d..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/constant/ConfigKeys.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.ruoyi.common.wechat.web.constant; - -/** - * @author WesleyOne - * @create 2018/12/13 - */ -public class ConfigKeys { - - /** - * 默认全局关键字回复用昵称,该字段超过16字符防止与用户昵称冲突 - * - * http://kf.qq.com/touch/wxappfaq/150910F322eY150910eIV32Q.html?platform=14 - * 微信昵称设置规则 - * 最多可设置16个汉字,可设置含有中文、英文、数字、符号组合的昵称,但不建议设置特殊字符。 - * 温馨提示:1个符号相当于一个汉字,2个数字/英文相当于1个汉字; - */ - public static final String DEAFAULT_KEYWORD = "默认全局关键字回复用昵称-请勿修改"; - public static final String DEAFAULT_WELCOME = "默认群欢迎新人用-请勿修改"; - - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/constant/UploadConstant.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/constant/UploadConstant.java deleted file mode 100644 index 3155faff..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/constant/UploadConstant.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.ruoyi.common.wechat.web.constant; - -import com.jfinal.kit.PathKit; - -import java.io.File; - -public class UploadConstant { - - public static final String IMG_FOLD = "img"; - public static final String FILE_FOLD = "file"; - - public static final String IMG_URL = "/"+IMG_FOLD+"/"; - public static final String FILE_URL = "/"+FILE_FOLD+"/"; - - public static final String IMG_PATH = PathKit.getWebRootPath()+ File.separator +IMG_FOLD; - public static final String FILE_PATH = PathKit.getWebRootPath()+ File.separator +FILE_FOLD; - public static final String IMG_PATH_SEP = IMG_PATH + File.separator; - public static final String FILE_PATH_SEP = FILE_PATH + File.separator; - - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/ExtendController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/ExtendController.java deleted file mode 100644 index dcd0f4ed..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/ExtendController.java +++ /dev/null @@ -1,125 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType; -import org.ruoyi.common.wechat.web.model.WxRobRelation; -import org.ruoyi.common.wechat.web.utils.IpUtil; - -/** - * 对外接口 - * @author WesleyOne - * @create 2018/12/16 - */ -public class ExtendController extends _BaseController { - - - /** - * 对外通用规则发消息 - * 参数: - * ok 外接唯一码 - * msg 消息列表 - * 类型参考@see org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType - * TEXT 文本消息串 - * IMG 图片名串(需要后台-通用工具-上传获取) - * FILE 文件名串(需要后台-通用工具-上传获取) - * 例子: - * {"ok":"test123", - * "msg":[ - * {"type":"TEXT","body":"我是消息体"}, - * {"type":"IMG","body":"ty6yLk3X_1545142908614.jpg"}, - * {"type":"FILE","body":"ty6yLk3X_1545142537914.txt"}, - * ] - * } - * - * 说明: - * 发送顺序按照列表顺序从前往后发 - * - * 返回: - * 00 成功 - * 01 外接码不存在 - * 02 外接码失效 - * 03 IP未通过审核 - * - */ - public void sendMsg(){ - - JSONObject postParam = getPostParam(); - String outKey = postParam.getString("ok"); - String msgStr = postParam.getString("msg"); - JSONArray msgs = JSONArray.parseArray(msgStr); - - if (StringUtils.isEmpty(outKey)){ - setCode("01"); - setMsg("外接码不存在"); - renderJson(); - return; - } - - WxRobRelation relationRecord = WxRobRelation.dao.findFirst("SELECT * FROM wx_rob_relation WHERE out_key = ? LIMIT 1", outKey); - - /** - * 校验IP - * 1.配置空则拒绝所有 - * 2.存在0.0.0.0不校验 - */ - String whiteList = relationRecord.getWhiteList(); - if (StringUtils.isEmpty(whiteList) || !relationRecord.getEnable()){ - setCode("02"); - setMsg("外接码失效或未配置白名单"); - renderJson(); - return; - } - String allPassIp = "0.0.0.0"; - // 不是完全开放IP并且访问IP不存在 - if (!whiteList.contains(allPassIp)){ - String outRealIp = IpUtil.getRealIp(getRequest()); - if (!whiteList.contains(outRealIp)){ - setCode("03"); - setMsg("IP未通过审核"); - renderJson(); - return; - } - } - - String uniqueKey = relationRecord.getUniqueKey(); - // 查看机器是否加载完成 - if (!CoreManage.getInstance(uniqueKey).isAlive() || !CoreManage.getInstance(uniqueKey).isFinishInit()){ - setCode("05"); - setMsg("机器未准备完成"); - renderJson(); - return; - } - - - /** - * 添加到消息队列 - */ - Boolean toGroup = relationRecord.getToGroup(); - String nickName = relationRecord.getNickName(); - // 单次请求最大消息数 - int maxMessages = 10; - int msgLength = msgs.size(); - if (msgLength page = WxRobKeyword.dao.paginate(pageNum, rows, "select * ", - " from wx_rob_keyword "+where); - - setAttrs(buildPagination(page.getList(), page.getTotalRow())); - render(new JsonRender().forIE()); - } - - public void editIndex(){ - Integer kid = getParaToInt("kid"); - WxRobKeyword kwRecord; - boolean isEdit = true; - List groupNickNames = new ArrayList<>(); - if (kid != null){ - kwRecord = WxRobKeyword.dao.findById(kid); - }else{ - isEdit = false; - kwRecord = new WxRobKeyword(); - String uniqueKey = getPara("uk"); - if (StringUtils.isNotEmpty(uniqueKey)){ - kwRecord.setUniqueKey(uniqueKey); - groupNickNames.addAll(WechatTools.getGroupNickNameList(uniqueKey)); - } - // 默认显示文本 - kwRecord.setTypeData(KeyMsgValueType.TEXT.toValue()); - } - setAttr("isEdit",isEdit); - setAttr("form",kwRecord); - - setAttr("keys",KeyMsgValueType.LIST_KV); - setAttr("groupNickNames",groupNickNames); - renderTemplate("editIndex.html"); - } - - /** - * 新增修改 - */ - public void editKeyWord(){ - JSONObject postParam = getPostParam(); - Long id = postParam.getLong("kid"); - String uniqueKey = postParam.getString("uniqueKey"); - String keyData = postParam.getString("keyData"); - String valueData = postParam.getString("valueData"); - String nickName = postParam.getString("nickName"); - String typeData = postParam.getString("typeData"); - Boolean enable = postParam.getBoolean("enable"); - Boolean toGroup = postParam.getBoolean("toGroup"); - - WxRobKeyword editRecord = new WxRobKeyword(); - - if (StringUtils.isNotEmpty(keyData)){ - editRecord.setKeyData(keyData); - } - if (StringUtils.isNotEmpty(valueData)){ - editRecord.setValueData(valueData); - } - if (StringUtils.isNotEmpty(nickName)){ - editRecord.setNickName(nickName); - } - if (KeyMsgValueType.fromValue(typeData) != null){ - editRecord.setTypeData(typeData); - }else { - editRecord.setTypeData(KeyMsgValueType.TEXT.toValue()); - } - if (enable != null){ - editRecord.setEnable(enable); - } - if (toGroup != null){ - editRecord.setToGroup(toGroup); - } - - if (id != null){ - editRecord.setId(id); - boolean update = editRecord.update(); - if (update){ - setMsg("修改成功"); - }else{ - setOperateErr("修改失败"); - } - }else{ - // 校验 - editRecord.setUniqueKey(uniqueKey); - editRecord.setCreateTime(new Date()); - editRecord.setEnable(true); - if (vldParamNull(editRecord.getUniqueKey(),"唯一码不能为空")){ - return; - } - if (vldParamNull(editRecord.getKeyData(),"关键字不能为空")){ - return; - } - if (vldParamNull(editRecord.getValueData(),"内容不能为空")){ - return; - } - if (vldParamNull(editRecord.getTypeData(),"内容类型不能为空")){ - return; - } - if (vldParamNull(editRecord.getNickName(),"昵称不能为空")){ - return; - } - if (vldParamNull(editRecord.getToGroup(),"群聊好友未选择")){ - return; - } - boolean save = editRecord.save(); - if (save){ - setMsg("新增成功"); - }else{ - setOperateErr("新增失败"); - } - } - renderJson(); - } - - /** - * 删除关键字 - */ - public void delKeyWord(){ - - String kid = getPara("kid"); - boolean delete = WxRobKeyword.dao.deleteById(kid); - if (delete){ - setMsg("删除成功"); - }else{ - setOperateErr("删除失败"); - } - renderJson(); - } - - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RelateController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RelateController.java deleted file mode 100644 index 139d2720..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RelateController.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -import com.alibaba.fastjson.JSONObject; -import com.jfinal.plugin.activerecord.Page; -import com.jfinal.render.JsonRender; -import org.apache.commons.lang3.StringUtils; -import org.ruoyi.common.wechat.itchat4j.api.WechatTools; -import org.ruoyi.common.wechat.web.model.WxRobRelation; -import org.ruoyi.common.wechat.web.utils.UUIDShortUtil; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * TODO 关联配置 - * @author WesleyOne - * @create 2018/12/16 - */ -public class RelateController extends _BaseController { - - public void index(){ - String outKey = getPara("ok"); - if (StringUtils.isNotEmpty(outKey)){ - setAttr("search_ok",outKey); - } - String searchUk = getPara("uk"); - if (StringUtils.isNotEmpty(searchUk)){ - setAttr("search_uk",searchUk); - } - renderTemplate("index.html"); - } - - public void list(){ - int rows = getParaToInt("limit", 10); - int pageNum = getPageNum(getParaToInt("offset", 1), rows); - String outKey = getPara("outKey"); - String uniqueKey = getPara("uniqueKey"); - String nickName = getPara("nickName"); - Boolean enable = getParaToBoolean("enable"); - Boolean togrp = getParaToBoolean("togrp"); - - String where = " where 1=1 "; - if (StringUtils.isNotEmpty(outKey)) { - where += " and out_key = '" + outKey + "' "; - } - if (StringUtils.isNotEmpty(uniqueKey)){ - where += " and unique_key = '"+uniqueKey + "' "; - } - if (StringUtils.isNotEmpty(nickName)) { - where += " and nick_name LIKE '" + nickName + "%' "; - } - if (enable != null){ - where += " and enable = " + (enable?1:0); - } - if (togrp != null){ - where += " and to_group = " + (togrp?1:0); - } - - Page page = WxRobRelation.dao.paginate(pageNum, rows, "select * ", - " from wx_rob_relation "+where); - - setAttrs(buildPagination(page.getList(), page.getTotalRow())); - render(new JsonRender().forIE()); - } - - public void editIndex(){ - Integer kid = getParaToInt("kid"); - WxRobRelation wxRobRelation; - boolean isEdit = true; - List groupNickNames = new ArrayList<>(); - if (kid != null){ - wxRobRelation = WxRobRelation.dao.findById(kid); - }else{ - isEdit = false; - wxRobRelation = new WxRobRelation(); - String uniqueKey = getPara("uk"); - String nickName = getPara("nk"); - Boolean toGroup = getParaToBoolean("tgb"); - if (StringUtils.isNotEmpty(uniqueKey)){ - wxRobRelation.setUniqueKey(uniqueKey); - groupNickNames.addAll(WechatTools.getGroupNickNameList(uniqueKey)); - } - if (StringUtils.isNotEmpty(nickName)){ - wxRobRelation.setNickName(nickName); - } - if (toGroup != null){ - wxRobRelation.setToGroup(toGroup); - }else{ - wxRobRelation.setToGroup(true); - } - } - setAttr("isEdit",isEdit); - setAttr("form",wxRobRelation); - setAttr("groupNickNames",groupNickNames); - renderTemplate("editIndex.html"); - } - - /** - * 编辑外部id关联 - */ - public void editRelate(){ - JSONObject postParam = getPostParam(); - Long id = postParam.getLong("kid"); - String uniqueKey = postParam.getString("uniqueKey"); - String nickName = postParam.getString("nickName"); - String whiteList = postParam.getString("whiteList"); - Boolean enable = postParam.getBoolean("enable"); - Boolean toGroup = postParam.getBoolean("toGroup"); - - WxRobRelation editRecord = new WxRobRelation(); - - if (StringUtils.isNotEmpty(nickName)){ - editRecord.setNickName(nickName); - } - if (enable != null){ - editRecord.setEnable(enable); - } - if (toGroup != null){ - editRecord.setToGroup(toGroup); - } - if (StringUtils.isNotEmpty(whiteList)){ - editRecord.setWhiteList(whiteList); - } - - if (id != null){ - editRecord.setId(id); - boolean update = editRecord.update(); - if (update){ - setMsg("修改成功"); - }else{ - setOperateErr("修改失败"); - } - }else{ - // 校验 - editRecord.setUniqueKey(uniqueKey); - editRecord.setCreateTime(new Date()); - editRecord.setEnable(true); - if (vldParamNull(editRecord.getUniqueKey(),"唯一码不能为空")){ - return; - } - if (vldParamNull(editRecord.getNickName(),"昵称不能为空")){ - return; - } - if (vldParamNull(editRecord.getToGroup(),"群聊好友未选择")){ - return; - } - - boolean isSuccess = false; - int maxTime = 5; - while (!isSuccess && maxTime >0){ - String outKey = UUIDShortUtil.generateShortUuid(); - editRecord.setOutKey(outKey); - isSuccess = editRecord.save(); - maxTime--; - } - if (isSuccess){ - setMsg("新增成功"); - }else{ - setOperateErr("新增失败"); - } - } - renderJson(); - } - - /** - * 删除外部id关联 - */ - public void delRelate(){ - String kid = getPara("kid"); - boolean delete = WxRobRelation.dao.deleteById(kid); - if (delete){ - setMsg("删除成功"); - }else{ - setOperateErr("删除失败"); - } - renderJson(); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RobotController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RobotController.java deleted file mode 100644 index 56e122bc..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RobotController.java +++ /dev/null @@ -1,223 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -import cn.hutool.core.collection.CollectionUtil; -import com.alibaba.fastjson.JSONObject; -import com.jfinal.plugin.activerecord.Db; -import com.jfinal.plugin.activerecord.Page; -import com.jfinal.plugin.activerecord.Record; -import com.jfinal.render.JsonRender; -import org.apache.commons.lang3.StringUtils; -import org.ruoyi.common.wechat.itchat4j.core.Core; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.web.base.BaseException; -import org.ruoyi.common.wechat.web.model.WxRobConfig; -import org.ruoyi.common.wechat.web.utils.UUIDShortUtil; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * 机器人相关管理接口 - * @author WesleyOne - * @create 2018/12/16 - */ -public class RobotController extends _BaseController { - - /** - * 机器人页面 - */ - public void index(){ - renderTemplate("index.html"); - } - - /** - * 机器人列表 - * 分页,搜索条件 - */ - public void list(){ - int rows = getParaToInt("limit", 10); - int pageNum = getPageNum(getParaToInt("offset", 1), rows); - String searchUniqueKey = getPara("uniqueKey"); - String remark = getPara("remark"); - Boolean enable = getParaToBoolean("enable"); - String where = " where 1=1 "; - if (StringUtils.isNotEmpty(searchUniqueKey)){ - where += " and unique_key = '"+searchUniqueKey + "' "; - } - if (StringUtils.isNotEmpty(remark)) { - where += " and remark like '" + remark + "%' "; - } - if (enable != null){ - where += " and enable = " + (enable?1:0); - } - - Page page = WxRobConfig.dao.paginate(pageNum, rows, "select * ", - " from wx_rob_config "+where); - //其他处理 - List dataList = page.getList(); - if (CollectionUtil.isNotEmpty(dataList)){ - for (WxRobConfig conf: dataList){ - // 获取机器人状态 - String uniqueKey = conf.getUniqueKey(); - conf.setActive(CoreManage.isActive(uniqueKey)); - } - } - - setAttrs(buildPagination(dataList, page.getTotalRow())); - render(new JsonRender().forIE()); - } - - /** - * 机器人页面 - */ - public void addIndex(){ - renderTemplate("addIndex.html"); - } - - /** - * 添加机器人 - */ - public void addRob(){ - JSONObject postParam = getPostParam(); - String remark = postParam.getString("remark"); - - if (vldParamNull(remark,"微信号不能为空")){ - return; - } - - Record remarkRecord = Db.findFirst("SELECT remark FROM wx_rob_config WHERE remark = ? LIMIT 1", remark); - if (vldParamNull(remarkRecord != null,"备注已存在")){ - return; - } - WxRobConfig bean = new WxRobConfig(); - bean.setRemark(remark) - .setCreateTime(new Date()) - .setUpdateTime(new Date()) - .setToFriend(false) - .setToGroup(true) - .setFromOut(false) - .setDefaultFriend(false) - .setDefaultGroup(false); - - boolean isSuccess = false; - int maxTime = 5; - while (!isSuccess && maxTime >0){ - String uniKey = UUIDShortUtil.generateShortUuid(); - bean.setUniqueKey(uniKey); - isSuccess = bean.save(); - maxTime--; - } - - if (!isSuccess){ - setOperateErr(); - }else{ - setData(bean); - } - renderJson(); - } - - /** - * 机器人启动禁止开关,发送群聊开关,发送好友开关,对外接口消息开关 - */ - public void change(){ - JSONObject postParam = getPostParam(); - Long id = postParam.getLong("rid"); - String type = postParam.getString("type"); - Boolean state = postParam.getBoolean("state"); - - if (id == null || StringUtils.isEmpty(type) || state == null){ - setOperateErr(); - renderJson(); - return; - } - - WxRobConfig config = new WxRobConfig(); - config.setId(id); - if ("enable".equals(type)){ - config.setEnable(state); - }else if ("tofrd".equals(type)){ - config.setToFriend(state); - }else if ("togrp".equals(type)){ - config.setToGroup(state); - }else if ("fromout".equals(type)) { - config.setFromOut(state); - }else if ("default_group".equals(type)){ - config.setDefaultGroup(state); - }else if ("default_friend".equals(type)){ - config.setDefaultFriend(state); - }else { - setOperateErr("非法操作"); - render(new JsonRender().forIE()); - return; - } - - config.setUpdateTime(new Date()); - boolean update = config.update(); - if (!update){ - setOperateErr(); - }else{ - setData(update); - } - renderJson(); - } - - /** - * 修改备注 - */ - public void changeRemark(){ - JSONObject postParam = getPostParam(); - Long id = postParam.getLong("rid"); - String remark = postParam.getString("remark"); - if (vldParamNull(id,"ID不能为空")){ - return; - } - if (vldParamNull(remark,"备注不能为空")){ - return; - } - - Record remarkRecord = Db.findFirst("SELECT remark FROM wx_rob_config WHERE remark = ? LIMIT 1", remark); - if (vldParamNull(remarkRecord != null,"备注已存在")){ - return; - } - WxRobConfig config = new WxRobConfig(); - config.setId(id); - config.setRemark(remark); - boolean update = config.update(); - if (!update){ - setOperateErr(); - }else{ - setData(update); - } - renderJson(); - } - - /** - * 发送页面 - */ - public void sendIndex() throws BaseException { - String uniqueKey = getUniqueKey(); - Core core = CoreManage.getInstance(uniqueKey); - List sourceSendList = new ArrayList<>(); - sourceSendList.addAll( core.getGroupList()); - sourceSendList.addAll( core.getContactList()); - List targetList = new ArrayList<>(); - JSONObject filehelper = new JSONObject(); - filehelper.put("UserName","filehelper"); - filehelper.put("NickName","文件传输助手"); - targetList.add(filehelper); - for (JSONObject jsonObject : sourceSendList) { - JSONObject newObject = new JSONObject(); - if (StringUtils.isEmpty(jsonObject.getString("NickName"))){ - continue; - } - newObject.put("NickName",jsonObject.getString("NickName")); - newObject.put("UserName",jsonObject.getString("UserName")); - targetList.add(newObject); - } - setAttr("uniqueKey",uniqueKey); - setAttr("targetList",targetList); - renderTemplate("sendIndex.html"); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RobotWorkController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RobotWorkController.java deleted file mode 100644 index 3fdcd5d5..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/RobotWorkController.java +++ /dev/null @@ -1,179 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -import com.alibaba.fastjson.JSONObject; -import org.ruoyi.common.wechat.itchat4j.api.WechatTools; -import org.ruoyi.common.wechat.itchat4j.controller.LoginController; -import org.ruoyi.common.wechat.itchat4j.core.CoreManage; -import org.ruoyi.common.wechat.itchat4j.service.impl.LoginServiceImpl; -import org.ruoyi.common.wechat.itchat4j.utils.enums.SendMsgType; -import org.ruoyi.common.wechat.web.base.BaseException; - -import java.io.IOException; -import java.util.List; - -/** - * @author WesleyOne - * @create 2018/12/16 - */ -public class RobotWorkController extends _BaseController { - - /** - * 获取状态 - * @throws BaseException - */ - public void getStatus() throws BaseException { - String uniqueKey = getUniqueKey(); - boolean wechatStatus = WechatTools.getWechatStatus(uniqueKey); - setData(wechatStatus); - renderJson(); - } - - /** - * 登录第一步,获取二维码链接 - * @throws BaseException - */ - public void getQr() throws BaseException, IOException { - String uniqueKey = getUniqueKey(); - LoginController login = new LoginController(uniqueKey); - String qrSrc = login.login_1(); - setData(qrSrc); - renderJson(); - } - - /** - * 登录第二步,确认登录状态 - * @throws BaseException - */ - public void login() throws BaseException { - String uniqueKey = getUniqueKey(); - LoginController login = new LoginController(uniqueKey); - boolean result = login.login_2(); - if (result){ - - }else{ - setOperateErr(); - } - renderJson(); - } - - /** - * 登录第三步,确认登录及初始化信息 - * @throws BaseException - */ - public void init() throws BaseException { - String uniqueKey = getUniqueKey(); - LoginController login = new LoginController(uniqueKey); - boolean loginResult = login.login_3(); - if (loginResult){ - setMsg("登录成功"); - }else{ - setMsg("登录失败,关闭二维码后重新打开"); - } - renderJson(); - } - - /** - * 退出 - * @throws BaseException - */ - public void logout() throws BaseException { - String uniqueKey = getUniqueKey(); - WechatTools.logout(uniqueKey); - renderJson(); - } - - /** - * 获取群昵称 - */ - public void getGroupNickNames() throws BaseException { - String uniqueKey = getUniqueKey(); - List groupNickNameList = WechatTools.getGroupNickNameList(uniqueKey); - setData(groupNickNameList); - renderJson(); - } - - /** - * 获取好友昵称 - */ - public void getContactNickNames() throws BaseException { - String uniqueKey = getUniqueKey(); - List contactNickNameList = WechatTools.getContactNickNameList(uniqueKey); - setData(contactNickNameList); - renderJson(); - } - - public void getGroups() throws BaseException { - String uniqueKey = getUniqueKey(); - List groupList = WechatTools.getGroupList(uniqueKey); - setData(groupList); - renderJson(); - } - - public void getContacts() throws BaseException { - String uniqueKey = getUniqueKey(); - List contactList = WechatTools.getContactList(uniqueKey); - setData(contactList); - renderJson(); - } - - public void getCore() throws BaseException { - String uniqueKey = getUniqueKey(); - setData(CoreManage.getInstance(uniqueKey)); - renderJson(); - } - - /** - * 强制刷新通讯录 - */ - public void gct() throws BaseException { - String uniqueKey = getUniqueKey(); - LoginServiceImpl loginService = new LoginServiceImpl(uniqueKey); - loginService.webWxGetContact(); - renderJson(); - } - - /** - * 刷新通讯录详情 - * @throws BaseException - */ - public void ggp() throws BaseException { - String uniqueKey = getUniqueKey(); - LoginServiceImpl loginService = new LoginServiceImpl(uniqueKey); - loginService.WebWxBatchGetContact(); - renderJson(); - } - - /** - * 重启 - * @throws BaseException - */ - public void reboot() throws BaseException { - String uniqueKey = getUniqueKey(); - LoginController login = new LoginController(uniqueKey); - boolean loginResult = login.reboot(); - setData(loginResult); - renderJson(); - } - - - /** - * 手动备份热登录信息 - */ - public void manualCopy(){ - CoreManage.persistence(); - renderJson(); - } - - public void testSend() throws BaseException { - - JSONObject postParam = getPostParam(); - String uniqueKey = postParam.getString("uniqueKey"); - String data = postParam.getString("valueData"); - String userName = postParam.getString("userName"); - String typeData = postParam.getString("typeData"); - - CoreManage.addSendMsg4UserName(uniqueKey,userName,data, SendMsgType.fromValue(typeData)); - renderJson(); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/ToolController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/ToolController.java deleted file mode 100644 index 904b378d..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/ToolController.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -/** - * 通用工具 - * @author WesleyOne - * @create 2018/12/24 - */ -public class ToolController extends _BaseController { - - public void index(){ - renderTemplate("index.html"); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/UploadController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/UploadController.java deleted file mode 100644 index c694b758..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/UploadController.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -import com.jfinal.upload.UploadFile; -import org.ruoyi.common.wechat.web.constant.UploadConstant; - -import java.io.File; - -/** - * @author WesleyOne - * @create 2018/12/14 - */ -public class UploadController extends _BaseController { - - - public void img2local(){ - UploadFile file = getFile(); - - String fn = getPara("fn", ""); - String originalFileName = file.getOriginalFileName(); - int i = file.getOriginalFileName().lastIndexOf(".")+1; - String fileType = originalFileName.substring(i); - String fileName = fn + "_" + System.currentTimeMillis() + "." + fileType; - String newFilePath = UploadConstant.IMG_PATH+File.separator+fileName; - file.getFile().renameTo(new File(newFilePath)); - - setAttr("name",fileName); - - renderJson(); - } - - public void file2local(){ - UploadFile file = getFile(); - - String fn = getPara("fn", ""); - String originalFileName = file.getOriginalFileName(); - int i = file.getOriginalFileName().lastIndexOf(".")+1; - String fileType = originalFileName.substring(i); - String fileName = fn + "_" + System.currentTimeMillis() + "." + fileType; - String newFilePath = UploadConstant.FILE_PATH+File.separator+fileName; - file.getFile().renameTo(new File(newFilePath)); - - setAttr("name",fileName); - - renderJson(); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/_BaseController.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/_BaseController.java deleted file mode 100644 index f1c5c216..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/controller/_BaseController.java +++ /dev/null @@ -1,199 +0,0 @@ -package org.ruoyi.common.wechat.web.controller; - -import com.alibaba.fastjson.JSONObject; -import com.jfinal.core.Controller; -import com.jfinal.core.NotAction; -import com.jfinal.kit.HttpKit; -import com.jfinal.kit.StrKit; -import org.apache.commons.lang3.StringUtils; -import org.ruoyi.common.wechat.web.base.BaseError; -import org.ruoyi.common.wechat.web.base.BaseException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import javax.servlet.http.Cookie; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author WesleyOne - * @create 2018/7/27 - */ -public class _BaseController extends Controller { - - public final Logger LOG = LoggerFactory.getLogger(this.getClass()); - - - /** - * 通用验证 - * @param result true说明验证不通过 - * @param code - * @param errorMsg - */ - @NotAction - public boolean vldParam(boolean result, String code, String errorMsg){ - if (result){ - setAttr("code",code); - setAttr("message",errorMsg); - this.renderJson(); - return true; - } - return false; - } - - @NotAction - public boolean vldParam(boolean result, BaseError baseError){ - if (result){ - return vldParam(true,baseError.getCode(),baseError.getMsg()); - } - return false; - } - - @NotAction - public boolean vldParam(boolean result, String errMsg){ - if (result){ - return vldParam(true,BaseError.NORMAL_ERR.getCode(),errMsg); - } - return false; - } - - /** - * 参数非空判断 - * @param paramValue - * @param baseError - * @return - */ - @NotAction - public boolean vldParamNull(String paramValue, BaseError baseError){ - if (StrKit.isBlank(paramValue)) { - return vldParam(true,baseError.getCode(),baseError.getMsg()); - } - return false; - } - - @NotAction - public boolean vldParamNull(String paramValue, String errMsg){ - if (StrKit.isBlank(paramValue)) { - return vldParam(true,BaseError.NORMAL_ERR.getCode(),errMsg); - } - return false; - } - - /** - * 参数非空判断 - * @param paramValue - * @param baseError - * @return - */ - @NotAction - public boolean vldParamNull(Object paramValue, BaseError baseError){ - if (paramValue == null) { - return vldParam(true,baseError.getCode(),baseError.getMsg()); - } - return false; - } - - @NotAction - public boolean vldParamNull(Object paramValue, String errMsg){ - if (paramValue == null) { - return vldParam(true,BaseError.NORMAL_ERR.getCode(),errMsg); - } - return false; - } - - @NotAction - public void setData(Object o){ - this.setAttr("data",o); - } - @NotAction - public void setCount(Object o){ - this.setAttr("_count",o); - } - @NotAction - public void setCode(String code){ - this.setAttr("code",code); - } - @NotAction - public void setMsg(String msg){ - this.setAttr("message",msg); - } - @NotAction - public void setOperateErr(String msg){ - this.setAttr("code",BaseError.OPERATION_ERR.getCode()); - this.setAttr("message",msg); - } - @NotAction - public void setOperateErr(){ - this.setAttr("code",BaseError.OPERATION_ERR.getCode()); - this.setAttr("message",BaseError.OPERATION_ERR.getMsg()); - } - @NotAction - public void setDeleteErr(){ - this.setAttr("code",BaseError.OPERATION_ERR.getCode()); - this.setAttr("message",BaseError.OPERATION_ERR.getMsg()); - } - - @NotAction - public void addCookie(String key,String value,int second) { - Cookie cookie = new Cookie(key,value); - cookie.setMaxAge(second); - cookie.setPath("/"); - setCookie(cookie); - } - - @NotAction - public JSONObject getPostParam(){ - String jsonString= HttpKit.readData(getRequest()); - return JSONObject.parseObject(jsonString); - } - @NotAction - public String getUid(){ - return this.getCookie("uid"); - } - - /** - * 分页处理 - * @param list - * @param count - * @return - */ - @SuppressWarnings("rawtypes") - @NotAction - protected Map buildPagination(List list, Integer count) { - return buildPagination(list, count, null); - } - - @SuppressWarnings("rawtypes") - @NotAction - protected Map buildPagination(List list, Integer count, - List> footer) { - Map map = new HashMap(4); - map.put("total", count); - map.put("rows", list); - if (footer != null){ - map.put("footer", footer); - } - return map; - } - - @NotAction - protected static int getPageNum(int pageNum,int rows){ - int pageNumber = pageNum / rows + 1; - return pageNumber; - } - - /** - * 获取UniqueKey - * @return - */ - @NotAction - public String getUniqueKey() throws BaseException { - String uniqueKey = getPara("_ck", ""); - if (StringUtils.isEmpty(uniqueKey)){ - throw new BaseException("机器唯一码为空"); - } - return uniqueKey; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/enums/KeyMsgValueType.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/enums/KeyMsgValueType.java deleted file mode 100644 index c28609e0..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/enums/KeyMsgValueType.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.ruoyi.common.wechat.web.enums; - -import com.jfinal.plugin.activerecord.Record; - -import java.util.*; -public enum KeyMsgValueType { - - IMG("IMG", "图片"), - FILE("FILE", "文件"), - TEXT("TEXT", "纯文本"); - - private String value; - private String name; - - KeyMsgValueType(String value, String name) { - this.value = value; - this.name = name; - } - - private static final Map lookup = new HashMap<>(); - public static List LIST_KV = new ArrayList<>(); - - static { - for (KeyMsgValueType s : EnumSet.allOf(KeyMsgValueType.class)) { - lookup.put(s.toValue(), s); - LIST_KV.add(new Record().set("v", s.toValue()).set("n", s.toName())); - } - } - - public String toValue() { - return this.value; - } - - public String toName() { - return this.name; - } - - public static KeyMsgValueType fromValue(String value) { - return lookup.get(value); - } - - public boolean equal(KeyMsgValueType type) { - return type != null && this.toValue().equals(type.toValue()); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/ExceptionInterceptor.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/ExceptionInterceptor.java deleted file mode 100644 index bbca0a71..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/ExceptionInterceptor.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.ruoyi.common.wechat.web.interceptor; - -import com.jfinal.aop.Interceptor; -import com.jfinal.aop.Invocation; -import org.ruoyi.common.wechat.web.base.BaseError; -import org.ruoyi.common.wechat.web.base.BaseException; -import org.ruoyi.common.wechat.web.base.BaseResponse; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * 全局异常拦截 - * @author WesleyOne - * @create 2018/7/28 - */ -public class ExceptionInterceptor implements Interceptor { - - private static final Logger LOG = LoggerFactory.getLogger(ExceptionInterceptor.class); - - @Override - public void intercept(Invocation me) { - try { - me.getController().setAttr("code","00"); - me.getController().setAttr("message","操作成功"); - me.invoke(); - } - catch (Exception e) { - LOG.error(e.getMessage(),e); - BaseResponse resp = new BaseResponse(); - Throwable cause = e.getCause(); - String ajax = me.getController().getRequest().getHeader("X-Requested-With"); - //判断ajax请求还是页面请求 - if ("XMLHttpRequest".equals(ajax)){ - if (cause instanceof BaseException) { - resp.setCode(((BaseException) cause).getCode()); - resp.setMessage(cause.getMessage()); - } else{ - resp.setCode(BaseError.SYSTEM_ERR.getCode()); - resp.setMessage(BaseError.SYSTEM_ERR.getMsg()); - } - me.getController().renderJson(resp); - return; - }else{ - //默认系统500页面,添加第二个参数可自行添加500页面 - me.getController().renderError(500); - return; - } - - } - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/VisitLogInterceptor.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/VisitLogInterceptor.java deleted file mode 100644 index 0b03c8f7..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/VisitLogInterceptor.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.ruoyi.common.wechat.web.interceptor; - - -import com.jfinal.aop.Interceptor; -import com.jfinal.aop.Invocation; -import org.ruoyi.common.wechat.web.annotation.UnCheckLogin; -import org.ruoyi.common.wechat.web.cache.UserSession; -import org.ruoyi.common.wechat.web.utils.IpUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.lang.annotation.Annotation; -import java.lang.reflect.Method; - - -/** - * 管理后台操作日志 - * @author admin - */ -public class VisitLogInterceptor implements Interceptor { - public static final Logger LOG = LoggerFactory.getLogger(VisitLogInterceptor.class); - - @Override - public void intercept(Invocation inv) { - String requestUrl = inv.getActionKey(); - String uid = inv.getController().getCookie("uid"); - String sid = inv.getController().getCookie("sid"); - String ip = IpUtil.getRealIp(inv.getController().getRequest()); - LOG.info("{} - {} - {} 操作了 {}",ip,uid,sid,requestUrl); - - inv.getController().setAttr("active",inv.getController().getControllerKey()); - - //找到不需要登录的action - Class controllerClass = inv.getController().getClass(); - UnCheckLogin methodOwn = getControllerMethodUnLoginOwn(controllerClass, inv.getMethodName()); - if (methodOwn != null) { - LOG.info("不需要登录,requestUrl=" + requestUrl); - inv.invoke(); - return; - } - - boolean isLogin = UserSession.checkUserSession(uid,sid); - if (!isLogin){ - //未登入 - inv.getController().redirect("/login",false); - return; - } - - long start = System.currentTimeMillis(); - inv.invoke(); - long l = System.currentTimeMillis() - start; - if (l > 1000*2){ - LOG.warn("请求 {} ,连接时长 {} ms",requestUrl,l); - } - } - - //--------------以下是内部方法----------- - - private UnCheckLogin getControllerMethodUnLoginOwn(Class controllerClass, String methodName) { - for (Method method : controllerClass.getMethods()) { - if (methodName.equals(method.getName())) { - return getUnLogin(method); - } - } - return null; - } - - private UnCheckLogin getUnLogin(Method method) { - Annotation[] annotations = method.getAnnotations(); - for (Annotation annt : annotations) { - if (annt instanceof UnCheckLogin) { - UnCheckLogin own = (UnCheckLogin) annt; - return own; - } - } - return null; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/VisitLogInterceptor4down.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/VisitLogInterceptor4down.java deleted file mode 100644 index 61d2ee16..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/interceptor/VisitLogInterceptor4down.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.ruoyi.common.wechat.web.interceptor; - -import com.jfinal.aop.Interceptor; -import com.jfinal.aop.Invocation; -import org.ruoyi.common.wechat.web.utils.IpUtil; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * 对外接口访问日志 - * @author WesleyOne - * @create 2018/9/25 - */ -public class VisitLogInterceptor4down implements Interceptor { - - public static final Logger LOG = LoggerFactory.getLogger(VisitLogInterceptor4down.class); - - @Override - public void intercept(Invocation inv) { - String ip = IpUtil.getRealIp(inv.getController().getRequest()); - StringBuffer requestURL = inv.getController().getRequest().getRequestURL(); - String queryString = inv.getController().getRequest().getQueryString(); - LOG.info("{} 操作了 {} {}",ip,requestURL,queryString); - inv.invoke(); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobConfig.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobConfig.java deleted file mode 100644 index 280776ef..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobConfig.java +++ /dev/null @@ -1,21 +0,0 @@ -package org.ruoyi.common.wechat.web.model; - -import org.ruoyi.common.wechat.web.model.base.BaseWxRobConfig; - -/** - * Generated by JFinal. - */ -@SuppressWarnings("serial") -public class WxRobConfig extends BaseWxRobConfig { - public static final WxRobConfig dao = new WxRobConfig().dao(); - - private boolean isActive; - - public boolean isActive() { - return isActive; - } - - public void setActive(boolean active) { - isActive = active; - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobKeyword.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobKeyword.java deleted file mode 100644 index aceeac43..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobKeyword.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.ruoyi.common.wechat.web.model; - -import org.ruoyi.common.wechat.web.model.base.BaseWxRobKeyword; - -/** - * Generated by JFinal. - */ -@SuppressWarnings("serial") -public class WxRobKeyword extends BaseWxRobKeyword { - public static final WxRobKeyword dao = new WxRobKeyword().dao(); -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobRelation.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobRelation.java deleted file mode 100644 index 2f2aff6b..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/WxRobRelation.java +++ /dev/null @@ -1,11 +0,0 @@ -package org.ruoyi.common.wechat.web.model; - -import org.ruoyi.common.wechat.web.model.base.BaseWxRobRelation; - -/** - * Generated by JFinal. - */ -@SuppressWarnings("serial") -public class WxRobRelation extends BaseWxRobRelation { - public static final WxRobRelation dao = new WxRobRelation().dao(); -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/_JFinalDemoGenerator.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/_JFinalDemoGenerator.java deleted file mode 100644 index 3502c597..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/_JFinalDemoGenerator.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.ruoyi.common.wechat.web.model; - -import com.jfinal.kit.PathKit; -import com.jfinal.kit.PropKit; -import com.jfinal.plugin.activerecord.dialect.MysqlDialect; -import com.jfinal.plugin.activerecord.generator.Generator; -import com.jfinal.plugin.druid.DruidPlugin; -import org.ruoyi.common.wechat.web.common.MyConfig; - -import javax.sql.DataSource; - -/** - * 本 demo 仅表达最为粗浅的 jfinal 用法,更为有价值的实用的企业级用法 - * 详见 JFinal 俱乐部: http://jfinal.com/club - * - * 在数据库表有任何变动时,运行一下 main 方法,极速响应变化进行代码重构 - */ -public class _JFinalDemoGenerator { - -// public static DataSource getDataSource() { -//// PropKit.use("appConfig.properties"); -//// DruidPlugin druidPlugin = new DruidPlugin(PropKit.get("jdbcUrl"), PropKit.get("user"), PropKit.get("password").trim(),PropKit.get("jdbcDriverSqlServe")); -//// DruidPlugin druidPlugin = new DruidPlugin("jdbc:mysql://127.0.0.1:3306/wxwobot?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull","root", "root"); -// DruidPlugin druidPlugin = new DruidPlugin("jdbc:mysql://localhost:3306/wxwobot?characterEncoding=utf8&useSSL=false&zeroDateTimeBehavior=convertToNull", -// "root", "root"); -// druidPlugin.start(); -// return druidPlugin.getDataSource(); -// } - public static DataSource getDataSource() { - DruidPlugin druidPlugin = MyConfig.createDruidPlugin(); - druidPlugin.start(); - return druidPlugin.getDataSource(); - } - - public static void main(String[] args) { - PropKit.use("appConfig.properties"); - // base model 所使用的包名 - String baseModelPackageName = "org.ruoyi.common.wechat.web.model.base"; - // base model 文件保存路径 - String baseModelOutputDir = PathKit.getWebRootPath() + "/src/main/java/org.ruoyi.common.wechat/web/model/base"; - - // model 所使用的包名 (MappingKit 默认使用的包名) - String modelPackageName = "org.ruoyi.common.wechat.web.model"; - // model 文件保存路径 (MappingKit 与 DataDictionary 文件默认保存路径) - String modelOutputDir = baseModelOutputDir + "/.."; - - // 创建生成器 - Generator generator = new Generator(getDataSource(), baseModelPackageName, baseModelOutputDir, modelPackageName, modelOutputDir); - // 设置是否生成链式 setter 方法 - generator.setGenerateChainSetter(false); - // 添加不需要生成的表名 - generator.addExcludedTable(); - // 设置是否在 Model 中生成 dao 对象 - generator.setGenerateDaoInModel(false); - // 设置是否生成链式 setter 方法 - generator.setGenerateChainSetter(true); - // 设置是否生成字典文件 - generator.setGenerateDataDictionary(false); - // 设置需要被移除的表名前缀用于生成modelName。例如表名 "osc_user",移除前缀 "osc_"后生成的model名为 "User"而非 OscUser -// generator.setRemovedTableNamePrefixes("t_"); - - generator.setDialect(new MysqlDialect()); - // 生成 - generator.generate(); - - } - -} - - - - diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/_MappingKit.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/_MappingKit.java deleted file mode 100644 index 9426b066..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/_MappingKit.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.ruoyi.common.wechat.web.model; - -import com.jfinal.plugin.activerecord.ActiveRecordPlugin; - -/** - * Generated by JFinal, do not modify this file. - *
- * Example:
- * public void configPlugin(Plugins me) {
- *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
- *     _MappingKit.mapping(arp);
- *     me.add(arp);
- * }
- * 
- */ -public class _MappingKit { - - public static void mapping(ActiveRecordPlugin arp) { - arp.addMapping("wx_rob_config", "id", WxRobConfig.class); - arp.addMapping("wx_rob_keyword", "id", WxRobKeyword.class); - arp.addMapping("wx_rob_relation", "id", WxRobRelation.class); - } -} - diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobConfig.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobConfig.java deleted file mode 100644 index 352f0511..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobConfig.java +++ /dev/null @@ -1,111 +0,0 @@ -package org.ruoyi.common.wechat.web.model.base; - -import com.jfinal.plugin.activerecord.IBean; -import com.jfinal.plugin.activerecord.Model; - -/** - * Generated by JFinal, do not modify this file. - */ -@SuppressWarnings({"serial", "unchecked"}) -public abstract class BaseWxRobConfig> extends Model implements IBean { - - public M setId(Long id) { - set("id", id); - return (M)this; - } - - public Long getId() { - return getLong("id"); - } - - public M setUniqueKey(String uniqueKey) { - set("unique_key", uniqueKey); - return (M)this; - } - - public String getUniqueKey() { - return getStr("unique_key"); - } - - public M setRemark(String remark) { - set("remark", remark); - return (M)this; - } - - public String getRemark() { - return getStr("remark"); - } - - public M setCreateTime(java.util.Date createTime) { - set("create_time", createTime); - return (M)this; - } - - public java.util.Date getCreateTime() { - return get("create_time"); - } - - public M setUpdateTime(java.util.Date updateTime) { - set("update_time", updateTime); - return (M)this; - } - - public java.util.Date getUpdateTime() { - return get("update_time"); - } - - public M setToFriend(Boolean toFriend) { - set("to_friend", toFriend); - return (M)this; - } - - public Boolean getToFriend() { - return get("to_friend"); - } - - public M setToGroup(Boolean toGroup) { - set("to_group", toGroup); - return (M)this; - } - - public Boolean getToGroup() { - return get("to_group"); - } - - public M setDefaultFriend(Boolean defaultFriend) { - set("default_friend", defaultFriend); - return (M)this; - } - - public Boolean getDefaultFriend() { - return get("default_friend"); - } - - public M setDefaultGroup(Boolean defaultGroup) { - set("default_group", defaultGroup); - return (M)this; - } - - public Boolean getDefaultGroup() { - return get("default_group"); - } - - public M setFromOut(Boolean fromOut) { - set("from_out", fromOut); - return (M)this; - } - - public Boolean getFromOut() { - return get("from_out"); - } - - public M setEnable(Boolean enable) { - set("enable", enable); - return (M)this; - } - - public Boolean getEnable() { - return get("enable"); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobKeyword.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobKeyword.java deleted file mode 100644 index 98e01a13..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobKeyword.java +++ /dev/null @@ -1,93 +0,0 @@ -package org.ruoyi.common.wechat.web.model.base; - -import com.jfinal.plugin.activerecord.IBean; -import com.jfinal.plugin.activerecord.Model; - -/** - * Generated by JFinal, do not modify this file. - */ -@SuppressWarnings({"serial", "unchecked"}) -public abstract class BaseWxRobKeyword> extends Model implements IBean { - - public M setId(Long id) { - set("id", id); - return (M)this; - } - - public Long getId() { - return getLong("id"); - } - - public M setUniqueKey(String uniqueKey) { - set("unique_key", uniqueKey); - return (M)this; - } - - public String getUniqueKey() { - return getStr("unique_key"); - } - - public M setKeyData(String keyData) { - set("key_data", keyData); - return (M)this; - } - - public String getKeyData() { - return getStr("key_data"); - } - - public M setValueData(String valueData) { - set("value_data", valueData); - return (M)this; - } - - public String getValueData() { - return getStr("value_data"); - } - - public M setTypeData(String typeData) { - set("type_data", typeData); - return (M)this; - } - - public String getTypeData() { - return getStr("type_data"); - } - - public M setNickName(String nickName) { - set("nick_name", nickName); - return (M)this; - } - - public String getNickName() { - return getStr("nick_name"); - } - - public M setToGroup(Boolean toGroup) { - set("to_group", toGroup); - return (M)this; - } - - public Boolean getToGroup() { - return get("to_group"); - } - - public M setEnable(Boolean enable) { - set("enable", enable); - return (M)this; - } - - public Boolean getEnable() { - return get("enable"); - } - - public M setCreateTime(java.util.Date createTime) { - set("create_time", createTime); - return (M)this; - } - - public java.util.Date getCreateTime() { - return get("create_time"); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobRelation.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobRelation.java deleted file mode 100644 index 2c0186b2..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/model/base/BaseWxRobRelation.java +++ /dev/null @@ -1,84 +0,0 @@ -package org.ruoyi.common.wechat.web.model.base; - -import com.jfinal.plugin.activerecord.IBean; -import com.jfinal.plugin.activerecord.Model; - -/** - * Generated by JFinal, do not modify this file. - */ -@SuppressWarnings({"serial", "unchecked"}) -public abstract class BaseWxRobRelation> extends Model implements IBean { - - public M setId(Long id) { - set("id", id); - return (M)this; - } - - public Long getId() { - return getLong("id"); - } - - public M setOutKey(String outKey) { - set("out_key", outKey); - return (M)this; - } - - public String getOutKey() { - return getStr("out_key"); - } - - public M setUniqueKey(String uniqueKey) { - set("unique_key", uniqueKey); - return (M)this; - } - - public String getUniqueKey() { - return getStr("unique_key"); - } - - public M setNickName(String nickName) { - set("nick_name", nickName); - return (M)this; - } - - public String getNickName() { - return getStr("nick_name"); - } - - public M setToGroup(Boolean toGroup) { - set("to_group", toGroup); - return (M)this; - } - - public Boolean getToGroup() { - return get("to_group"); - } - - public M setEnable(Boolean enable) { - set("enable", enable); - return (M)this; - } - - public Boolean getEnable() { - return get("enable"); - } - - public M setWhiteList(String whiteList) { - set("white_list", whiteList); - return (M)this; - } - - public String getWhiteList() { - return getStr("white_list"); - } - - public M setCreateTime(java.util.Date createTime) { - set("create_time", createTime); - return (M)this; - } - - public java.util.Date getCreateTime() { - return get("create_time"); - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/Base64Util.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/Base64Util.java deleted file mode 100644 index 09dcb9cb..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/Base64Util.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.ruoyi.common.wechat.web.utils; - -import org.apache.commons.codec.binary.Base64; - -/** - * @author WesleyOne - * @create 2018/12/19 - */ -public class Base64Util { - - /** - * 编码 - * @param source - * @return - */ - public static String encode(String source){ - byte[] result = Base64.encodeBase64(source.getBytes()); - return result.toString(); - } - - /** - * 解码 - * @param source - * @return - */ - public static String decode(String source){ - byte[] result = Base64.decodeBase64(source); - return result.toString(); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/IpUtil.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/IpUtil.java deleted file mode 100644 index b9b3073f..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/IpUtil.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.ruoyi.common.wechat.web.utils; - - -import org.apache.commons.lang3.StringUtils; - -import javax.servlet.http.HttpServletRequest; - - -/** - * @author WesleyOne - * @create 2018/11/5 - */ -public class IpUtil { - - /** - * 获取用户真实IP(在安防或多层代理场景下) - * @param request - * @return - */ - public static String getRealIp(HttpServletRequest request) { - String ip = request.getHeader("x-forwarded-for"); - if(StringUtils.isNotEmpty(ip) && !"unKnown".equalsIgnoreCase(ip)){ - //多次反向代理后会有多个ip值,第一个ip才是真实ip - int index = ip.indexOf(","); - if(index != -1){ - return ip.substring(0,index); - } - } - ip = request.getHeader("X-Real-IP"); - if(StringUtils.isNotEmpty(ip) && !"unKnown".equalsIgnoreCase(ip)){ - return ip; - } - return request.getRemoteAddr(); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/LRUCache.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/LRUCache.java deleted file mode 100644 index 80fc03f7..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/LRUCache.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.ruoyi.common.wechat.web.utils; - -import java.util.LinkedHashMap; - -/** - * @author WesleyOne - * @create 2018/12/12 - */ -public class LRUCache extends LinkedHashMap { - - private static final long serialVersionUID = 1L; - protected int maxElements; - - public LRUCache(int maxSize) - { - super(maxSize * 4 / 3 , 0.75F, true); - maxElements = maxSize; - } - - @Override - protected boolean removeEldestEntry(java.util.Map.Entry eldest) - { - return size() > maxElements; - } - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/MD5Util.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/MD5Util.java deleted file mode 100644 index 1748c30a..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/MD5Util.java +++ /dev/null @@ -1,68 +0,0 @@ -package org.ruoyi.common.wechat.web.utils; - - - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; - -public class MD5Util { - - - private static String byteArrayToHexString(byte b[]) { - StringBuffer resultSb = new StringBuffer(); - for (int i = 0; i < b.length; i++){ - resultSb.append(byteToHexString(b[i])); - } - - return resultSb.toString(); - } - - private static String byteToHexString(byte b) { - int n = b; - if (n < 0){ - n += 256; - } - int d1 = n / 16; - int d2 = n % 16; - return hexDigits[d1] + hexDigits[d2]; - } - - public static String MD5Encode(String origin, String charsetname) { - String resultString = null; - try { - resultString = new String(origin); - MessageDigest md = MessageDigest.getInstance("MD5"); - if (charsetname == null || "".equals(charsetname)){ - resultString = byteArrayToHexString(md.digest(resultString.getBytes())); - } else{ - resultString = byteArrayToHexString(md.digest(resultString.getBytes(charsetname))); - } - } catch (Exception exception) { - } - return resultString; - } - - private static final String hexDigits[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" }; - - public static String MD5Encrypt(String str) { - String s = str; - if (s == null) { - return null; - } - String value = null; - MessageDigest md5 = null; - try { - md5 = MessageDigest.getInstance("MD5"); - } catch (NoSuchAlgorithmException ex) { - } - //sun.misc.BASE64Encoder baseEncoder = new sun.misc.BASE64Encoder(); - - return value; - } - - public static void main(String[] args) { - System.out.println(MD5Encrypt("wxwobot")); - } - - -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/UUIDShortUtil.java b/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/UUIDShortUtil.java deleted file mode 100644 index ae4e476c..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/java/org/ruoyi/common/wechat/web/utils/UUIDShortUtil.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.ruoyi.common.wechat.web.utils; - -import java.util.UUID; - -/** - * - * @author internet - * @create 2018/12/17 - */ -public class UUIDShortUtil { - - private static String[] chars = new String[] { "a", "b", "c", "d", "e", "f", - "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", - "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", - "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", - "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", - "W", "X", "Y", "Z" }; - - /** - * 短8位 - * @return - */ - public static String generateShortUuid() { - StringBuffer shortBuffer = new StringBuffer(); - String uuid = UUID.randomUUID().toString().replace("-", ""); - for (int i = 0; i < 8; i++) { - String str = uuid.substring(i * 4, i * 4 + 4); - int x = Integer.parseInt(str, 16); - shortBuffer.append(chars[x % 0x3E]); - } - return shortBuffer.toString(); - } -} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/resources/appConfig.properties b/ruoyi-common/ruoyi-common-wechat/src/main/resources/appConfig.properties deleted file mode 100644 index 5ccffeaa..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/resources/appConfig.properties +++ /dev/null @@ -1,7 +0,0 @@ -jdbcUrl = ${pro.jdbc.agent.url} -user = ${pro.jdbc.agent.username} -password = ${pro.jdbc.agent.password} -devMode = ${pro.devMode} -hotReloadDir = ${pro.hotreload.realpath} -download_path = ${pro.download.path} -log_path = ${log.file.path} diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/resources/passport.properties b/ruoyi-common/ruoyi-common-wechat/src/main/resources/passport.properties deleted file mode 100644 index 0e375b7f..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/resources/passport.properties +++ /dev/null @@ -1 +0,0 @@ -wxwobot = C9ah2BEPliU2EzPV/VAn9Q== \ No newline at end of file diff --git a/ruoyi-common/ruoyi-common-wechat/src/main/resources/undertow.txt b/ruoyi-common/ruoyi-common-wechat/src/main/resources/undertow.txt deleted file mode 100644 index cdcd10ba..00000000 --- a/ruoyi-common/ruoyi-common-wechat/src/main/resources/undertow.txt +++ /dev/null @@ -1,51 +0,0 @@ -# 配置 undertow - -undertow.devMode=${pro.undertow.devMode} -undertow.host=${pro.domain.host} -undertow.port=${pro.domain.port} -undertow.contextPath=/ - -undertow.resourcePath=webapp, io.wxwobot.admin/src/main/webapp, src/main/webapp - -# 开启 gzip 压缩 -undertow.gzip.enable=true -# 配置压缩级别,默认值 -1。 可配置 1 到 9。 1 拥有最快压缩速度,9 拥有最高压缩率 -undertow.gzip.level=-1 -# 触发压缩的最小内容长度 -undertow.gzip.minLength=1024 - -# session 过期时间,注意单位是秒 -undertow.session.timeout=1800 -# 支持 session 热加载,避免依赖于 session 的登录型项目反复登录,默认值为 true。仅用于 devMode,生产环境无影响 -undertow.session.hotSwap=true - -# 下面两行命令生成密钥库 -# keytool -genkeypair -validity 3650 -alias club -keyalg RSA -keystore club.jks -# keytool -importkeystore -srckeystore club.jks -destkeystore club.pfx -deststoretype PKCS12 -# 生成过程中提示输入 "名字与姓氏" 时输入 localhost。生产环境从阿里云下载 tomcat 类型的密钥库 -# -# 更详细的 https/ssl 配置见 jfinal 官方文档 :http://www.jfinal.com/doc/1-4 -# -# 是否开启 ssl -undertow.ssl.enable=false -# ssl 监听端口号,部署环境设置为 443 -undertow.ssl.port=443 -# 密钥库类型,建议使用 PKCS12 -undertow.ssl.keyStoreType=PKCS12 -# 密钥库文件 -undertow.ssl.keyStore=demo.pfx -# 密钥库密码 -undertow.ssl.keyStorePassword=111111 - - -# ssl 开启时,是否开启 http2。检测该配置是否生效在 chrome 地址栏中输入: chrome://net-internals/#http2 -undertow.http2.enable=true - - -# ssl 开启时,http 请求是否重定向到 https -# undertow.http.toHttps=false -# ssl 开启时,是否关闭 http -# undertow.http.disable=false - - - diff --git a/ruoyi-modules-api/pom.xml b/ruoyi-modules-api/pom.xml index fe4d2c2f..a3f0ef00 100644 --- a/ruoyi-modules-api/pom.xml +++ b/ruoyi-modules-api/pom.xml @@ -4,19 +4,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.ruoyi ruoyi-ai - 1.0.0 + org.ruoyi + ${revision} + ../pom.xml ruoyi-modules-api pom + ruoyi-chat-api - ruoyi-device-api ruoyi-knowledge-api ruoyi-system-api - ruoyi-weixin-api @@ -74,6 +74,11 @@ ruoyi-common-oss + + mysql + mysql-connector-java + + diff --git a/ruoyi-modules-api/ruoyi-chat-api/pom.xml b/ruoyi-modules-api/ruoyi-chat-api/pom.xml index bca2ede3..633977bc 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/pom.xml +++ b/ruoyi-modules-api/ruoyi-chat-api/pom.xml @@ -6,7 +6,8 @@ org.ruoyi ruoyi-modules-api - 1.0.0 + ${revision} + ../pom.xml ruoyi-chat-api @@ -17,7 +18,7 @@ UTF-8 - + org.ruoyi @@ -25,5 +26,4 @@ - diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatMessageBo.java b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatMessageBo.java index 43791eec..1dfa05f3 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatMessageBo.java +++ b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatMessageBo.java @@ -2,12 +2,13 @@ package org.ruoyi.domain.bo; import org.ruoyi.common.core.validate.AddGroup; import org.ruoyi.common.core.validate.EditGroup; -import org.ruoyi.system.domain.ChatMessage; import org.ruoyi.common.mybatis.core.domain.BaseEntity; import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; import lombok.EqualsAndHashCode; import jakarta.validation.constraints.*; +import org.ruoyi.domain.ChatMessage; + import java.math.BigDecimal; /** @@ -47,17 +48,15 @@ public class ChatMessageBo extends BaseEntity { /** * 扣除金额 - - */ @NotNull(message = "扣除金额不能为空", groups = { AddGroup.class, EditGroup.class }) - private BigDecimal deductCost; + private Double deductCost; /** * 累计 Tokens */ @NotNull(message = "累计 Tokens不能为空", groups = { AddGroup.class, EditGroup.class }) - private Long totalTokens; + private Integer totalTokens; /** * 模型名称 diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/mapper/ChatConfigMapper.java b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/mapper/ChatConfigMapper.java deleted file mode 100644 index c9f85835..00000000 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/mapper/ChatConfigMapper.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.ruoyi.mapper; - - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; -import org.ruoyi.domain.ChatConfig; -import org.ruoyi.domain.vo.ChatConfigVo; - -/** - * 配置信息Mapper接口 - * - * @author ageerle - * @date 2025-04-08 - */ -public interface ChatConfigMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/IChatConfigService.java b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/IChatConfigService.java index e0f6f8a8..cb13e5c8 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/IChatConfigService.java +++ b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/IChatConfigService.java @@ -3,8 +3,6 @@ package org.ruoyi.service; import org.ruoyi.common.mybatis.core.page.TableDataInfo; import org.ruoyi.common.mybatis.core.page.PageQuery; -import org.ruoyi.domain.bo.ChatConfigBo; -import org.ruoyi.domain.vo.ChatConfigVo; import java.util.Collection; import java.util.List; diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/impl/ChatConfigServiceImpl.java b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/impl/ChatConfigServiceImpl.java index 3d62159f..1e753aa3 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/impl/ChatConfigServiceImpl.java +++ b/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/service/impl/ChatConfigServiceImpl.java @@ -8,10 +8,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import lombok.RequiredArgsConstructor; -import org.ruoyi.domain.ChatConfig; -import org.ruoyi.domain.bo.ChatConfigBo; -import org.ruoyi.domain.vo.ChatConfigVo; -import org.ruoyi.mapper.ChatConfigMapper; import org.ruoyi.service.IChatConfigService; import org.springframework.stereotype.Service; diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/resources/mapper/ChatConfigMapper.xml b/ruoyi-modules-api/ruoyi-chat-api/src/main/resources/mapper/ChatConfigMapper.xml deleted file mode 100644 index 509a739a..00000000 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/resources/mapper/ChatConfigMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-device-api/pom.xml b/ruoyi-modules-api/ruoyi-device-api/pom.xml deleted file mode 100644 index 7a9cb1a6..00000000 --- a/ruoyi-modules-api/ruoyi-device-api/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - 4.0.0 - - org.ruoyi - ruoyi-ai - 1.0.0 - ../../pom.xml - - - ruoyi-device-api - - - 17 - 17 - UTF-8 - - - diff --git a/ruoyi-modules-api/ruoyi-knowledge-api/pom.xml b/ruoyi-modules-api/ruoyi-knowledge-api/pom.xml index cf1e0311..27e20736 100644 --- a/ruoyi-modules-api/ruoyi-knowledge-api/pom.xml +++ b/ruoyi-modules-api/ruoyi-knowledge-api/pom.xml @@ -6,7 +6,8 @@ org.ruoyi ruoyi-modules-api - 1.0.0 + ${revision} + ../pom.xml ruoyi-knowledge-api diff --git a/ruoyi-modules-api/ruoyi-system-api/pom.xml b/ruoyi-modules-api/ruoyi-system-api/pom.xml index 1b458738..69fe0cc6 100644 --- a/ruoyi-modules-api/ruoyi-system-api/pom.xml +++ b/ruoyi-modules-api/ruoyi-system-api/pom.xml @@ -6,7 +6,8 @@ org.ruoyi ruoyi-modules-api - 1.0.0 + ${revision} + ../pom.xml ruoyi-system-api diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/ChatConfig.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/ChatConfig.java similarity index 81% rename from ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/ChatConfig.java rename to ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/ChatConfig.java index 366d9a89..96e31e04 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/ChatConfig.java +++ b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/ChatConfig.java @@ -1,7 +1,10 @@ -package org.ruoyi.domain; +package org.ruoyi.system.domain; -import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.Version; import lombok.Data; import lombok.EqualsAndHashCode; import org.ruoyi.common.mybatis.core.domain.BaseEntity; diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatConfigBo.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/bo/ChatConfigBo.java similarity index 92% rename from ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatConfigBo.java rename to ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/bo/ChatConfigBo.java index ca1b0384..0f407b0e 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/bo/ChatConfigBo.java +++ b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/bo/ChatConfigBo.java @@ -1,13 +1,14 @@ -package org.ruoyi.domain.bo; +package org.ruoyi.system.domain.bo; -import org.ruoyi.common.core.validate.AddGroup; -import org.ruoyi.common.core.validate.EditGroup; -import org.ruoyi.system.domain.ChatConfig; -import org.ruoyi.common.mybatis.core.domain.BaseEntity; import io.github.linpeilie.annotations.AutoMapper; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; import lombok.Data; import lombok.EqualsAndHashCode; -import jakarta.validation.constraints.*; +import org.ruoyi.common.core.validate.AddGroup; +import org.ruoyi.common.core.validate.EditGroup; +import org.ruoyi.common.mybatis.core.domain.BaseEntity; +import org.ruoyi.system.domain.ChatConfig; /** * 配置信息业务对象 chat_config diff --git a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/vo/ChatConfigVo.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/vo/ChatConfigVo.java similarity index 97% rename from ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/vo/ChatConfigVo.java rename to ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/vo/ChatConfigVo.java index 5ba209f7..148d2dc8 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/src/main/java/org/ruoyi/domain/vo/ChatConfigVo.java +++ b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/vo/ChatConfigVo.java @@ -1,18 +1,15 @@ -package org.ruoyi.domain.vo; +package org.ruoyi.system.domain.vo; -import org.ruoyi.system.domain.ChatConfig; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; - import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; +import org.ruoyi.system.domain.ChatConfig; import java.io.Serial; import java.io.Serializable; - - /** * 配置信息视图对象 chat_config * diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/vo/SysUserModelVo.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/vo/SysUserModelVo.java deleted file mode 100644 index 8b134b6b..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/domain/vo/SysUserModelVo.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.ruoyi.system.domain.vo; - -import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; -import com.alibaba.excel.annotation.ExcelProperty; -import io.github.linpeilie.annotations.AutoMapper; -import lombok.Data; - -import java.io.Serial; -import java.io.Serializable; - - -/** - * 【请填写功能名称】视图对象 sys_user_model - * - * @author Lion Li - * @date 2024-08-03 - */ -@Data -@ExcelIgnoreUnannotated -@AutoMapper(target = SysUserModel.class) -public class SysUserModelVo implements Serializable { - - @Serial - private static final long serialVersionUID = 1L; - - /** - * id - */ - @ExcelProperty(value = "id") - private Long id; - - /** - * 模型id - */ - @ExcelProperty(value = "模型id") - private Long mid; - - /** - * 用户组id - */ - @ExcelProperty(value = "用户组id") - private Long gid; - - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatAppStoreMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatAppStoreMapper.java deleted file mode 100644 index a47df631..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatAppStoreMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 应用市场Mapper接口 - * - * @author Lion Li - * @date 2024-03-19 - */ -public interface ChatAppStoreMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatConfigMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatConfigMapper.java index 5f767814..affebf55 100644 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatConfigMapper.java +++ b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatConfigMapper.java @@ -1,15 +1,16 @@ package org.ruoyi.system.mapper; + import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; +import org.ruoyi.system.domain.ChatConfig; +import org.ruoyi.system.domain.vo.ChatConfigVo; /** - * 对话配置信息 -Mapper接口 + * 配置信息Mapper接口 * - * @author Lion Li - * @date 2024-04-13 + * @author ageerle + * @date 2025-04-08 */ public interface ChatConfigMapper extends BaseMapperPlus { - } diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatGptsMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatGptsMapper.java deleted file mode 100644 index f1f2f739..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatGptsMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * gpts管理Mapper接口 - * - * @author Lion Li - * @date 2024-07-09 - */ -public interface ChatGptsMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatMessageMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatMessageMapper.java deleted file mode 100644 index 7c4e7476..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatMessageMapper.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - - -/** - * 聊天消息Mapper接口 - * - * @author Lion Li - * @date 2023-11-26 - */ -public interface ChatMessageMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatPluginMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatPluginMapper.java deleted file mode 100644 index 29fb348e..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatPluginMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 插件管理Mapper接口 - * - * @author ageerle - * @date 2025-03-30 - */ -public interface ChatPluginMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatTokenMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatTokenMapper.java deleted file mode 100644 index aeea71e7..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatTokenMapper.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - - -/** - * 聊天消息Mapper接口 - * - * @author Lion Li - * @date 2023-11-26 - */ -public interface ChatTokenMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatVisitorUsageMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatVisitorUsageMapper.java deleted file mode 100644 index 56424e66..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatVisitorUsageMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 访客管理Mapper接口 - * - * @author Lion Li - * @date 2024-07-14 - */ -public interface ChatVisitorUsageMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatVoucherMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatVoucherMapper.java deleted file mode 100644 index d54e7054..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/ChatVoucherMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 用户兑换记录Mapper接口 - * - * @author Lion Li - * @date 2024-05-03 - */ -public interface ChatVoucherMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/CoverMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/CoverMapper.java deleted file mode 100644 index 08cb737d..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/CoverMapper.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; -import org.ruoyi.system.domain.vo.cover.CoverVo; - -/** - * 翻唱Mapper接口 - * - * @author NSL - * @since 2024-12-25 - */ -public interface CoverMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/CoverPromptAudioMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/CoverPromptAudioMapper.java deleted file mode 100644 index 6abffd98..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/CoverPromptAudioMapper.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; -import org.ruoyi.system.domain.vo.cover.CoverPromptAudioVo; - -import java.util.List; - -/** - * 翻唱用户参考音频Mapper接口 - * - * @author NSL - * @since 2024-12-25 - */ -public interface CoverPromptAudioMapper extends BaseMapperPlus { - - /** - * 获取最近一次翻唱记录 - * @param userId 用户id - * @return 翻唱记录 - */ - List selectLatestVoByUserId(Long userId); -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/PaymentOrdersMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/PaymentOrdersMapper.java deleted file mode 100644 index e854cfc3..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/PaymentOrdersMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 支付订单Mapper接口 - * - * @author Lion Li - * @date 2024-04-16 - */ -public interface PaymentOrdersMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysModelMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysModelMapper.java deleted file mode 100644 index 1b436f81..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysModelMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 系统模型Mapper接口 - * - * @author Lion Li - * @date 2024-04-04 - */ -public interface SysModelMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysPackagePlanMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysPackagePlanMapper.java deleted file mode 100644 index 3a6718aa..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysPackagePlanMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 套餐管理Mapper接口 - * - * @author Lion Li - * @date 2024-05-05 - */ -public interface SysPackagePlanMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysUserGroupMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysUserGroupMapper.java deleted file mode 100644 index 8cf07137..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysUserGroupMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 【请填写功能名称】Mapper接口 - * - * @author Lion Li - * @date 2024-08-03 - */ -public interface SysUserGroupMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysUserModelMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysUserModelMapper.java deleted file mode 100644 index e62693e7..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/SysUserModelMapper.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; -import org.ruoyi.system.domain.vo.SysUserModelVo; - -/** - * 【请填写功能名称】Mapper接口 - * - * @author Lion Li - * @date 2024-08-03 - */ -public interface SysUserModelMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobConfigMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobConfigMapper.java deleted file mode 100644 index 36ad76ea..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobConfigMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 【请填写功能名称】Mapper接口 - * - * @author Lion Li - * @date 2024-05-01 - */ -public interface WxRobConfigMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobKeywordMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobKeywordMapper.java deleted file mode 100644 index a062dc27..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobKeywordMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 【请填写功能名称】Mapper接口 - * - * @author Lion Li - * @date 2024-05-01 - */ -public interface WxRobKeywordMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobRelationMapper.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobRelationMapper.java deleted file mode 100644 index df7d19fa..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/mapper/WxRobRelationMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.ruoyi.system.mapper; - -import org.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; - -/** - * 【请填写功能名称】Mapper接口 - * - * @author Lion Li - * @date 2024-05-01 - */ -public interface WxRobRelationMapper extends BaseMapperPlus { - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/impl/ChatConfigServiceImpl.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/impl/ChatConfigServiceImpl.java new file mode 100644 index 00000000..582ce881 --- /dev/null +++ b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/impl/ChatConfigServiceImpl.java @@ -0,0 +1,51 @@ +package org.ruoyi.system.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import lombok.RequiredArgsConstructor; +import org.ruoyi.common.core.service.ConfigService; +import org.ruoyi.common.core.utils.StringUtils; +import org.ruoyi.system.domain.ChatConfig; +import org.ruoyi.system.domain.bo.ChatConfigBo; +import org.ruoyi.system.domain.vo.ChatConfigVo; +import org.ruoyi.system.mapper.ChatConfigMapper; +import org.springframework.stereotype.Service; + + +/** + * 配置信息Service业务层处理 + * + * @author ageerle + * @date 2025-04-08 + */ +@RequiredArgsConstructor +@Service +public class ChatConfigServiceImpl implements ConfigService { + + private final ChatConfigMapper baseMapper; + + /** + * 根据配置类型和配置key获取值 + * + * @param category 分类 + * @param configKey key名称 + * @return + */ + @Override + public String getConfigValue(String category,String configKey) { + ChatConfigBo bo = new ChatConfigBo(); + bo.setCategory(category); + bo.setConfigName(configKey); + LambdaQueryWrapper lqw = buildQueryWrapper(bo); + ChatConfigVo chatConfigVo = baseMapper.selectVoOne(lqw); + return chatConfigVo.getConfigValue(); + } + + private LambdaQueryWrapper buildQueryWrapper(ChatConfigBo bo) { + LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); + lqw.eq(StringUtils.isNotBlank(bo.getCategory()), ChatConfig::getCategory, bo.getCategory()); + lqw.eq(StringUtils.isNotBlank(bo.getConfigName()), ChatConfig::getConfigName, bo.getConfigName()); + lqw.eq(StringUtils.isNotBlank(bo.getConfigValue()), ChatConfig::getConfigValue, bo.getConfigValue()); + return lqw; + } +} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/impl/SysUserGroupServiceImpl.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/impl/SysUserGroupServiceImpl.java deleted file mode 100644 index c3a90947..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/impl/SysUserGroupServiceImpl.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.ruoyi.system.service.impl; - -import org.ruoyi.common.core.utils.MapstructUtils; -import org.ruoyi.common.core.utils.StringUtils; -import org.ruoyi.common.mybatis.core.page.TableDataInfo; -import org.ruoyi.common.mybatis.core.page.PageQuery; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.toolkit.Wrappers; -import lombok.RequiredArgsConstructor; -import org.springframework.stereotype.Service; -import org.ruoyi.system.mapper.SysUserGroupMapper; - -import java.util.List; -import java.util.Map; -import java.util.Collection; - -/** - * 【请填写功能名称】Service业务层处理 - * - * @author Lion Li - * @date 2024-08-03 - */ -@RequiredArgsConstructor -@Service -public class SysUserGroupServiceImpl implements ISysUserGroupService { - - private final SysUserGroupMapper baseMapper; - - /** - * 查询【请填写功能名称】 - */ - @Override - public SysUserGroupVo queryById(Long id){ - return baseMapper.selectVoById(id); - } - - /** - * 查询【请填写功能名称】列表 - */ - @Override - public TableDataInfo queryPageList(SysUserGroupBo bo, PageQuery pageQuery) { - LambdaQueryWrapper lqw = buildQueryWrapper(bo); - Page result = baseMapper.selectVoPage(pageQuery.build(), lqw); - return TableDataInfo.build(result); - } - - /** - * 查询【请填写功能名称】列表 - */ - @Override - public List queryList(SysUserGroupBo bo) { - LambdaQueryWrapper lqw = buildQueryWrapper(bo); - return baseMapper.selectVoList(lqw); - } - - private LambdaQueryWrapper buildQueryWrapper(SysUserGroupBo bo) { - Map params = bo.getParams(); - LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); - lqw.like(StringUtils.isNotBlank(bo.getGroupName()), SysUserGroup::getGroupName, bo.getGroupName()); - lqw.eq(StringUtils.isNotBlank(bo.getUpdateIp()), SysUserGroup::getUpdateIp, bo.getUpdateIp()); - return lqw; - } - - /** - * 新增【请填写功能名称】 - */ - @Override - public Boolean insertByBo(SysUserGroupBo bo) { - SysUserGroup add = MapstructUtils.convert(bo, SysUserGroup.class); - validEntityBeforeSave(add); - boolean flag = baseMapper.insert(add) > 0; - if (flag) { - bo.setId(add.getId()); - } - return flag; - } - - /** - * 修改【请填写功能名称】 - */ - @Override - public Boolean updateByBo(SysUserGroupBo bo) { - SysUserGroup update = MapstructUtils.convert(bo, SysUserGroup.class); - validEntityBeforeSave(update); - return baseMapper.updateById(update) > 0; - } - - /** - * 保存前的数据校验 - */ - private void validEntityBeforeSave(SysUserGroup entity){ - //TODO 做一些数据校验,如唯一约束 - } - - /** - * 批量删除【请填写功能名称】 - */ - @Override - public Boolean deleteWithValidByIds(Collection ids, Boolean isValid) { - if(isValid){ - //TODO 做一些业务上的校验,判断是否需要校验 - } - return baseMapper.deleteBatchIds(ids) > 0; - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/AesUtils.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/AesUtils.java deleted file mode 100644 index 09666306..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/AesUtils.java +++ /dev/null @@ -1,62 +0,0 @@ -package org.ruoyi.system.util; - -import lombok.SneakyThrows; -import org.springframework.stereotype.Component; - -import javax.crypto.Cipher; -import javax.crypto.spec.SecretKeySpec; -import java.util.Base64; - -/** - * Java 使用 AES 加密算法进行加密解密 - */ -@Component -public class AesUtils { - - /** - * 秘钥(需要使用长度为16、24或32的字节数组作为AES算法的密钥,否则就会遇到java.security.InvalidKeyException异常) - */ - // @Value("${ase.util.secret}") - public String key; - - /** - * AES算法加密 - * - * @Param:text原文 - * @Param:key密钥 - */ - - @SneakyThrows - public String aesEncrypt(String text) { - // 创建AES加密算法实例(根据传入指定的秘钥进行加密) - Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); - SecretKeySpec keySpec = new SecretKeySpec(key.getBytes(), "AES"); - // 初始化为加密模式,并将密钥注入到算法中 - cipher.init(Cipher.ENCRYPT_MODE, keySpec); - // 将传入的文本加密 - byte[] encrypted = cipher.doFinal(text.getBytes()); - //生成密文 - // 将密文进行Base64编码,方便传输 - return Base64.getEncoder().encodeToString(encrypted); - } - - /** - * AES算法解密 - * - * @Param:base64Encrypted密文 - * @Param:key密钥 - */ - public String aesDecrypt(String base64Encrypted) throws Exception { - // 创建AES解密算法实例 - Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); - SecretKeySpec keySpec = new SecretKeySpec(key.getBytes(), "AES"); - - // 初始化为解密模式,并将密钥注入到算法中 - cipher.init(Cipher.DECRYPT_MODE, keySpec); - // 将Base64编码的密文解码 - byte[] encrypted = Base64.getDecoder().decode(base64Encrypted); - // 解密 - byte[] decrypted = cipher.doFinal(encrypted); - return new String(decrypted); - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/AudioOkHttpUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/AudioOkHttpUtil.java deleted file mode 100644 index d1328c7d..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/AudioOkHttpUtil.java +++ /dev/null @@ -1,67 +0,0 @@ -package org.ruoyi.system.util; - -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import okhttp3.*; -import org.ruoyi.common.core.service.ConfigService; -import org.springframework.stereotype.Component; - -import java.io.IOException; -import java.util.concurrent.TimeUnit; - -/** - * @author WangLe - */ -@RequiredArgsConstructor -@Component -@Slf4j -public class AudioOkHttpUtil { - - private final ConfigService configService; - - private static final String AUTHORIZATION = "Authorization"; - - private final OkHttpClient client = new OkHttpClient.Builder() - .connectTimeout(300, TimeUnit.SECONDS) - .writeTimeout(300, TimeUnit.SECONDS) - .readTimeout(300, TimeUnit.SECONDS) - .build(); - - public String executeRequest(Request request) { - try (Response response = client.newCall(request).execute()) { - if (!response.isSuccessful()) { - throw new IOException("Unexpected code " + response); - } - return response.body() != null ? response.body().string() : null; - } catch (IOException e) { - // 这里应根据实际情况使用适当的日志记录方式 - log.error("请求失败: {}",e.getMessage()); - return null; - } - } - - public Request createPostRequest(String url, String json) { - MediaType JSON = MediaType.get("application/json; charset=utf-8"); - RequestBody body = RequestBody.create(json, JSON); - return new Request.Builder() - .url(getKey("apiHost") + url) - .post(body) - .header("Content-Type", "application/json") - .header(AUTHORIZATION, "Bearer "+getKey("apiKey")) - .build(); - } - - - public Request createGetRequest(String url) { - return new Request.Builder() - .url(getKey("apiHost") + url) - .header(AUTHORIZATION, "Bearer "+getKey("apiKey")) - .build(); - } - - - public String getKey(String key) { - return configService.getConfigValue("audio", key); - } -} - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/DesensitizationUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/DesensitizationUtil.java deleted file mode 100644 index bbcb1aad..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/DesensitizationUtil.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.ruoyi.system.util; - - -public class DesensitizationUtil { - public static String maskData(String data) { - if (data == null || data.length() <= 4) { - return data; - } - int start = 2; - int end = data.length() - 2; - StringBuilder masked = new StringBuilder(); - masked.append(data, 0, start); - for (int i = start; i < end; i++) { - masked.append('*'); - } - masked.append(data.substring(end)); - return masked.toString(); - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/HttpUtils.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/HttpUtils.java deleted file mode 100644 index 24ddccb6..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/HttpUtils.java +++ /dev/null @@ -1,634 +0,0 @@ -package org.ruoyi.system.util; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.io.IOUtils; -import org.apache.http.Header; -import org.apache.http.HttpEntity; -import org.apache.http.HttpEntityEnclosingRequest; -import org.apache.http.client.HttpClient; -import org.apache.http.client.config.RequestConfig; -import org.apache.http.client.methods.*; -import org.apache.http.config.Registry; -import org.apache.http.config.RegistryBuilder; -import org.apache.http.conn.socket.ConnectionSocketFactory; -import org.apache.http.conn.socket.PlainConnectionSocketFactory; -import org.apache.http.conn.ssl.SSLConnectionSocketFactory; -import org.apache.http.entity.*; -import org.apache.http.impl.client.HttpClients; -import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; - -import javax.net.ssl.SSLContext; -import javax.net.ssl.X509TrustManager; -import java.io.*; -import java.net.HttpURLConnection; -import java.net.SocketException; -import java.net.URL; -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.security.SecureRandom; -import java.security.cert.X509Certificate; -import java.util.*; -import java.util.concurrent.*; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.function.Consumer; -import java.util.function.Function; - -/** - * HttpUtils - * - * @author NSL - * @since 2024-12-30 - */ -public class HttpUtils { - - public static final String CHARSET_DEFAULT = "UTF-8"; - public static final String CONTENT_TYPE = "Content-Type"; - public static final String CONTENT_TYPE_JSON = "application/json"; - public static final String CONTENT_TYPE_FORM_DATA = "application/x-www-form-urlencoded"; - private static final PoolingHttpClientConnectionManager CONNECTION_MANAGER; - private static final int MAX_CONNECT_TIMEOUT = 8000; - private static final int MAX_SOCKET_TIMEOUT = 90000; - - static { - CONNECTION_MANAGER = new PoolingHttpClientConnectionManager(getDefaultRegistry()); - CONNECTION_MANAGER.setMaxTotal(500); - CONNECTION_MANAGER.setDefaultMaxPerRoute(50); - CONNECTION_MANAGER.setValidateAfterInactivity(2000); - } - - public static HttpResponse get(String url) { - return get(url, null); - } - - public static HttpResponse get(String url, Map params) { - String urlLinks = getUrlLinks(params); - if (urlLinks != null) { - if (url.contains("?")) { - url = url + "&" + urlLinks; - } else { - url = url + "?" + urlLinks; - } - } - return request(HttpRequest.build(url, "GET")); - } - - public static void download(String url, File destFile) throws Exception { - HttpRequest request = HttpRequest.build(url, "GET"); - request.setResponseHandler(entity -> { - try { - if (!destFile.getParentFile().exists()) { - destFile.getParentFile().mkdirs(); - } - try (FileOutputStream fs = new FileOutputStream(destFile)) { - entity.writeTo(fs); - } - return destFile; - } catch (Exception e) { - return e; - } - }); - HttpResponse response = request(request); - if (response.getResponse() instanceof Exception) { - throw (Exception) response.getResponse(); - } - } - - public static HttpResponse postJson(String url, String bodyJson) { - HttpRequest request = HttpRequest.build(url, "POST").setBody(bodyJson); - if (request.getHeaders() == null) { - request.setHeaders(Collections.singletonMap(CONTENT_TYPE, CONTENT_TYPE_JSON)); - } else { - request.getHeaders().put(CONTENT_TYPE, CONTENT_TYPE_JSON); - } - return request(request); - } - - public static HttpResponse postForm(String url, Map params) { - String urlLinks = getUrlLinks(params); - HttpRequest request = HttpRequest.build(url, "POST").setBody(urlLinks != null ? urlLinks : ""); - if (request.getHeaders() == null) { - request.setHeaders(Collections.singletonMap(CONTENT_TYPE, CONTENT_TYPE_FORM_DATA)); - } else { - request.getHeaders().put(CONTENT_TYPE, CONTENT_TYPE_FORM_DATA); - } - return request(request); - } - - public static HttpResponse requestWithEventStream(ExecutorService executorService, long firstReadTimeout, HttpRequest request, Consumer dataConsumer) throws ExecutionException, InterruptedException, TimeoutException { - return requestWithEventStream(executorService, firstReadTimeout, request, dataConsumer, null); - } - - public static HttpResponse requestWithEventStream(ExecutorService executorService, long firstReadTimeout, HttpRequest request, Consumer dataConsumer, Consumer> futureConsumer) throws ExecutionException, InterruptedException, TimeoutException { - // status: 0 start 1 run 2 timeout - AtomicInteger status = new AtomicInteger(0); - Future submit = executorService.submit(() -> { - if (request.getMaxSocketTimeout() == null) { - request.setMaxSocketTimeout(30_000); - } - request.setResponseHandler(entity -> { - StringBuilder sb = new StringBuilder(); - try { - try (InputStream is = entity.getContent()) { - try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) { - String line; - while ((line = bufferedReader.readLine()) != null) { - if (status.get() == 2) { - throw new TimeoutException(); - } - status.set(1); - sb.append(line).append("\n"); - if (line.startsWith("data:")) { - dataConsumer.accept(line.substring(line.startsWith("data: ") ? 6 : 5)); - } - } - } - } - } catch (Exception e) { - throw new RuntimeException("eventStream 请求异常", e); - } - return sb.toString(); - }); - return request(request); - }); - if (futureConsumer != null) { - futureConsumer.accept(submit); - } - try { - HttpResponse httpResponse = submit.get(firstReadTimeout, TimeUnit.MILLISECONDS); - if (httpResponse != null) { - return httpResponse; - } - } catch (TimeoutException e) { - if (status.get() == 0) { - status.set(2); - submit.cancel(true); - throw e; - } - } - return submit.get(); - } - - public static HttpResponse requestWithEventStream(HttpRequest request, Consumer dataConsumer) { - if (request.getMaxSocketTimeout() == null) { - request.setMaxSocketTimeout(30_000); - } - request.setResponseHandler(entity -> { - StringBuilder sb = new StringBuilder(); - try { - try (InputStream is = entity.getContent()) { - try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) { - String line; - while ((line = bufferedReader.readLine()) != null) { - sb.append(line).append("\n"); - if (line.startsWith("data:")) { - dataConsumer.accept(line.substring(line.startsWith("data: ") ? 6 : 5)); - } - } - } - } - } catch (Exception e) { - throw new RuntimeException("eventStream 请求异常", e); - } - return sb.toString(); - }); - return request(request); - } - - public static int getUrlHttpStatus(String _url) { - HttpURLConnection urlConnection = null; - try { - URL url = new URL(_url); - urlConnection = (HttpURLConnection) url.openConnection(); - urlConnection.connect(); - return urlConnection.getResponseCode(); - } catch (Exception ignored) { - return -1; - } finally { - if (urlConnection != null) { - urlConnection.disconnect(); - } - } - } - - public static String getUrlLinks(Map params) { - if (params == null || params.isEmpty()) { - return null; - } - StringBuilder sb = new StringBuilder(); - try { - String[] sortedKeys = params.keySet().toArray(new String[0]); - Arrays.sort(sortedKeys); - for (String key : sortedKeys) { - if (key == null || key.isEmpty()) { - continue; - } - Object value = params.get(key); - sb.append(key).append("="); - if (value != null) { - sb.append(URLEncoder.encode(value.toString(), "UTF-8")); - } - sb.append("&"); - } - } catch (UnsupportedEncodingException e) { - throw new RuntimeException(e); - } - if (sb.length() > 0) { - sb.setLength(sb.length() - 1); - } - return sb.toString(); - } - - @SuppressWarnings("unchecked") - public static Map parseUrlLinks(String params) { - Map result = new LinkedHashMap<>(); - if (params == null || params.isEmpty()) { - return result; - } - for (String param : params.split("&")) { - String[] split = param.split("="); - String key = split[0]; - String value = ""; - if (split.length > 1) { - value = split[1]; - } - if (result.containsKey(key)) { - Object o = result.get(key); - if (o instanceof List) { - ((List) o).add(value); - } else { - List list = new ArrayList<>(); - list.add(o); - list.add(value); - result.put(key, list); - } - } else { - result.put(key, value); - } - } - return result; - } - - /** - * 通用接口请求 - */ - public static HttpResponse request(HttpRequest request) { - return request(request, 0); - } - - private static HttpResponse request(HttpRequest request, int retryCount) { - HttpRequestBase requestBase = toRequest(request); - Map headers = request.getHeaders(); - ContentType contentType = null; - if (headers != null && !headers.isEmpty()) { - for (Map.Entry entry : headers.entrySet()) { - String key = entry.getKey(); - if (key == null || key.isEmpty()) { - continue; - } - String value = entry.getValue(); - if (CONTENT_TYPE.equalsIgnoreCase(key) && value != null) { - contentType = ContentType.parse(value); - } - requestBase.setHeader(key, value); - } - } - - // body - setBodyEntity(requestBase, contentType, request.getBody()); - - try { - HttpClient client = getHttpClient(request, requestBase); - org.apache.http.HttpResponse response; - long startTime = System.currentTimeMillis(); - response = client.execute(requestBase); - HttpResponse httpResponse = new HttpResponse(); - httpResponse.setReqTime(System.currentTimeMillis() - startTime); - httpResponse.setStatus(response.getStatusLine().getStatusCode()); - Header[] allHeaders = response.getAllHeaders(); - if (allHeaders != null && allHeaders.length > 0) { - httpResponse.setHeaders(new HashMap<>()); - for (Header header : allHeaders) { - httpResponse.getHeaders().put(header.getName(), header.getValue()); - } - } - HttpEntity entity = response.getEntity(); - if (request.responseHandler != null) { - httpResponse.setResponse(request.responseHandler.apply(entity)); - } else { - String charset = null; - if (entity.getContentType() != null && entity.getContentType().getValue() != null) { - contentType = ContentType.parse(entity.getContentType().getValue()); - if (contentType.getCharset() != null) { - charset = contentType.getCharset().name(); - } - } - if (charset == null) { - charset = CHARSET_DEFAULT; - } - httpResponse.setResponse(IOUtils.toString(entity.getContent(), charset)); - } - return httpResponse; - } catch (Exception e) { - requestBase.abort(); - if (request.getMaxRetryCount() > retryCount) { - return request(request, retryCount + 1); - } else if (e instanceof SocketException && "Connection reset".equals(e.getMessage()) && retryCount == 0 && request.getMaxRetryCount() == 0) { - // 遇到 Connection reset 默认重试一次 - return request(request, retryCount + 1); - } else { - throw new RuntimeException("请求异常", e); - } - } finally { - requestBase.releaseConnection(); - } - } - - private static void setBodyEntity(HttpRequestBase requestBase, ContentType contentType, Object body) { - if (body != null && requestBase instanceof HttpEntityEnclosingRequest) { - HttpEntityEnclosingRequest entityRequest = (HttpEntityEnclosingRequest) requestBase; - if (body instanceof HttpEntity) { - entityRequest.setEntity((HttpEntity) body); - } else if (body instanceof String) { - entityRequest.setEntity(getStringEntity((String) body, contentType)); - } else if (body instanceof byte[]) { - entityRequest.setEntity(new ByteArrayEntity((byte[]) body, contentType)); - } else if (body instanceof File) { - entityRequest.setEntity(new FileEntity((File) body, contentType)); - } else if (body instanceof InputStream) { - entityRequest.setEntity(new InputStreamEntity((InputStream) body, contentType)); - } else if (ContentType.APPLICATION_JSON.equals(contentType)) { - entityRequest.setEntity(getStringEntity(JSON.toJSONString(body), contentType)); - } else { - entityRequest.setEntity(getStringEntity(body.toString(), contentType)); - } - } - } - - private static StringEntity getStringEntity(String body, ContentType contentType) { - if (contentType != null && contentType.getCharset() != null) { - return new StringEntity(body, contentType); - } else { - return new StringEntity(body, CHARSET_DEFAULT); - } - } - - public static HttpRequestBase toRequest(HttpRequest request) { - String url = request.getUrl(); - String method = request.getMethod(); - if (url == null || url.isEmpty()) { - throw new RuntimeException("url不能为空"); - } - if (method == null || method.isEmpty()) { - method = "GET"; - } - switch (method.toUpperCase()) { - case "GET": - return new HttpGet(url); - case "POST": - return new HttpPost(url); - case "PUT": - return new HttpPut(url); - case "PATCH": - return new HttpPatch(url); - case "DELETE": - return new HttpDelete(url); - default: - throw new RuntimeException("不支持的请求方式:" + method); - } - } - - private static HttpClient getHttpClient(HttpRequest req, HttpRequestBase request) { - RequestConfig.Builder customReqConf = RequestConfig.custom(); - if (req.getMaxSocketTimeout() != null) { - customReqConf.setSocketTimeout(req.getMaxSocketTimeout()); - } else { - customReqConf.setSocketTimeout(MAX_SOCKET_TIMEOUT); - } - customReqConf.setConnectTimeout(MAX_CONNECT_TIMEOUT); - customReqConf.setConnectionRequestTimeout(MAX_CONNECT_TIMEOUT); - if (req.getRequestConfigConsumer() != null) { - req.getRequestConfigConsumer().accept(customReqConf); - } - request.setConfig(customReqConf.build()); - return HttpClients.custom().setConnectionManager(CONNECTION_MANAGER).build(); - } - - private static Registry getDefaultRegistry() { - try { - // ssl: TLS / TLSv1.2 / TLSv1.3 - SSLContext context = SSLContext.getInstance("TLS"); - context.init(null, new X509TrustManager[]{new X509TrustManager() { - public void checkClientTrusted(X509Certificate[] x509Certificates, String s) { - } - - public void checkServerTrusted(X509Certificate[] x509Certificates, String s) { - } - - public X509Certificate[] getAcceptedIssuers() { - return new X509Certificate[0]; - } - }}, new SecureRandom()); - return RegistryBuilder.create().register("http", PlainConnectionSocketFactory.getSocketFactory()).register("https", new SSLConnectionSocketFactory(context)).build(); - } catch (Exception e) { - return RegistryBuilder.create().register("http", PlainConnectionSocketFactory.getSocketFactory()).register("https", SSLConnectionSocketFactory.getSocketFactory()).build(); - } - } - - public static String toParamLinks(Map params, boolean encode) { - List keys = new ArrayList<>(params.keySet()); - Collections.sort(keys); - StringBuilder sb = new StringBuilder(); - try { - for (String key : keys) { - if (key == null || "".equals(key)) { - continue; - } - Object value = params.get(key); - if (value == null || "".equals(value)) { - continue; - } - if (encode) { - sb.append(key).append("=").append(URLEncoder.encode(value.toString(), "UTF-8")).append("&"); - } else { - sb.append(key).append("=").append(value).append("&"); - } - } - } catch (UnsupportedEncodingException e) { - throw new RuntimeException("编码失败", e); - } - if (sb.length() > 0) { - sb.setLength(sb.length() - 1); - } - return sb.toString(); - } - - public static class HttpRequest implements Serializable { - - private String url; - private String method; - private Map headers; - private Object body; - private int maxRetryCount = 0; - private Integer maxSocketTimeout; - private Consumer requestConfigConsumer; - private Function responseHandler; - - public static HttpRequest build(String url, String method) { - HttpRequest request = new HttpRequest(); - request.url = url; - request.method = method; - return request; - } - - public static HttpRequest get(String url) { - return build(url, "GET"); - } - - public static HttpRequest postJson(String url) { - return build(url, "POST").setContentType(CONTENT_TYPE_JSON); - } - - public static HttpRequest postFormData(String url) { - return build(url, "POST").setContentType(CONTENT_TYPE_FORM_DATA); - } - - public String getUrl() { - return url; - } - - public HttpRequest setUrl(String url) { - this.url = url; - return this; - } - - public String getMethod() { - return method; - } - - public HttpRequest setMethod(String method) { - this.method = method; - return this; - } - - public Map getHeaders() { - return headers; - } - - public HttpRequest setHeaders(Map headers) { - this.headers = headers; - return this; - } - - public HttpRequest setContentType(String contentType) { - if (this.headers == null) { - this.headers = new HashMap<>(); - } - this.headers.put(CONTENT_TYPE, contentType); - return this; - } - - public HttpRequest addHeaders(String key, Object value) { - if (headers == null) { - headers = new HashMap<>(); - } - headers.put(key, value != null ? value.toString() : null); - return this; - } - - public Object getBody() { - return body; - } - - public HttpRequest setBody(Object body) { - this.body = body; - return this; - } - - public void setMaxRetryCount(int maxRetryCount) { - this.maxRetryCount = maxRetryCount; - } - - public int getMaxRetryCount() { - return maxRetryCount; - } - - public HttpRequest setMaxSocketTimeout(Integer maxSocketTimeout) { - this.maxSocketTimeout = maxSocketTimeout; - return this; - } - - public Integer getMaxSocketTimeout() { - return maxSocketTimeout; - } - - public Consumer getRequestConfigConsumer() { - return requestConfigConsumer; - } - - public void setRequestConfigConsumer(Consumer requestConfigConsumer) { - this.requestConfigConsumer = requestConfigConsumer; - } - - public Function getResponseHandler() { - return responseHandler; - } - - public HttpRequest setResponseHandler(Function responseHandler) { - this.responseHandler = responseHandler; - return this; - } - } - - public static class HttpResponse implements Serializable { - - private int status; - private long reqTime; - private Object response; - private Map headers; - - public int getStatus() { - return status; - } - - public void setStatus(int status) { - this.status = status; - } - - public long getReqTime() { - return reqTime; - } - - public void setReqTime(long reqTime) { - this.reqTime = reqTime; - } - - public Object getResponse() { - return response; - } - - public String getResponseToString() { - if (response == null) { - return null; - } - return response instanceof String ? (String) response : String.valueOf(response); - } - - public JSONObject getResponseToJson() { - return JSON.parseObject(getResponseToString()); - } - - public void setResponse(Object response) { - this.response = response; - } - - public Map getHeaders() { - return headers; - } - - public void setHeaders(Map headers) { - this.headers = headers; - } - } - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/KeyUtils.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/KeyUtils.java deleted file mode 100644 index 973b5ebd..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/KeyUtils.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.ruoyi.system.util; - -import org.apache.commons.lang3.RandomStringUtils; - -import java.util.UUID; - -/** - * @author https://www.wdbyte.com - */ -public class KeyUtils { - - public synchronized static String key6() { - return RandomStringUtils.randomAlphanumeric(6); - } - - public synchronized static String key16() { - return RandomStringUtils.randomAlphanumeric(16); - } - - public static String uuid32() { - return UUID.randomUUID().toString().replace("-", ""); - } - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/OrderNumberGenerator.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/OrderNumberGenerator.java deleted file mode 100644 index fca7914b..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/OrderNumberGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.ruoyi.system.util; - -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.concurrent.ThreadLocalRandom; -public class OrderNumberGenerator { - // 订单编号前缀 - private static final String PREFIX = "NO"; - - // 时间格式化 - private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyyMMddHHmm"); - - // 生成订单编号 - public static String generate() { - // 获取当前日期时间字符串 - String dateTimeStr = DATE_FORMAT.format(new Date()); - - // 生成随机数 (这里举例生成一个5位随机数) - int randomNum = ThreadLocalRandom.current().nextInt(10000, 99999); - - // 拼接订单编号 - return dateTimeStr + randomNum; - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WddPptApi.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WddPptApi.java deleted file mode 100644 index 9693975c..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WddPptApi.java +++ /dev/null @@ -1,438 +0,0 @@ -package org.ruoyi.system.util; - -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import org.apache.http.entity.ContentType; -import org.apache.http.entity.mime.MultipartEntityBuilder; -import org.springframework.web.servlet.mvc.method.annotation.SseEmitter; - -import java.io.File; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** - * 文多多PPT-API - * - * @author NSL - * @since 2024-12-30 - */ -public class WddPptApi { - - public static final String BASE_URL = "https://docmee.cn"; - private static Long DEFAULT_TIME_OUT = 5 * 60 * 1000L; - - public static String createApiToken(String apiKey, String uid, Integer limit) { - String url = BASE_URL + "/api/user/createApiToken"; - JSONObject body = new JSONObject(); - body.put("uid", uid); - body.put("limit", limit); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("Api-Key", apiKey); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("创建apiToken失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("创建apiToken异常," + result.getString("message")); - } - return result.getJSONObject("data").getString("token"); - } - - public static String parseFileData(String apiToken, File file, String content, String fileUrl) { - String url = BASE_URL + "/api/ppt/parseFileData"; - HttpUtils.HttpRequest httpRequest = new HttpUtils.HttpRequest(); - httpRequest.setUrl(url); - httpRequest.setMethod("POST"); - httpRequest.addHeaders("token", apiToken); - MultipartEntityBuilder multipartEntity = MultipartEntityBuilder.create(); - multipartEntity.setCharset(StandardCharsets.UTF_8); - if (file != null) { - multipartEntity.addBinaryBody("file", file); - } - if (content != null) { - multipartEntity.addTextBody("content", content, ContentType.create("text/plain", StandardCharsets.UTF_8)); - } - if (fileUrl != null) { - multipartEntity.addTextBody("fileUrl", fileUrl, ContentType.create("text/plain", StandardCharsets.UTF_8)); - } - httpRequest.setBody(multipartEntity.build()); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("解析文件或内容失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("解析文件或内容异常," + result.getString("message")); - } - return result.getJSONObject("data").getString("dataUrl"); - } - - /** - * 生产大纲 - */ - public static String generateOutline(String apiToken, String subject, String dataUrl, String prompt) { - String url = BASE_URL + "/api/ppt/generateOutline"; - JSONObject body = new JSONObject(); - body.put("subject", subject); - body.put("dataUrl", dataUrl); - body.put("prompt", prompt); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - StringBuilder sb = new StringBuilder(); - HttpUtils.HttpResponse response = HttpUtils.requestWithEventStream(httpRequest, data -> { - if (data == null || data.isEmpty()) { - return; - } - JSONObject json = JSONObject.parseObject(data); - if (Objects.equals(json.getInteger("status"), -1)) { - throw new RuntimeException(json.getString("error")); - } - String text = json.getString("text"); - sb.append(text); - // 打印输出 - System.out.print(text); - }); - if (response.getStatus() != 200) { - throw new RuntimeException("生成大纲失败,httpStatus=" + response.getStatus()); - } - if (response.getHeaders().getOrDefault("Content-Type", response.getHeaders().get("content-type")).contains("application/json")) { - JSONObject result = response.getResponseToJson(); - throw new RuntimeException("生成大纲失败:" + result.getString("message")); - } - return sb.toString(); - } - - /** - * 生产大纲 - */ - public static SseEmitter sseGenerateOutline(String apiToken, String subject, String dataUrl, String prompt) { - String url = BASE_URL + "/api/ppt/generateOutline"; - JSONObject body = new JSONObject(); - body.put("subject", subject); - body.put("dataUrl", dataUrl); - body.put("prompt", prompt); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - SseEmitter sseEmitter = new SseEmitter(DEFAULT_TIME_OUT); - StringBuilder sb = new StringBuilder(); - new Thread(() -> { - HttpUtils.HttpResponse response = HttpUtils.requestWithEventStream(httpRequest, data -> { - if (data == null || data.isEmpty()) { - return; - } - JSONObject json = JSONObject.parseObject(data); - Integer status = json.getInteger("status"); - if (Objects.equals(status, -1)) { - throw new RuntimeException(json.getString("error")); - } - String text = json.getString("text"); - try { - sseEmitter.send(SseEmitter.event().data(text)); - } catch (IOException e) { - throw new RuntimeException(e); - } - sb.append(text); - // status 4 表示生成完成 - if (status == 4) { - // 打印输出 - System.out.print(sb); - sseEmitter.complete(); - } - }); - if (response.getStatus() != 200) { - throw new RuntimeException("生成大纲失败,httpStatus=" + response.getStatus()); - } - if (response.getHeaders().getOrDefault("Content-Type", response.getHeaders().get("content-type")).contains("application/json")) { - JSONObject result = response.getResponseToJson(); - throw new RuntimeException("生成大纲失败:" + result.getString("message")); - } - }).start(); - return sseEmitter; - } - - /** - * 生成大纲内容 - */ - public static String generateContent(String apiToken, String outlineMarkdown, String dataUrl, String prompt) { - String url = BASE_URL + "/api/ppt/generateContent"; - JSONObject body = new JSONObject(); - body.put("outlineMarkdown", outlineMarkdown); - body.put("dataUrl", dataUrl); - body.put("prompt", prompt); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - StringBuilder sb = new StringBuilder(); - HttpUtils.HttpResponse response = HttpUtils.requestWithEventStream(httpRequest, data -> { - if (data == null || data.isEmpty()) { - return; - } - JSONObject json = JSONObject.parseObject(data); - if (Objects.equals(json.getInteger("status"), -1)) { - throw new RuntimeException(json.getString("error")); - } - String text = json.getString("text"); - sb.append(text); - // 打印输出 - System.out.print(text); - }); - if (response.getStatus() != 200) { - throw new RuntimeException("生成大纲内容失败,httpStatus=" + response.getStatus()); - } - if (response.getHeaders().getOrDefault("Content-Type", response.getHeaders().get("content-type")).contains("application/json")) { - JSONObject result = response.getResponseToJson(); - throw new RuntimeException("生成大纲内容失败:" + result.getString("message")); - } - return sb.toString(); - } - - /** - * 流式生成大纲内容 - */ - public static SseEmitter sseGenerateContent(String apiToken, String outlineMarkdown, String dataUrl, String prompt) { - String url = BASE_URL + "/api/ppt/generateContent"; - JSONObject body = new JSONObject(); - body.put("outlineMarkdown", outlineMarkdown); - body.put("dataUrl", dataUrl); - body.put("prompt", prompt); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - SseEmitter sseEmitter = new SseEmitter(DEFAULT_TIME_OUT); - StringBuilder sb = new StringBuilder(); - new Thread(() -> { - HttpUtils.HttpResponse response = HttpUtils.requestWithEventStream(httpRequest, data -> { - if (data == null || data.isEmpty()) { - return; - } - JSONObject json = JSONObject.parseObject(data); - Integer status = json.getInteger("status"); - if (Objects.equals(status, -1)) { - throw new RuntimeException(json.getString("error")); - } - String text = json.getString("text"); - try { - sseEmitter.send(text); - } catch (IOException e) { - throw new RuntimeException(e); - } - sb.append(text); - // status 4 表示生成完成 - if (status == 4) { - // 打印输出 - System.out.print(sb); - sseEmitter.complete(); - } - }); - if (response.getStatus() != 200) { - throw new RuntimeException("生成大纲内容失败,httpStatus=" + response.getStatus()); - } - if (response.getHeaders().getOrDefault("Content-Type", response.getHeaders().get("content-type")).contains("application/json")) { - JSONObject result = response.getResponseToJson(); - throw new RuntimeException("生成大纲内容失败:" + result.getString("message")); - } - }).start(); - return sseEmitter; - } - - public static Map asyncGenerateContent(String apiToken, String outlineMarkdown, String dataUrl, String templateId, String prompt) { - String url = BASE_URL + "/api/ppt/generateContent"; - JSONObject body = new JSONObject(); - body.put("asyncGenPptx", true); - body.put("templateId", templateId); - body.put("outlineMarkdown", outlineMarkdown); - body.put("dataUrl", dataUrl); - body.put("prompt", prompt); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - Map pptInfo = new HashMap<>(); - StringBuilder sb = new StringBuilder(); - HttpUtils.HttpResponse response = HttpUtils.requestWithEventStream(httpRequest, data -> { - if (data == null || data.isEmpty()) { - return; - } - JSONObject json = JSONObject.parseObject(data); - if (Objects.equals(json.getInteger("status"), -1)) { - throw new RuntimeException(json.getString("error")); - } - if (json.getString("pptId") != null) { - pptInfo.put("id", json.getString("pptId")); - } - String text = json.getString("text"); - sb.append(text); - // 打印输出 - System.out.print(text); - }); - if (response.getStatus() != 200) { - throw new RuntimeException("生成大纲内容失败,httpStatus=" + response.getStatus()); - } - if (response.getHeaders().getOrDefault("Content-Type", response.getHeaders().get("content-type")).contains("application/json")) { - JSONObject result = response.getResponseToJson(); - throw new RuntimeException("生成大纲内容失败:" + result.getString("message")); - } - pptInfo.put("markdown", sb.toString()); - return pptInfo; - } - - public static String randomOneTemplateId(String apiToken) { - String url = BASE_URL + "/api/ppt/randomTemplates"; - JSONObject body = new JSONObject(); - body.put("size", 1); - JSONObject filters = new JSONObject(); - filters.put("type", 1); - body.put("filters", filters); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("获取模板失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("获取模板异常," + result.getString("message")); - } - JSONArray data = result.getJSONArray("data"); - JSONObject template = data.getJSONObject(0); - return template.getString("id"); - } - - /** - * 生成PPT - */ - public static JSONObject generatePptx(String apiToken, String templateId, String markdown, boolean pptxProperty) { - String url = BASE_URL + "/api/ppt/generatePptx"; - JSONObject body = new JSONObject(); - body.put("templateId", templateId); - body.put("outlineContentMarkdown", markdown); - body.put("pptxProperty", pptxProperty); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("生成PPT失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("生成PPT异常," + result.getString("message")); - } - return result.getJSONObject("data").getJSONObject("pptInfo"); - } - - public static JSONObject downloadPptx(String apiToken, String id) { - String url = BASE_URL + "/api/ppt/downloadPptx"; - JSONObject body = new JSONObject(); - body.put("id", id); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("下载PPT失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("下载PPT异常," + result.getString("message")); - } - return result.getJSONObject("data"); - } - - public static JSONObject directGeneratePptx(String apiToken, boolean stream, String templateId, String subject, String dataUrl, String prompt, boolean pptxProperty) { - String url = BASE_URL + "/api/ppt/directGeneratePptx"; - JSONObject body = new JSONObject(); - body.put("stream", stream); - body.put("templateId", templateId); - body.put("subject", subject); - body.put("dataUrl", dataUrl); - body.put("prompt", prompt); - body.put("pptxProperty", pptxProperty); - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body.toJSONString()); - httpRequest.addHeaders("token", apiToken); - if (stream) { - // 流式生成 - JSONObject[] pptInfo = new JSONObject[1]; - HttpUtils.HttpResponse response = HttpUtils.requestWithEventStream(httpRequest, data -> { - if (data == null || data.isEmpty()) { - return; - } - JSONObject json = JSONObject.parseObject(data); - if (Objects.equals(json.getInteger("status"), -1)) { - throw new RuntimeException(json.getString("error")); - } - if (Objects.equals(json.getInteger("status"), 4) && json.containsKey("result")) { - pptInfo[0] = json.getJSONObject("result"); - } - String text = json.getString("text"); - // 打印输出 - System.out.print(text); - }); - if (response.getStatus() != 200) { - throw new RuntimeException("生成PPT失败,httpStatus=" + response.getStatus()); - } - if (response.getHeaders().getOrDefault("Content-Type", response.getHeaders().get("content-type")).contains("application/json")) { - JSONObject result = response.getResponseToJson(); - throw new RuntimeException("生成PPT失败:" + result.getString("message")); - } - return pptInfo[0]; - } else { - // 非流式生成 - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("生成PPT失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("生成PPT异常," + result.getString("message")); - } - return result.getJSONObject("data").getJSONObject("pptInfo"); - } - } - - /** - * 查询所有PPT列表 - */ - public static JSONObject listAllPptx(String apiToken, String body) { - String url = BASE_URL + "/api/ppt/listAllPptx"; - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body); - httpRequest.addHeaders("token", apiToken); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("查询所有PPT列表失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("查询所有PPT列表异常," + result.getString("message")); - } - return result; - } - - /** - * 分页查询 PPT 模板 - */ - public static JSONObject getPptTemplates(String apiToken, String body) { - String url = BASE_URL + "/api/ppt/templates"; - HttpUtils.HttpRequest httpRequest = HttpUtils.HttpRequest.postJson(url); - httpRequest.setBody(body); - httpRequest.addHeaders("token", apiToken); - HttpUtils.HttpResponse response = HttpUtils.request(httpRequest); - if (response.getStatus() != 200) { - throw new RuntimeException("分页查询 PPT 模板失败,httpStatus=" + response.getStatus()); - } - JSONObject result = response.getResponseToJson(); - if (result.getIntValue("code") != 0) { - throw new RuntimeException("分页查询 PPT 模板异常," + result.getString("message")); - } - return result; - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeChatScanHttpUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeChatScanHttpUtil.java deleted file mode 100644 index b303d774..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeChatScanHttpUtil.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.ruoyi.system.util; - -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import okhttp3.*; -import org.ruoyi.common.core.service.ConfigService; -import org.springframework.stereotype.Component; - -import java.io.IOException; -import java.util.concurrent.TimeUnit; - -/** - * 绘声美音HTTP请求工具类 - * - * @author NSL - * @since 2024-12-25 - */ -@RequiredArgsConstructor -@Component -@Slf4j -public class WeChatScanHttpUtil { - - private final ConfigService configService; - - private static final String TOKEN = "token"; - - private final OkHttpClient client = new OkHttpClient.Builder() - .connectTimeout(300, TimeUnit.SECONDS) - .writeTimeout(300, TimeUnit.SECONDS) - .readTimeout(300, TimeUnit.SECONDS) - .build(); - - public String executeRequest(Request request) { - try (Response response = client.newCall(request).execute()) { - if (!response.isSuccessful()) { - throw new IOException("Unexpected code " + response); - } - return response.body() != null ? response.body().string() : null; - } catch (IOException e) { - // 这里应根据实际情况使用适当的日志记录方式 - log.error("请求失败: {}",e.getMessage()); - return null; - } - } - - public Request createPostRequest(String url, String json) { - RequestBody body = RequestBody.create(json, MediaType.get("application/json; charset=utf-8")); - return new Request.Builder() - .url(url) - .post(body) - .header("Content-Type", "application/json") - .header(TOKEN, getKey(TOKEN)) - .build(); - } - - public String getKey(String key) { - return configService.getConfigValue("cover", key); - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinApiUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinApiUtil.java deleted file mode 100644 index 56fbd197..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinApiUtil.java +++ /dev/null @@ -1,81 +0,0 @@ -package org.ruoyi.system.util; - -import cn.hutool.http.HttpUtil; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; -import org.ruoyi.common.core.service.ConfigService; -import org.ruoyi.system.domain.model.WeixinQrCode; -import org.springframework.stereotype.Component; - -import java.net.URI; -import java.time.LocalDateTime; - -/** - * @author https://www.wdbyte.com - */ -@Slf4j -@Component -@RequiredArgsConstructor -public class WeixinApiUtil { - - private final ConfigService configService; - - private static String QR_CODE_URL_PREFIX = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket="; - - private static String ACCESS_TOKEN = null; - private static LocalDateTime ACCESS_TOKEN_EXPIRE_TIME = null; - /** - * 二维码 Ticket 过期时间 - */ - private static int QR_CODE_TICKET_TIMEOUT = 10 * 60; - - /** - * 获取 access token - * - * @return - */ - public synchronized String getAccessToken() { - if (ACCESS_TOKEN != null && ACCESS_TOKEN_EXPIRE_TIME.isAfter(LocalDateTime.now())) { - return ACCESS_TOKEN; - } - String api = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" + getKey("appid") + "&secret=" - + getKey("secret"); - String result = HttpUtil.get(api); - JSONObject jsonObject = JSON.parseObject(result); - ACCESS_TOKEN = jsonObject.getString("access_token"); - ACCESS_TOKEN_EXPIRE_TIME = LocalDateTime.now().plusSeconds(jsonObject.getLong("expires_in") - 10); - return ACCESS_TOKEN; - } - - /** - * 获取二维码 Ticket - * - * https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Generating_a_Parametric_QR_Code.html - * - * @return - */ - public WeixinQrCode getQrCode() { - String api = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=" + getAccessToken(); - String jsonBody = String.format("{\n" - + " \"expire_seconds\": %d,\n" - + " \"action_name\": \"QR_STR_SCENE\",\n" - + " \"action_info\": {\n" - + " \"scene\": {\n" - + " \"scene_str\": \"%s\"\n" - + " }\n" - + " }\n" - + "}", QR_CODE_TICKET_TIMEOUT, KeyUtils.uuid32()); - String result = HttpUtil.post(api, jsonBody); - log.info("get qr code params:{}", jsonBody); - log.info("get qr code result:{}", result); - WeixinQrCode weixinQrCode = JSON.parseObject(result, WeixinQrCode.class); - weixinQrCode.setQrCodeUrl(QR_CODE_URL_PREFIX + URI.create(weixinQrCode.getTicket()).toASCIIString()); - return weixinQrCode; - } - - public String getKey(String key) { - return configService.getConfigValue("weixin", key); - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinMsgUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinMsgUtil.java deleted file mode 100644 index e958d95f..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinMsgUtil.java +++ /dev/null @@ -1,66 +0,0 @@ -package org.ruoyi.system.util; - -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; -import org.apache.commons.lang3.StringUtils; -import org.ruoyi.system.domain.model.ReceiveMessage; - -/** - * @author https://www.wdbyte.com - */ -public class WeixinMsgUtil { - - // 事件-关注 - private static String EVENT_SUBSCRIBE = "subscribe"; - - /** - * 微信消息转对象 - * - * @param xml - * @return - */ - public static ReceiveMessage msgToReceiveMessage(String xml) { - JSONObject jsonObject = JSON.parseObject(XmlUtil.xml2json(xml)); - ReceiveMessage receiveMessage = new ReceiveMessage(); - receiveMessage.setToUserName(jsonObject.getString("ToUserName")); - receiveMessage.setFromUserName(jsonObject.getString("FromUserName")); - receiveMessage.setCreateTime(jsonObject.getString("CreateTime")); - receiveMessage.setMsgType(jsonObject.getString("MsgType")); - receiveMessage.setContent(jsonObject.getString("Content")); - receiveMessage.setMsgId(jsonObject.getString("MsgId")); - receiveMessage.setEvent(jsonObject.getString("Event")); - receiveMessage.setTicket(jsonObject.getString("Ticket")); - return receiveMessage; - } - - /** - * 是否是订阅事件 - * - * @param receiveMessage - * @return - */ - public static boolean isEventAndSubscribe(ReceiveMessage receiveMessage) { - return StringUtils.equals(receiveMessage.getEvent(), EVENT_SUBSCRIBE); - } - - /** - * 是否是二维码扫描事件 - * - * @param receiveMessage - * @return - */ - public static boolean isScanQrCode(ReceiveMessage receiveMessage) { - return StringUtils.isNotEmpty(receiveMessage.getTicket()); - } - - /** - * 获取扫描的二维码 Ticket - * - * @param receiveMessage - * @return - */ - public static String getQrCodeTicket(ReceiveMessage receiveMessage) { - return receiveMessage.getTicket(); - } - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinQrCodeCacheUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinQrCodeCacheUtil.java deleted file mode 100644 index df01aecd..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/WeixinQrCodeCacheUtil.java +++ /dev/null @@ -1,34 +0,0 @@ -package org.ruoyi.system.util; - -import java.util.LinkedHashMap; - -/** - * 微信二维码缓存工具类 - * - * @author https://www.wdbyte.com - */ -public class WeixinQrCodeCacheUtil { - private static long MAX_CACHE_SIZE = 10000; - private static LinkedHashMap QR_CODE_TICKET_MAP = new LinkedHashMap<>(); - - /** - * 增加一个 Ticket - * 首次 put:value 为 "" - * 再次 put: value 有 openId,若openId已经存在,则已被扫码 - * - * @param key - * @param value - */ - public synchronized static void put(String key, String value) { - QR_CODE_TICKET_MAP.put(key, value); - if (QR_CODE_TICKET_MAP.size() > MAX_CACHE_SIZE) { - String first = QR_CODE_TICKET_MAP.keySet().stream().findFirst().get(); - QR_CODE_TICKET_MAP.remove(first); - } - } - - public synchronized static String get(String key) { - return QR_CODE_TICKET_MAP.remove(key); - } - -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/XmlUtil.java b/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/XmlUtil.java deleted file mode 100644 index 00d023bd..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/util/XmlUtil.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.ruoyi.system.util; - -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.dataformat.xml.XmlMapper; -import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.StringUtils; - -/** - * @author https://www.wdbyte.com - */ -@Slf4j -public class XmlUtil { - - public static String xml2json(String requestBody) { - requestBody = StringUtils.trim(requestBody); - XmlMapper xmlMapper = new XmlMapper(); - JsonNode node = null; - try { - node = xmlMapper.readTree(requestBody.getBytes()); - ObjectMapper jsonMapper = new ObjectMapper(); - return jsonMapper.writeValueAsString(node); - } catch (Exception e) { - log.error("xml 2 json error,msg:" + e.getMessage(), e); - } - return null; - } -} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/CoverMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/CoverMapper.xml deleted file mode 100644 index b5745320..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/CoverMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/CoverPromptAudioMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/CoverPromptAudioMapper.xml deleted file mode 100644 index 0871a29e..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/CoverPromptAudioMapper.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/PaymentOrdersMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/PaymentOrdersMapper.xml deleted file mode 100644 index d1ffcf60..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/PaymentOrdersMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysLogininforMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysLogininforMapper.xml deleted file mode 100644 index 712c9a87..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysLogininforMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysModelMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysModelMapper.xml deleted file mode 100644 index a2ace81e..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysModelMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysPackagePlanMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysPackagePlanMapper.xml deleted file mode 100644 index 1b7c4a1f..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/SysPackagePlanMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobConfigMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobConfigMapper.xml deleted file mode 100644 index c7af5bf3..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobConfigMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobKeywordMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobKeywordMapper.xml deleted file mode 100644 index 32582d17..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobKeywordMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobRelationMapper.xml b/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobRelationMapper.xml deleted file mode 100644 index aab96635..00000000 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/resources/mapper/WxRobRelationMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ruoyi-modules-api/ruoyi-weixin-api/pom.xml b/ruoyi-modules-api/ruoyi-weixin-api/pom.xml deleted file mode 100644 index 1d16920e..00000000 --- a/ruoyi-modules-api/ruoyi-weixin-api/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - 4.0.0 - - org.ruoyi - ruoyi-ai - 1.0.0 - ../../pom.xml - - - ruoyi-weixin-api - - - 17 - 17 - UTF-8 - - - diff --git a/ruoyi-modules/pom.xml b/ruoyi-modules/pom.xml index 20c54198..df6b4c7d 100644 --- a/ruoyi-modules/pom.xml +++ b/ruoyi-modules/pom.xml @@ -2,13 +2,14 @@ + 4.0.0 ruoyi-ai org.ruoyi ${revision} ../pom.xml - 4.0.0 + ruoyi-modules pom diff --git a/ruoyi-modules/ruoyi-chat/pom.xml b/ruoyi-modules/ruoyi-chat/pom.xml index 9f254284..028b57da 100644 --- a/ruoyi-modules/ruoyi-chat/pom.xml +++ b/ruoyi-modules/ruoyi-chat/pom.xml @@ -15,7 +15,6 @@ - 5.8.18 20220924 5.0.0-beta.9 1.1.2-beta0 @@ -35,26 +34,12 @@ spring-boot-starter-data-redis - - cn.hutool - hutool-core - ${hutool.version} - - - cn.hutool - hutool-cache - ${hutool.version} - - - cn.hutool - hutool-crypto - ${hutool.version} - org.json json ${org-json.version} + net.dv8tion JDA @@ -66,6 +51,7 @@ + com.unfbx chatgpt-java @@ -77,16 +63,19 @@ + eu.maxschuster dataurl ${dataurl.version} + com.github.xiaoymin knife4j-openapi2-spring-boot-starter ${knife4j.verison} + eu.bitwalker UserAgentUtils @@ -98,37 +87,28 @@ spring-boot-configuration-processor true + org.projectlombok lombok true + jakarta.servlet jakarta.servlet-api - - org.ruoyi - ruoyi-system - - org.ruoyi ruoyi-knowledge-api + org.ruoyi ruoyi-chat-api - 1.0.0 - compile - - - cn.hutool - hutool-all - 5.8.26 - compile + diff --git a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/ChatConfig.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/config/ChatConfig.java similarity index 96% rename from ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/ChatConfig.java rename to ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/config/ChatConfig.java index 624779c4..560f2d86 100644 --- a/ruoyi-common/ruoyi-common-chat/src/main/java/org/ruoyi/common/chat/config/ChatConfig.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/config/ChatConfig.java @@ -1,4 +1,4 @@ -package org.ruoyi.common.chat.config; +package org.ruoyi.chat.config; import lombok.Getter; import lombok.RequiredArgsConstructor; @@ -28,7 +28,6 @@ public class ChatConfig { private final ConfigService configService; - // 重启才会生效 @Bean public OpenAiStreamClient openAiStreamClient() { String apiHost = configService.getConfigValue("chat", "apiHost"); diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/config/OkHttpConfig.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/config/OkHttpConfig.java new file mode 100644 index 00000000..907569a1 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/config/OkHttpConfig.java @@ -0,0 +1,43 @@ +package org.ruoyi.chat.config; + +import jakarta.annotation.PostConstruct; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +import org.ruoyi.common.core.utils.OkHttpUtil; + +import org.ruoyi.domain.vo.ChatModelVo; +import org.ruoyi.service.IChatModelService; +import org.springframework.stereotype.Component; + +import java.util.HashMap; +import java.util.Map; + +@Component +@RequiredArgsConstructor +public class OkHttpConfig { + + private final IChatModelService chatModelService; + private final Map okHttpUtilMap = new HashMap<>(); + @Getter + private String generate; + + @PostConstruct + public void init() { + initializeOkHttpUtil("suno"); + initializeOkHttpUtil("luma"); + initializeOkHttpUtil("ppt"); + } + + private void initializeOkHttpUtil(String modelName) { + ChatModelVo chatModelVo = chatModelService.selectModelByName(modelName); + OkHttpUtil okHttpUtil = new OkHttpUtil(); + okHttpUtil.setApiHost(chatModelVo.getApiHost()); + okHttpUtil.setApiKey(chatModelVo.getApiKey()); + generate = String.valueOf(chatModelVo.getModelPrice()); + okHttpUtilMap.put(modelName, okHttpUtil); + } + + public OkHttpUtil getOkHttpUtil(String modelName) { + return okHttpUtilMap.get(modelName); + } +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/ChatController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/ChatController.java index 4d5f9fae..c75f6a1a 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/ChatController.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/ChatController.java @@ -6,11 +6,9 @@ import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.ruoyi.chat.service.chat.ISseService; -import org.ruoyi.common.chat.domain.request.ChatRequest; - +import org.ruoyi.common.chat.request.ChatRequest; import org.ruoyi.common.chat.entity.Tts.TextToSpeech; import org.ruoyi.common.chat.entity.files.UploadFileResponse; - import org.ruoyi.common.chat.entity.whisper.WhisperResponse; import org.ruoyi.common.core.domain.R; import org.ruoyi.common.core.domain.model.LoginUser; @@ -19,7 +17,6 @@ import org.ruoyi.common.mybatis.core.page.PageQuery; import org.ruoyi.common.mybatis.core.page.TableDataInfo; import org.ruoyi.common.satoken.utils.LoginHelper; import org.ruoyi.domain.bo.ChatMessageBo; - import org.ruoyi.domain.vo.ChatMessageVo; import org.ruoyi.service.IChatMessageService; import org.springframework.core.io.Resource; diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/CoverController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/CoverController.java deleted file mode 100644 index bf9631d8..00000000 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/CoverController.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.ruoyi.chat.controller; - -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.ruoyi.common.core.domain.R; -import org.ruoyi.common.mybatis.core.page.PageQuery; -import org.ruoyi.common.mybatis.core.page.TableDataInfo; -import org.ruoyi.common.web.core.BaseController; -import org.ruoyi.system.domain.vo.cover.CoverParamVo; -import org.ruoyi.system.domain.vo.cover.CoverVo; -import org.ruoyi.system.domain.vo.cover.CoverCallbackVo; -import org.ruoyi.system.domain.vo.cover.MusicVo; -import org.ruoyi.system.service.ICoverService; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 绘声美音-翻唱 - * - * @author NSL - * @since 2024-12-25 - */ -@Api(tags = "歌曲翻唱") -@RequiredArgsConstructor -@RestController -@RequestMapping("/cover") -public class CoverController extends BaseController { - - private final ICoverService coverService; - - @ApiOperation(value = "查找歌曲") - @GetMapping("/searchMusic") - public R> searchMusic(String musicName) { - return R.ok(coverService.searchMusic(musicName)); - } - - @ApiOperation(value = "翻唱歌曲") - @PostMapping("/saveCoverTask") - public R saveCoverTask(@RequestBody CoverParamVo coverParamVo) { - coverService.saveCoverTask(coverParamVo); - return R.ok("翻唱歌曲处理中请等待10分钟-30分钟,翻唱结果请到翻唱记录中查询!"); - } - - @ApiOperation(value = "查询翻唱记录") - @PostMapping("/searchCoverRecord") - public R> searchCoverRecord(@RequestBody PageQuery pageQuery) { - return R.ok(coverService.searchCoverRecord(pageQuery)); - } - - @ApiOperation(value = "翻唱回调接口") - @PostMapping("/callback") - public R callback(@RequestBody CoverCallbackVo coverCallbackVo) { - coverService.callback(coverCallbackVo); - return R.ok(); - } -} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/FaceController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/FaceController.java index cb2f2591..74dec5c3 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/FaceController.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/FaceController.java @@ -8,6 +8,7 @@ import lombok.extern.slf4j.Slf4j; import okhttp3.Request; import org.apache.commons.lang3.math.NumberUtils; import org.ruoyi.chat.domain.InsightFace; +import org.ruoyi.chat.service.chat.IChatCostService; import org.ruoyi.chat.util.MjOkHttpUtil; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/LumaController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/LumaController.java index f3628f42..21a40eee 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/LumaController.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/LumaController.java @@ -4,11 +4,13 @@ import cn.hutool.json.JSONUtil; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; + import okhttp3.Request; import org.apache.commons.lang3.math.NumberUtils; +import org.ruoyi.chat.config.OkHttpConfig; +import org.ruoyi.chat.domain.bo.GenerateLuma; +import org.ruoyi.chat.service.chat.IChatCostService; import org.ruoyi.common.core.utils.OkHttpUtil; -import org.ruoyi.system.cofing.OkHttpConfig; -import org.ruoyi.system.domain.GenerateLuma; import org.springframework.web.bind.annotation.*; /** diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/PptController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/PptController.java deleted file mode 100644 index 2126f01f..00000000 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/PptController.java +++ /dev/null @@ -1,79 +0,0 @@ -package org.ruoyi.chat.controller; - -import com.alibaba.fastjson.JSONObject; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiOperation; -import lombok.RequiredArgsConstructor; -import org.ruoyi.common.core.domain.R; -import org.ruoyi.common.web.core.BaseController; -import org.ruoyi.system.domain.vo.ppt.*; -import org.ruoyi.system.service.IPptService; -import org.springframework.http.MediaType; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.servlet.mvc.method.annotation.SseEmitter; - -/** - * AI_PPT - * - * @author NSL - * @since 2024-12-30 - */ -@Api(tags = "AI-PPT") -@RequiredArgsConstructor -@RestController -@RequestMapping("/ppt") -public class PptController extends BaseController { - - private final IPptService pptService; - - @ApiOperation(value = "获取API Token") - @GetMapping("/getApiToken") - public R getApiToken() { - return R.ok(pptService.getApiToken()); - } - - @ApiOperation(value = "同步流式生成 PPT") - @PostMapping("/syncStreamGeneratePpt") - public R syncStreamGeneratePpt(String title) { - pptService.syncStreamGeneratePpt(title); - return R.ok(); - } - - @ApiOperation(value = "查询所有PPT列表") - @PostMapping("/selectPptList") - public R selectPptList(@RequestBody PptAllQueryDto pptQueryVo) { - pptService.selectPptList(pptQueryVo); - return R.ok(); - } - - @ApiOperation(value = "生成大纲") - @PostMapping(value = "/generateOutline", produces = {MediaType.TEXT_EVENT_STREAM_VALUE}) - public SseEmitter generateOutline(@RequestBody PptGenerateOutlineDto generateOutlineDto) { - return pptService.generateOutline(generateOutlineDto); - } - - @ApiOperation(value = "生成大纲内容") - @PostMapping(value = "/generateContent", produces = {MediaType.TEXT_EVENT_STREAM_VALUE}) - public SseEmitter generateOutline(@RequestBody PptGenerateContentDto generateContentDto) { - return pptService.generateContent(generateContentDto); - } - - @ApiOperation(value = "分页查询 PPT 模板") - @PostMapping("/getTemplates") - public R getPptTemplates(@RequestBody PptTemplateQueryDto pptQueryVo) { - return R.ok(pptService.getPptTemplates(pptQueryVo)); - } - - @ApiOperation(value = "生成 PPT") - @PostMapping("/generatePptx") - public R generatePptx(@RequestBody PptGeneratePptxDto pptQueryVo) { - return R.ok(pptService.generatePptx(pptQueryVo)); - } - - @ApiOperation(value = "生成PPT成功回调接口") - @PostMapping("/successCallback") - public R successCallback() { - pptService.successCallback(); - return R.ok(); - } -} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SubmitController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SubmitController.java index 11fd751c..5299bf2b 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SubmitController.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SubmitController.java @@ -9,6 +9,7 @@ import okhttp3.Request; import org.apache.commons.lang3.math.NumberUtils; import org.ruoyi.chat.domain.dto.*; import org.ruoyi.chat.enums.ActionType; +import org.ruoyi.chat.service.chat.IChatCostService; import org.ruoyi.chat.util.MjOkHttpUtil; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SunoController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SunoController.java index 07754fe5..8d9dd916 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SunoController.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/SunoController.java @@ -4,12 +4,14 @@ import cn.hutool.json.JSONUtil; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; + import okhttp3.Request; import org.apache.commons.lang3.math.NumberUtils; +import org.ruoyi.chat.config.OkHttpConfig; +import org.ruoyi.chat.domain.bo.GenerateLyric; +import org.ruoyi.chat.domain.bo.GenerateSuno; +import org.ruoyi.chat.service.chat.IChatCostService; import org.ruoyi.common.core.utils.OkHttpUtil; -import org.ruoyi.system.cofing.OkHttpConfig; -import org.ruoyi.system.domain.GenerateLyric; -import org.ruoyi.system.domain.GenerateSuno; import org.springframework.web.bind.annotation.*; @RestController diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/VoiceController.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/VoiceController.java deleted file mode 100644 index a551cbff..00000000 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/controller/VoiceController.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.ruoyi.chat.controller; - -import lombok.RequiredArgsConstructor; -import org.ruoyi.common.core.domain.R; -import org.ruoyi.common.web.core.BaseController; -import org.ruoyi.system.request.RoleListDto; -import org.ruoyi.system.request.SimpleGenerateRequest; -import org.ruoyi.system.response.SimpleGenerateDataResponse; -import org.ruoyi.system.response.rolelist.ChatAppStoreVO; -import org.springframework.web.bind.annotation.*; - -import java.util.List; - -/** - * 应用市场 - * - * @author Lion Li - * @date 2024-03-19 - */ -@RequiredArgsConstructor -@RestController -@RequestMapping("/system/voice") -public class VoiceController extends BaseController { - - private final IChatAppStoreService voiceRoleService; - - /** - * 实时语音生成 - */ - @PostMapping("/simpleGenerate") - public R simpleGenerate(@RequestBody SimpleGenerateRequest simpleGenerateRequest) { - return R.ok(voiceRoleService.simpleGenerate(simpleGenerateRequest)); - } - - /** - * 角色市场 - */ - @GetMapping("/roleList") - public R> roleList() { - return R.ok(voiceRoleService.roleList()); - } - - /** - * 收藏角色 - */ - @PostMapping("/copyRole") - public R copyRole(@RequestBody RoleListDto roleListDto) { - voiceRoleService.copyRole(roleListDto); - return R.ok(); - } -} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateLuma.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateLuma.java new file mode 100644 index 00000000..8cef12cf --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateLuma.java @@ -0,0 +1,22 @@ +package org.ruoyi.chat.domain.bo; + +import lombok.Data; + +/** + * 描述:文生视频请求对象 + * + * @author ageerle@163.com + * date 2024/6/27 + */ +@Data +public class GenerateLuma { + + private String aspect_ratio; + + private boolean expand_prompt; + + private String image_url; + + private String user_prompt; + +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateLyric.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateLyric.java new file mode 100644 index 00000000..699c7801 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateLyric.java @@ -0,0 +1,23 @@ +package org.ruoyi.chat.domain.bo; + +import lombok.Data; + +/** + * 描述:生成歌词 + * + * @author ageerle@163.com + * date 2024/6/27 + */ +@Data +public class GenerateLyric { + + /** + * 歌词提示词 + */ + private String prompt; + + /** + * 回调地址 + */ + private String notify_hook; +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateSuno.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateSuno.java new file mode 100644 index 00000000..444969e8 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/domain/bo/GenerateSuno.java @@ -0,0 +1,64 @@ +package org.ruoyi.chat.domain.bo; + + +import lombok.Data; + +import java.io.Serializable; + +/** + * @author WangLe + */ +@Data +public class GenerateSuno implements Serializable { + + /** + * 歌词 (自定义模式专用) + */ + private String prompt; + + /** + * mv模型,chirp-v3-0、chirp-v3-5。不写默认 chirp-v3-0 + */ + private String mv; + + /** + * 标题(自定义模式专用) + */ + private String title; + + /** + * 风格标签(自定义模式专用) + */ + private String tags; + + /** + * 是否生成纯音乐,true 为生成纯音乐 + */ + private boolean make_instrumental; + + /** + * 任务id,用于对之前的任务再操作 + */ + private String task_id; + + /** + * float,歌曲延长时间,单位秒 + */ + private int continue_at; + + /** + * 歌曲id,需要续写哪首歌 + */ + private String continue_clip_id; + + /** + * 灵感模式提示词(灵感模式专用) + */ + private String gpt_description_prompt; + + /** + * 回调地址 + */ + private String notify_hook; + +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/enums/BillingType.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/enums/BillingType.java new file mode 100644 index 00000000..40c3ad28 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/enums/BillingType.java @@ -0,0 +1,34 @@ +package org.ruoyi.chat.enums; + +import lombok.Getter; + +@Getter +public enum BillingType { + TOKEN("1", "token扣费"), // token扣费 + TIMES("2", "次数扣费"); // 次数扣费 + + private final String code; + private final String description; + + BillingType(String code, String description) { + this.code = code; + this.description = description; + } + + public static BillingType fromCode(String code) { + for (BillingType type : values()) { + if (type.getCode().equals(code)) { + return type; + } + } + return null; + } + + public String getCode() { + return code; + } + + public String getDescription() { + return description; + } +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/enums/UserGradeType.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/enums/UserGradeType.java new file mode 100644 index 00000000..3c8d8be1 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/enums/UserGradeType.java @@ -0,0 +1,34 @@ +package org.ruoyi.chat.enums; + +import lombok.Getter; + +@Getter +public enum UserGradeType { + UNPAID("0", "未付费"), // 未付费用户 + PAID("1", "已付费"); // 已付费用户 + + private final String code; + private final String description; + + UserGradeType(String code, String description) { + this.code = code; + this.description = description; + } + + public static UserGradeType fromCode(String code) { + for (UserGradeType type : values()) { + if (type.getCode().equals(code)) { + return type; + } + } + return null; + } + + public String getCode() { + return code; + } + + public String getDescription() { + return description; + } +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/listener/SSEEventSourceListener.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/listener/SSEEventSourceListener.java index f64e6158..aa70c9ae 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/listener/SSEEventSourceListener.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/listener/SSEEventSourceListener.java @@ -11,7 +11,10 @@ import okhttp3.ResponseBody; import okhttp3.sse.EventSource; import okhttp3.sse.EventSourceListener; import org.jetbrains.annotations.NotNull; +import org.ruoyi.chat.service.chat.IChatCostService; +import org.ruoyi.common.chat.domain.request.ChatRequest; import org.ruoyi.common.chat.entity.chat.ChatCompletionResponse; +import org.ruoyi.common.core.utils.SpringUtils; import org.ruoyi.common.core.utils.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @@ -40,6 +43,9 @@ public class SSEEventSourceListener extends EventSourceListener { private StringBuilder stringBuffer; private String modelName; + + private static final IChatCostService chatCostService = SpringUtils.getBean(IChatCostService.class); + /** * {@inheritDoc} */ @@ -55,11 +61,15 @@ public class SSEEventSourceListener extends EventSourceListener { @Override public void onEvent(@NotNull EventSource eventSource, String id, String type, String data) { try { + if ("[DONE]".equals(data)) { //成功响应 emitter.complete(); - - // 扣除费用 (消耗字符 模型名称) + // 扣除费用 + ChatRequest chatRequest = new ChatRequest(); + chatRequest.setModel(modelName); + chatRequest.setPrompt(stringBuffer.toString()); + chatCostService.deductToken(chatRequest); return; } // 解析返回内容 diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/IChatCostService.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/IChatCostService.java index 234360a0..7d3bb3a7 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/IChatCostService.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/IChatCostService.java @@ -1,6 +1,6 @@ package org.ruoyi.chat.service.chat; -import org.ruoyi.domain.bo.ChatMessageBo; +import org.ruoyi.common.chat.request.ChatRequest; /** * 计费管理Service接口 @@ -11,16 +11,16 @@ import org.ruoyi.domain.bo.ChatMessageBo; public interface IChatCostService { /** - * 根据消耗的tokens扣除余额 + * 扣除余额并且保存记录 * - * @param chatMessageBo + * @param chatRequest 对话信息 * @return 结果 */ - void deductToken(ChatMessageBo chatMessageBo); + void deductToken(ChatRequest chatRequest); /** - * 扣除用户的余额 + * 直接扣除用户的余额 * */ void deductUserBalance(Long userId, Double numberCost); diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/ISseService.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/ISseService.java index 84da5b42..cc3bb4b9 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/ISseService.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/ISseService.java @@ -1,7 +1,7 @@ package org.ruoyi.chat.service.chat; import jakarta.servlet.http.HttpServletRequest; -import org.ruoyi.common.chat.domain.request.ChatRequest; +import org.ruoyi.common.chat.request.ChatRequest; import org.ruoyi.common.chat.entity.Tts.TextToSpeech; import org.ruoyi.common.chat.entity.files.UploadFileResponse; import org.ruoyi.common.chat.entity.whisper.WhisperResponse; @@ -62,4 +62,13 @@ public interface ISseService { * @return 回复内容 */ String wxCpChat(String prompt); + + + /** + * 联网查询 + * + * @param prompt 提示词 + * @return 查询内容 + */ + String webSearch (String prompt); } diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/ChatCostServiceImpl.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/ChatCostServiceImpl.java new file mode 100644 index 00000000..66be79f8 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/ChatCostServiceImpl.java @@ -0,0 +1,166 @@ +package org.ruoyi.chat.service.chat.impl; + +import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.ruoyi.chat.enums.BillingType; +import org.ruoyi.chat.enums.UserGradeType; +import org.ruoyi.chat.service.chat.IChatCostService; +import org.ruoyi.common.chat.domain.request.ChatRequest; +import org.ruoyi.common.chat.utils.TikTokensUtil; +import org.ruoyi.common.core.domain.model.LoginUser; +import org.ruoyi.common.core.exception.ServiceException; +import org.ruoyi.common.core.exception.base.BaseException; +import org.ruoyi.common.satoken.utils.LoginHelper; +import org.ruoyi.domain.ChatToken; +import org.ruoyi.domain.bo.ChatMessageBo; +import org.ruoyi.domain.vo.ChatModelVo; +import org.ruoyi.service.IChatMessageService; +import org.ruoyi.service.IChatModelService; +import org.ruoyi.service.IChatTokenService; +import org.ruoyi.system.domain.SysUser; +import org.ruoyi.system.mapper.SysUserMapper; +import org.springframework.stereotype.Service; + + +/** + * 计费管理Service实现 + * + * @author ageerle + * @date 2025-04-08 + */ +@Slf4j +@Service +@RequiredArgsConstructor +public class ChatCostServiceImpl implements IChatCostService { + + private final SysUserMapper sysUserMapper; + + private final IChatMessageService chatMessageService; + + private final IChatTokenService chatTokenService; + + private final IChatModelService chatModelService; + + /** + * 扣除用户余额 + */ + public void deductToken(ChatRequest chatRequest) { + + int tokens = TikTokensUtil.tokens(chatRequest.getModel(), chatRequest.getPrompt()); + + String modelName = chatRequest.getModel(); + + ChatMessageBo chatMessageBo = new ChatMessageBo(); + + // 计算总token数 + ChatToken chatToken = chatTokenService.queryByUserId(getUserId(), modelName); + if (chatToken == null) { + chatToken = new ChatToken(); + chatToken.setToken(0); + } + int totalTokens = chatToken.getToken() + tokens; + // 如果总token数大于等于1000,进行费用扣除 + if (totalTokens >= 1000) { + // 计算费用 + int token1 = totalTokens / 1000; + int token2 = totalTokens % 1000; + if (token2 > 0) { + // 保存剩余tokens + chatToken.setModelName(modelName); + chatToken.setUserId(getUserId()); + chatToken.setToken(token2); + chatTokenService.editToken(chatToken); + } else { + chatTokenService.resetToken(getUserId(), modelName); + } + ChatModelVo chatModelVo = chatModelService.selectModelByName(modelName); + double cost = chatModelVo.getModelPrice(); + if (BillingType.TIMES.getCode().equals(chatModelVo.getModelType())) { + // 按次数扣费 + deductUserBalance(getUserId(), cost); + chatMessageBo.setDeductCost(cost); + }else { + // 按token扣费 + Double numberCost = token1 * cost; + deductUserBalance(chatMessageBo.getUserId(), numberCost); + chatMessageBo.setDeductCost(numberCost); + } + chatMessageBo.setContent(chatRequest.getPrompt()); + } else { + deductUserBalance(getUserId(), 0.0); + chatMessageBo.setDeductCost(0d); + chatMessageBo.setRemark("不满1kToken,计入下一次!"); + chatToken.setToken(totalTokens); + chatToken.setModelName(chatMessageBo.getModelName()); + chatToken.setUserId(chatMessageBo.getUserId()); + chatTokenService.editToken(chatToken); + } + // 保存消息记录 + chatMessageService.insertByBo(chatMessageBo); + } + + /** + * 从用户余额中扣除费用 + * + * @param userId 用户ID + * @param numberCost 要扣除的费用 + */ + @Override + public void deductUserBalance(Long userId, Double numberCost) { + SysUser sysUser = sysUserMapper.selectById(userId); + if (sysUser == null) { + return; + } + + Double userBalance = sysUser.getUserBalance(); + if (userBalance < numberCost || userBalance == 0) { + throw new ServiceException("余额不足, 请充值"); + } + sysUserMapper.update(null, + new LambdaUpdateWrapper() + .set(SysUser::getUserBalance, Math.max(userBalance - numberCost, 0)) + .eq(SysUser::getUserId, userId)); + } + + /** + * 扣除任务费用 + */ + @Override + public void taskDeduct(String type,String prompt, double cost) { + // 判断用户是否付费 + checkUserGrade(); + // 扣除费用 + deductUserBalance(getUserId(), cost); + // 保存消息记录 + ChatMessageBo chatMessageBo = new ChatMessageBo(); + chatMessageBo.setUserId(getUserId()); + chatMessageBo.setModelName(type); + chatMessageBo.setContent(prompt); + chatMessageBo.setDeductCost(cost); + chatMessageBo.setTotalTokens(0); + chatMessageService.insertByBo(chatMessageBo); + } + + /** + * 判断用户是否付费 + */ + @Override + public void checkUserGrade() { + SysUser sysUser = sysUserMapper.selectById(getUserId()); + if(UserGradeType.UNPAID.getCode().equals(sysUser.getUserGrade())){ + throw new BaseException("该模型仅限付费用户使用。请升级套餐,开启高效体验之旅!"); + } + } + + /** + * 获取用户Id + */ + public Long getUserId() { + LoginUser loginUser = LoginHelper.getLoginUser(); + if (loginUser == null) { + throw new BaseException("用户未登录!"); + } + return loginUser.getUserId(); + } +} diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/SseServiceImpl.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/SseServiceImpl.java index 2e3e294d..df499ee3 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/SseServiceImpl.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/chat/impl/SseServiceImpl.java @@ -1,8 +1,11 @@ package org.ruoyi.chat.service.chat.impl; import cn.dev33.satoken.stp.StpUtil; -import cn.hutool.extra.servlet.ServletUtil; +import cn.hutool.core.collection.CollectionUtil; +import com.fasterxml.jackson.databind.ObjectMapper; import com.google.protobuf.ServiceException; +import com.zhipu.oapi.ClientV4; +import com.zhipu.oapi.service.v4.tools.*; import io.github.ollama4j.OllamaAPI; import io.github.ollama4j.models.chat.OllamaChatMessage; import io.github.ollama4j.models.chat.OllamaChatMessageRole; @@ -13,11 +16,13 @@ import jakarta.servlet.http.HttpServletRequest; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import okhttp3.*; +import org.ruoyi.chat.config.ChatConfig; import org.ruoyi.chat.listener.SSEEventSourceListener; +import org.ruoyi.chat.service.chat.IChatCostService; import org.ruoyi.chat.service.chat.ISseService; -import org.ruoyi.common.chat.config.ChatConfig; -import org.ruoyi.common.chat.domain.request.ChatRequest; +import org.ruoyi.chat.util.IpUtil; +import org.ruoyi.common.chat.request.ChatRequest; import org.ruoyi.common.chat.entity.Tts.TextToSpeech; import org.ruoyi.common.chat.entity.chat.ChatCompletion; import org.ruoyi.common.chat.entity.chat.ChatCompletionResponse; @@ -26,12 +31,17 @@ import org.ruoyi.common.chat.entity.chat.Message; import org.ruoyi.common.chat.entity.files.UploadFileResponse; import org.ruoyi.common.chat.entity.whisper.WhisperResponse; import org.ruoyi.common.chat.openai.OpenAiStreamClient; +import org.ruoyi.common.core.service.ConfigService; +import org.ruoyi.common.core.utils.StringUtils; import org.ruoyi.common.core.utils.file.FileUtils; import org.ruoyi.common.core.utils.file.MimeTypeUtils; import org.ruoyi.common.redis.utils.RedisUtils; + import org.ruoyi.domain.vo.ChatModelVo; +import org.ruoyi.service.EmbeddingService; import org.ruoyi.service.IChatModelService; +import org.ruoyi.service.VectorStoreService; import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.Resource; import org.springframework.http.MediaType; @@ -48,8 +58,12 @@ import java.nio.file.Files; import java.nio.file.Path; import java.time.Duration; import java.util.ArrayList; +import java.util.Collections; import java.util.List; import java.util.concurrent.CompletableFuture; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicReference; @Service @Slf4j @@ -62,33 +76,80 @@ public class SseServiceImpl implements ISseService { private final IChatModelService chatModelService; + private final EmbeddingService embeddingService; + + private final VectorStoreService vectorStore; + + private final ConfigService configService; + + private final IChatCostService chatCostService; + + private static final String requestIdTemplate = "mycompany-%d"; + + private static final ObjectMapper mapper = new ObjectMapper(); + @Override public SseEmitter sseChat(ChatRequest chatRequest, HttpServletRequest request) { SseEmitter sseEmitter = new SseEmitter(0L); SSEEventSourceListener openAIEventSourceListener = new SSEEventSourceListener(sseEmitter); // 获取对话消息列表 List messages = chatRequest.getMessages(); + // 用户对话内容 + String chatString = null; try { if (StpUtil.isLogin()) { // 通过模型名称查询模型信息 ChatModelVo chatModelVo = chatModelService.selectModelByName(chatRequest.getModel()); // 构建api请求客户端 openAiStreamClient = chatConfig.createOpenAiStreamClient(chatModelVo.getApiHost(), chatModelVo.getApiKey()); + // 设置默认提示词 + Message sysMessage = Message.builder().content(chatModelVo.getSystemPrompt()).role(Message.Role.SYSTEM).build(); + messages.add(0,sysMessage); - // 模型设置默认提示词 + // 查询向量库相关信息加入到上下文 + if(chatRequest.getKid()!=null){ + List knMessages = new ArrayList<>(); + String content = messages.get(messages.size() - 1).getContent().toString(); + List nearestList; + List queryVector = embeddingService.getQueryVector(content, chatRequest.getKid()); + nearestList = vectorStore.nearest(queryVector, chatRequest.getKid()); + for (String prompt : nearestList) { + Message userMessage = Message.builder().content(prompt).role(Message.Role.USER).build(); + knMessages.add(userMessage); + } + Message userMessage = Message.builder().content(content + (!nearestList.isEmpty() ? "\n\n注意:回答问题时,须严格根据我给你的系统上下文内容原文进行回答,请不要自己发挥,回答时保持原来文本的段落层级" : "")).role(Message.Role.USER).build(); + knMessages.add(userMessage); + messages.addAll(knMessages); + } - // 是否开启联网查询 + // 获取用户对话信息 + Object content = messages.get(messages.size() - 1).getContent(); + if (content instanceof List listContent) { + if (CollectionUtil.isNotEmpty(listContent)) { + chatString = listContent.get(0).toString(); + } + } else if (content instanceof String) { + chatString = (String) content; + } + + // 加载联网信息 + if(chatRequest.getSearch()){ + Message message = Message.builder().role(Message.Role.ASSISTANT).content("联网信息:"+webSearch(chatString)).build(); + messages.add(message); + } }else { - // 未登录用户限制对话次数,默认5次 - String clientIp = ServletUtil.getClientIP((javax.servlet.http.HttpServletRequest) request,"X-Forwarded-For"); + // 未登录用户限制对话次数 + String clientIp = IpUtil.getClientIp(request); + // 访客每天默认只能对话5次 int timeWindowInSeconds = 5; - String redisKey = "visitor:" + clientIp; + String redisKey = "clientIp:" + clientIp; + int count = 0; if (RedisUtils.getCacheObject(redisKey) == null) { - // 当前访问次数 + // 缓存有效时间1天 RedisUtils.setCacheObject(redisKey, count, Duration.ofSeconds(86400)); }else { count = RedisUtils.getCacheObject(redisKey); @@ -104,13 +165,11 @@ public class SseServiceImpl implements ISseService { .builder() .messages(messages) .model(chatRequest.getModel()) - .temperature(chatRequest.getTemperature()) - .topP(chatRequest.getTop_p()) - .stream(true) + .stream(chatRequest.getStream()) .build(); openAiStreamClient.streamChatCompletion(completion, openAIEventSourceListener); // 保存消息记录 并扣除费用 - + chatCostService.deductToken(chatRequest); } catch (Exception e) { String message = e.getMessage(); sendErrorEvent(sseEmitter, message); @@ -147,7 +206,6 @@ public class SseServiceImpl implements ISseService { if (body != null) { // 将ResponseBody转换为InputStreamResource InputStreamResource resource = new InputStreamResource(body.byteStream()); - // 创建并返回ResponseEntity return ResponseEntity.ok() .contentType(MediaType.parseMediaType("audio/mpeg")) @@ -289,4 +347,58 @@ public class SseServiceImpl implements ISseService { ChatCompletionResponse chatCompletionResponse = openAiStreamClient.chatCompletion(chatCompletion); return chatCompletionResponse.getChoices().get(0).getMessage().getContent().toString(); } + + public String webSearch (String prompt) { + String zhipuValue = configService.getConfigValue("zhipu", "key"); + if(StringUtils.isEmpty(zhipuValue)){ + throw new IllegalStateException("zhipu config value is empty,请在chat_config中配置zhipu key信息"); + }else { + ClientV4 client = new ClientV4.Builder(zhipuValue) + .networkConfig(300, 100, 100, 100, TimeUnit.SECONDS) + .connectionPool(new okhttp3.ConnectionPool(8, 1, TimeUnit.SECONDS)) + .build(); + + SearchChatMessage jsonNodes = new SearchChatMessage(); + jsonNodes.setRole(Message.Role.USER.getName()); + jsonNodes.setContent(prompt); + + String requestId = String.format(requestIdTemplate, System.currentTimeMillis()); + WebSearchParamsRequest chatCompletionRequest = WebSearchParamsRequest.builder() + .model("web-search-pro") + .stream(Boolean.TRUE) + .messages(Collections.singletonList(jsonNodes)) + .requestId(requestId) + .build(); + WebSearchApiResponse webSearchApiResponse = client.webSearchProStreamingInvoke(chatCompletionRequest); + List choices = new ArrayList<>(); + if (webSearchApiResponse.isSuccess()) { + AtomicBoolean isFirst = new AtomicBoolean(true); + + AtomicReference lastAccumulator = new AtomicReference<>(); + + webSearchApiResponse.getFlowable().map(result -> result) + .doOnNext(accumulator -> { + { + if (isFirst.getAndSet(false)) { + log.info("Response: "); + } + ChoiceDelta delta = accumulator.getChoices().get(0).getDelta(); + if (delta != null && delta.getToolCalls() != null) { + log.info("tool_calls: {}", mapper.writeValueAsString(delta.getToolCalls())); + } + choices.add(delta); + } + }) + .doOnComplete(() -> System.out.println("Stream completed.")) + .doOnError(throwable -> System.err.println("Error: " + throwable)) + .blockingSubscribe(); + + WebSearchPro chatMessageAccumulator = lastAccumulator.get(); + webSearchApiResponse.setFlowable(null); + webSearchApiResponse.setData(chatMessageAccumulator); + } + return choices.get(1).getToolCalls().toString(); + } + } + } diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/knowledge/vectorizer/OpenAiVectorization.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/knowledge/vectorizer/OpenAiVectorization.java index 6365a77c..f276e512 100644 --- a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/knowledge/vectorizer/OpenAiVectorization.java +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/service/knowledge/vectorizer/OpenAiVectorization.java @@ -4,7 +4,6 @@ import jakarta.annotation.Resource; import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.ruoyi.common.chat.config.ChatConfig; import org.ruoyi.common.chat.entity.embeddings.Embedding; import org.ruoyi.common.chat.entity.embeddings.EmbeddingResponse; import org.ruoyi.common.chat.openai.OpenAiStreamClient; diff --git a/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/util/IpUtil.java b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/util/IpUtil.java new file mode 100644 index 00000000..0ae5e7b9 --- /dev/null +++ b/ruoyi-modules/ruoyi-chat/src/main/java/org/ruoyi/chat/util/IpUtil.java @@ -0,0 +1,51 @@ +package org.ruoyi.chat.util; + + +import jakarta.servlet.http.HttpServletRequest; +import org.springframework.util.StringUtils; + +/** + * @author WangLe + */ +public class IpUtil { + + public static String getClientIp(HttpServletRequest request) { + String ip = null; + + // 获取 X-Forwarded-For 中的第一个非 unknown 的 IP + String xForwardedFor = request.getHeader("X-Forwarded-For"); + if (StringUtils.hasLength(xForwardedFor) && !"unknown".equalsIgnoreCase(xForwardedFor)) { + String[] ipAddresses = xForwardedFor.split(","); + for (String ipAddress : ipAddresses) { + if (StringUtils.hasLength(ipAddress) && !"unknown".equalsIgnoreCase(ipAddress.trim())) { + ip = ipAddress.trim(); + break; + } + } + } + + // 如果 X-Forwarded-For 中没有找到,则依次尝试其他 header + if (ip == null) { + ip = request.getHeader("X-Real-IP"); + } + if (ip == null || "unknown".equalsIgnoreCase(ip)) { + ip = request.getHeader("Proxy-Client-IP"); + } + if (ip == null || "unknown".equalsIgnoreCase(ip)) { + ip = request.getHeader("WL-Proxy-Client-IP"); + } + if (ip == null || "unknown".equalsIgnoreCase(ip)) { + ip = request.getHeader("HTTP_CLIENT_IP"); + } + if (ip == null || "unknown".equalsIgnoreCase(ip)) { + ip = request.getHeader("HTTP_X_FORWARDED_FOR"); + } + + // 如果以上都没有获取到,则使用 RemoteAddr + if (ip == null || "unknown".equalsIgnoreCase(ip)) { + ip = request.getRemoteAddr(); + } + + return ip; + } +} diff --git a/ruoyi-modules/ruoyi-demo/pom.xml b/ruoyi-modules/ruoyi-demo/pom.xml index 715c8b08..7aeb58c7 100644 --- a/ruoyi-modules/ruoyi-demo/pom.xml +++ b/ruoyi-modules/ruoyi-demo/pom.xml @@ -94,22 +94,6 @@ ruoyi-common-tenant - - org.ruoyi - ruoyi-common-pay - - - - - - - - - - - - - diff --git a/ruoyi-modules/ruoyi-system/pom.xml b/ruoyi-modules/ruoyi-system/pom.xml index a22691de..1684d807 100644 --- a/ruoyi-modules/ruoyi-system/pom.xml +++ b/ruoyi-modules/ruoyi-system/pom.xml @@ -2,13 +2,13 @@ + 4.0.0 org.ruoyi ruoyi-modules ${revision} ../pom.xml - 4.0.0 ruoyi-system @@ -18,6 +18,9 @@ 4.5.14 + 2.15.2 + + @@ -32,26 +35,12 @@ ruoyi-common-doc - - org.ruoyi - ruoyi-common-mybatis - - - - org.ruoyi - ruoyi-common-translation - - org.ruoyi ruoyi-common-oss - - org.ruoyi - ruoyi-common-log - @@ -96,30 +85,6 @@ ruoyi-common-chat - - org.ruoyi - ruoyi-common-wechat - - - - com.fasterxml.jackson.dataformat - jackson-dataformat-xml - 2.15.2 - - - - org.apache.httpcomponents - httpmime - ${httpclient.version} - - - - - org.ruoyi - ruoyi-common-pay - - - org.ruoyi ruoyi-common-mail @@ -131,6 +96,18 @@ ruoyi-system-api + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson.version} + + + + org.apache.httpcomponents + httpmime + ${httpclient.version} + + diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/config/WxMaConfiguration.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/config/WxMaConfiguration.java new file mode 100644 index 00000000..19a7effd --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/config/WxMaConfiguration.java @@ -0,0 +1,133 @@ +package org.ruoyi.system.config; + +import cn.binarywang.wx.miniapp.api.WxMaService; +import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; +import cn.binarywang.wx.miniapp.bean.WxMaKefuMessage; +import cn.binarywang.wx.miniapp.bean.WxMaSubscribeMessage; +import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl; +import cn.binarywang.wx.miniapp.message.WxMaMessageHandler; +import cn.binarywang.wx.miniapp.message.WxMaMessageRouter; +import com.google.common.collect.Lists; +import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.bean.result.WxMediaUploadResult; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.error.WxRuntimeException; +import org.ruoyi.system.properties.WxMaProperties; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.io.File; +import java.util.List; +import java.util.stream.Collectors; + +/** + * @author Admin + */ +@Slf4j +@Configuration +@EnableConfigurationProperties(WxMaProperties.class) +public class WxMaConfiguration { + private final WxMaProperties properties; + + @Autowired + public WxMaConfiguration(WxMaProperties properties) { + this.properties = properties; + } + + @Bean + public WxMaService wxMaService() { + List configs = this.properties.getConfigs(); + if (configs == null) { + throw new WxRuntimeException("大哥,拜托先看下项目首页的说明(readme文件),添加下相关配置,注意别配错了!"); + } + WxMaService maService = new WxMaServiceImpl(); + maService.setMultiConfigs( + configs.stream() + .map(a -> { + WxMaDefaultConfigImpl config = new WxMaDefaultConfigImpl(); +// WxMaDefaultConfigImpl config = new WxMaRedisConfigImpl(new JedisPool()); + // 使用上面的配置时,需要同时引入jedis-lock的依赖,否则会报类无法找到的异常 + config.setAppid(a.getAppid()); + config.setSecret(a.getSecret()); + config.setToken(a.getToken()); + config.setAesKey(a.getAesKey()); + config.setMsgDataFormat(a.getMsgDataFormat()); + return config; + }).collect(Collectors.toMap(WxMaDefaultConfigImpl::getAppid, a -> a, (o, n) -> o))); + return maService; + } + + @Bean + public WxMaMessageRouter wxMaMessageRouter(WxMaService wxMaService) { + final WxMaMessageRouter router = new WxMaMessageRouter(wxMaService); + router + .rule().handler(logHandler).next() + .rule().async(false).content("订阅消息").handler(subscribeMsgHandler).end() + .rule().async(false).content("文本").handler(textHandler).end() + .rule().async(false).content("图片").handler(picHandler).end() + .rule().async(false).content("二维码").handler(qrcodeHandler).end(); + return router; + } + + private final WxMaMessageHandler subscribeMsgHandler = (wxMessage, context, service, sessionManager) -> { + service.getMsgService().sendSubscribeMsg(WxMaSubscribeMessage.builder() + .templateId("此处更换为自己的模板id") + .data(Lists.newArrayList( + new WxMaSubscribeMessage.MsgData("keyword1", "339208499"))) + .toUser(wxMessage.getFromUser()) + .build()); + return null; + }; + + private final WxMaMessageHandler logHandler = (wxMessage, context, service, sessionManager) -> { + log.info("收到消息:" + wxMessage.toString()); + service.getMsgService().sendKefuMsg(WxMaKefuMessage.newTextBuilder().content("收到信息为:" + wxMessage.toJson()) + .toUser(wxMessage.getFromUser()).build()); + return null; + }; + + private final WxMaMessageHandler textHandler = (wxMessage, context, service, sessionManager) -> { + service.getMsgService().sendKefuMsg(WxMaKefuMessage.newTextBuilder().content("回复文本消息") + .toUser(wxMessage.getFromUser()).build()); + return null; + }; + + private final WxMaMessageHandler picHandler = (wxMessage, context, service, sessionManager) -> { + try { + WxMediaUploadResult uploadResult = service.getMediaService() + .uploadMedia("image", "png", + ClassLoader.getSystemResourceAsStream("tmp.png")); + service.getMsgService().sendKefuMsg( + WxMaKefuMessage + .newImageBuilder() + .mediaId(uploadResult.getMediaId()) + .toUser(wxMessage.getFromUser()) + .build()); + } catch (WxErrorException e) { + e.printStackTrace(); + } + + return null; + }; + + private final WxMaMessageHandler qrcodeHandler = (wxMessage, context, service, sessionManager) -> { + try { + final File file = service.getQrcodeService().createQrcode("123", 430); + WxMediaUploadResult uploadResult = service.getMediaService().uploadMedia("image", file); + service.getMsgService().sendKefuMsg( + WxMaKefuMessage + .newImageBuilder() + .mediaId(uploadResult.getMediaId()) + .toUser(wxMessage.getFromUser()) + .build()); + } catch (WxErrorException e) { + e.printStackTrace(); + } + + return null; + }; + +} + diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/AuthController.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/AuthController.java index 9be06e69..360abeb7 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/AuthController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/AuthController.java @@ -2,10 +2,8 @@ package org.ruoyi.system.controller.system; import cn.dev33.satoken.annotation.SaIgnore; import cn.hutool.core.collection.CollUtil; -import cn.hutool.json.JSONUtil; import jakarta.servlet.http.HttpServletRequest; import lombok.RequiredArgsConstructor; -import me.chanjar.weixin.common.error.WxErrorException; import org.ruoyi.common.core.constant.Constants; import org.ruoyi.common.core.domain.R; import org.ruoyi.common.core.domain.model.*; @@ -45,13 +43,13 @@ public class AuthController { private final ISysTenantService tenantService; - @PostMapping("/xcxLogin") - public R login(@Validated @RequestBody String xcxCode) throws WxErrorException { - - String openidFromCode = loginService.getOpenidFromCode((String) JSONUtil.parseObj(xcxCode).get("xcxCode")); - LoginVo loginVo = loginService.mpLogin(openidFromCode); - return R.ok(loginVo); - } +// @PostMapping("/xcxLogin") +// public R login(@Validated @RequestBody String xcxCode) throws WxErrorException { +// +// String openidFromCode = loginService.getOpenidFromCode((String) JSONUtil.parseObj(xcxCode).get("xcxCode")); +// LoginVo loginVo = loginService.mpLogin(openidFromCode); +// return R.ok(loginVo); +// } /** * 登录方法 diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/CaptchaController.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/CaptchaController.java index dda65dcc..8ebe2236 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/CaptchaController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/controller/system/CaptchaController.java @@ -95,7 +95,6 @@ public class CaptchaController { String suffix = configService.getConfigValue("mail", "suffix"); String prompt = configService.getConfigValue("mail", "prompt"); if(StringUtils.isNotEmpty(suffix)){ - // 动态的域名列表 String[] invalidDomains = suffix.split(","); for (String domain : invalidDomains) { if (emailRequest.getUsername().endsWith(domain)) { @@ -108,7 +107,7 @@ public class CaptchaController { String mailTitle = configService.getConfigValue("mail", "mailTitle"); String replacedModel = model.replace("{code}", code); try { - MailUtils.sendHtml(emailRequest.getUsername(), mailTitle, replacedModel); + MailUtils.sendHtml(emailRequest.getUsername(), mailTitle, replacedModel); } catch (Exception e) { log.error("邮箱验证码发送异常 => {}", e.getMessage()); return R.fail(e.getMessage()); diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/properties/WxMaProperties.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/properties/WxMaProperties.java new file mode 100644 index 00000000..b0e6d66a --- /dev/null +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/properties/WxMaProperties.java @@ -0,0 +1,52 @@ +package org.ruoyi.system.properties; + +/** + * 微信小程序属性配置类 + * + * @author: wangle + * @date: 2023/5/18 + */ + +import lombok.Data; +import org.springframework.boot.context.properties.ConfigurationProperties; + +import java.util.List; + +/** + * @author Binary Wang + */ +@Data +@ConfigurationProperties(prefix = "wx.miniapp") +public class WxMaProperties { + + private List configs; + + @Data + public static class Config { + /** + * 设置微信小程序的appid + */ + private String appid; + + /** + * 设置微信小程序的Secret + */ + private String secret; + + /** + * 设置微信小程序消息服务器配置的token + */ + private String token; + + /** + * 设置微信小程序消息服务器配置的EncodingAESKey + */ + private String aesKey; + + /** + * 消息格式,XML或者JSON + */ + private String msgDataFormat; + } + +} diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/runner/SystemApplicationRunner.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/runner/SystemApplicationRunner.java similarity index 100% rename from ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/runner/SystemApplicationRunner.java rename to ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/runner/SystemApplicationRunner.java diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/SysLoginService.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysLoginService.java similarity index 100% rename from ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/SysLoginService.java rename to ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysLoginService.java index 5ab11951..d2558b62 100644 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/SysLoginService.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysLoginService.java @@ -57,14 +57,14 @@ import java.util.function.Supplier; public class SysLoginService { private final SysUserMapper userMapper; + private final WxMaService wxMaService; private final ISysPermissionService permissionService; private final ISysTenantService tenantService; - private final WxMaService wxMaService; private final ISysUserService userService; private final ConfigService configService; + @Value("${user.password.maxRetryCount}") private Integer maxRetryCount; - @Value("${user.password.lockTime}") private Integer lockTime; diff --git a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/SysRegisterService.java b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysRegisterService.java similarity index 95% rename from ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/SysRegisterService.java rename to ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysRegisterService.java index 84701ba7..a2a24511 100644 --- a/ruoyi-modules-api/ruoyi-system-api/src/main/java/org/ruoyi/system/service/SysRegisterService.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/ruoyi/system/service/SysRegisterService.java @@ -37,7 +37,7 @@ public class SysRegisterService { private final SysUserRoleMapper userRoleMapper; - private final ConfigService configService; + // private final ConfigService configService; /** * 注册 */ @@ -61,12 +61,9 @@ public class SysRegisterService { if (!userService.checkUserNameUnique(sysUser)) { throw new UserException("添加用户失败", username); } - String configValue = configService.getConfigValue("mail", "amount"); + // String configValue = configService.getConfigValue("mail", "amount"); - - - // 设置默认余额 - sysUser.setUserBalance(NumberUtils.toDouble(configValue,1)); + sysUser.setUserBalance(NumberUtils.toDouble("configValue",1)); SysUser user = userService.registerUser(sysUser, tenantId); if (user == null) { throw new UserException("用户注册失败!"); diff --git a/script/docker/database.yml b/script/docker/database.yml deleted file mode 100644 index 6d37c803..00000000 --- a/script/docker/database.yml +++ /dev/null @@ -1,61 +0,0 @@ -version: '3' - -services: - # 此镜像仅用于测试 正式环境需自行安装数据库 - # SID: XE user: system password: oracle - oracle: - image: tekintian/oracle12c:latest - container_name: oracle - environment: - # 时区上海 - TZ: Asia/Shanghai - DBCA_TOTAL_MEMORY: 16192 - ports: - - "18080:8080" - - "1521:1521" - volumes: - # 数据挂载 - - "/docker/oracle/data:/u01/app/oracle" - network_mode: "host" - - # 此镜像仅用于测试 正式环境需自行安装数据库 - sqlserver: - image: mcr.microsoft.com/mssql/server:2017-latest - container_name: sqlserver - environment: - # 时区上海 - TZ: Asia/Shanghai - ACCEPT_EULA: "Y" - SA_PASSWORD: "ruoyi@123" - ports: - - "1433:1433" - volumes: - # 数据挂载 - - "/docker/sqlserver/data:/var/opt/mssql" - network_mode: "host" - - postgres: - image: postgres:14.2 - container_name: postgres - environment: - POSTGRES_USER: root - POSTGRES_PASSWORD: root - POSTGRES_DB: postgres - ports: - - "5432:5432" - volumes: - - /docker/postgres/data:/var/lib/postgresql/data - network_mode: "host" - - postgres13: - image: postgres:13.6 - container_name: postgres13 - environment: - POSTGRES_USER: root - POSTGRES_PASSWORD: root - POSTGRES_DB: postgres - ports: - - "5433:5432" - volumes: - - /docker/postgres13/data:/var/lib/postgresql/data - network_mode: "host" diff --git a/script/docker/docker-compose.yml b/script/docker/docker-compose.yml deleted file mode 100644 index 0e1d01df..00000000 --- a/script/docker/docker-compose.yml +++ /dev/null @@ -1,64 +0,0 @@ -version: '3' - -services: - mysql: - image: mysql:8.0.33 - container_name: mysql - environment: - TZ: Asia/Shanghai - MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: ry-vue - ports: - - "3307:3306" - volumes: - - ./ry-vue.sql:/docker-entrypoint-initdb.d/ry-vue.sql - command: - --default-authentication-plugin=mysql_native_password - --character-set-server=utf8mb4 - --collation-server=utf8mb4_general_ci - --explicit_defaults_for_timestamp=true - --lower_case_table_names=1 - - ruoyi-server: - image: registry.cn-shanghai.aliyuncs.com/ruoyi-ai/ai:1.2.1 - ports: - - "6039:6039" - container_name: ruoyi-server - environment: - TZ: Asia/Shanghai - # 运行端口号 - SERVER_PORT: 6039 - # 数据库连接地址 - DB_URL: jdbc:mysql://mysql:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true - # 数据库用户名 - DB_USERNAME: root - # 数据库用户密码 - DB_PASSWORD: root - # Redis地址 - REDIS_HOST: redis - # Redis端口 - REDIS_PORT: 6379 - # 数据库索引 - REDIS_DATABASE: 0 - # Redis密码 - REDIS_PASSWORD: - # 连接超时时间 - REDIS_TIMEOUT: 10s - volumes: - - /docker/server2/logs/:/ruoyi/server/logs/ - - ruoyi-web: - image: registry.cn-shanghai.aliyuncs.com/ruoyi-ai/web:1.2.1 - ports: - - "8081:8081" - container_name: ruoyi-web - - - ruoyi-admin: - image: registry.cn-shanghai.aliyuncs.com/ruoyi-ai/admin:1.2.1 - ports: - - "8082:8082" - container_name: ruoyi-admin - - - diff --git a/script/docker/nginx/conf/nginx.conf b/script/docker/nginx/conf/nginx.conf deleted file mode 100644 index e9630aaf..00000000 --- a/script/docker/nginx/conf/nginx.conf +++ /dev/null @@ -1,111 +0,0 @@ -worker_processes 1; - -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - include mime.types; - default_type application/octet-stream; - sendfile on; - keepalive_timeout 65; - # 限制body大小 - client_max_body_size 100m; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - upstream server { - ip_hash; - server 127.0.0.1:8080; - server 127.0.0.1:8081; - } - - upstream monitor-admin { - server 127.0.0.1:9090; - } - - upstream xxljob-admin { - server 127.0.0.1:9100; - } - - server { - listen 80; - server_name localhost; - - # https配置参考 start - #listen 443 ssl; - - # 证书直接存放 /docker/nginx/cert/ 目录下即可 更改证书名称即可 无需更改证书路径 - #ssl on; - #ssl_certificate /etc/nginx/cert/xxx.local.crt; # /etc/nginx/cert/ 为docker映射路径 不允许更改 - #ssl_certificate_key /etc/nginx/cert/xxx.local.key; # /etc/nginx/cert/ 为docker映射路径 不允许更改 - #ssl_session_timeout 5m; - #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; - #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; - #ssl_prefer_server_ciphers on; - # https配置参考 end - - # 演示环境配置 拦截除 GET POST 之外的所有请求 - # if ($request_method !~* GET|POST) { - # rewrite ^/(.*)$ /403; - # } - - # location = /403 { - # default_type application/json; - # return 200 '{"msg":"演示模式,不允许操作","code":500}'; - # } - - # 限制外网访问内网 actuator 相关路径 - location ~ ^(/[^/]*)?/actuator(/.*)?$ { - return 403; - } - - location / { - root /usr/share/nginx/html; - try_files $uri $uri/ /index.html; - index index.html index.htm; - } - - location /prod-api/ { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header REMOTE-HOST $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://server/; - } - - # https 会拦截内链所有的 http 请求 造成功能无法使用 - # 解决方案1 将 admin 服务 也配置成 https - # 解决方案2 将菜单配置为外链访问 走独立页面 http 访问 - location /admin/ { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header REMOTE-HOST $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://monitor-admin/admin/; - } - - # https 会拦截内链所有的 http 请求 造成功能无法使用 - # 解决方案1 将 xxljob 服务 也配置成 https - # 解决方案2 将菜单配置为外链访问 走独立页面 http 访问 - location /xxl-job-admin/ { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header REMOTE-HOST $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://xxljob-admin/xxl-job-admin/; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root html; - } - } -} diff --git a/script/docker/redis/conf/redis.conf b/script/docker/redis/conf/redis.conf deleted file mode 100644 index 72255c61..00000000 --- a/script/docker/redis/conf/redis.conf +++ /dev/null @@ -1,28 +0,0 @@ -# redis 密码 -requirepass ruoyi123 - -# key 监听器配置 -# notify-keyspace-events Ex - -# 配置持久化文件存储路径 -dir /redis/data -# 配置rdb -# 15分钟内有至少1个key被更改则进行快照 -save 900 1 -# 5分钟内有至少10个key被更改则进行快照 -save 300 10 -# 1分钟内有至少10000个key被更改则进行快照 -save 60 10000 -# 开启压缩 -rdbcompression yes -# rdb文件名 用默认的即可 -dbfilename dump.rdb - -# 开启aof -appendonly yes -# 文件名 -appendfilename "appendonly.aof" -# 持久化策略,no:不同步,everysec:每秒一次,always:总是同步,速度比较慢 -# appendfsync always -appendfsync everysec -# appendfsync no diff --git a/script/docker/redis/data/README.md b/script/docker/redis/data/README.md deleted file mode 100644 index fbc5474b..00000000 --- a/script/docker/redis/data/README.md +++ /dev/null @@ -1 +0,0 @@ -数据目录 请执行 `chmod 777 /docker/redis/data` 赋予读写权限 否则将无法写入数据 \ No newline at end of file diff --git a/script/sql/update/updatdata20250402.sql b/script/sql/update/updatdata20250402.sql index 1a8f4b3d..940ace59 100644 --- a/script/sql/update/updatdata20250402.sql +++ b/script/sql/update/updatdata20250402.sql @@ -1 +1 @@ -INSERT INTO `ry-vue`.`chat_app_store` (`id`, `name`, `description`, `avatar`, `app_url`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (7, '微信机器人', '微信机器人', 'https://panda-1253683406.cos.ap-guangzhou.myqcloud.com/panda/2025/04/02/0557a7d68fa842bba952ce0d6ef38a2e.png', '/wxbot', NULL, NULL, NULL, NULL, NULL, NULL); +INSERT INTO `chat_app_store` (`id`, `name`, `description`, `avatar`, `app_url`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (7, '微信机器人', '微信机器人', 'https://panda-1253683406.cos.ap-guangzhou.myqcloud.com/panda/2025/04/02/0557a7d68fa842bba952ce0d6ef38a2e.png', '/wxbot', NULL, NULL, NULL, NULL, NULL, NULL); diff --git a/script/sql/update/updatdata20250407-2.sql b/script/sql/update/updatdata20250407-2.sql deleted file mode 100644 index 8ba99113..00000000 --- a/script/sql/update/updatdata20250407-2.sql +++ /dev/null @@ -1,14 +0,0 @@ -SET FOREIGN_KEY_CHECKS=0; - -ALTER TABLE `ruoyi-org`.`chat_gpts` ADD COLUMN `model_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型名称' AFTER `tenant_id`; - -ALTER TABLE `ruoyi-org`.`chat_gpts` ADD COLUMN `system_prompt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '系统提示词' AFTER `model_name`; - -INSERT INTO `ruoyi-ai`.`chat_gpts` (`id`, `gid`, `name`, `logo`, `info`, `author_id`, `author_name`, `use_cnt`, `bad`, `type`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`, `model_name`, `system_prompt`) VALUES (1810602934286237698, 'gpt-4-gizmo-g-RQAWjtI6u', '翻译助手', 'https://external-content.duckduckgo.com/ip3/chat.openai.com.ico', '中英和英中翻译专家', 'winkey', 'winkey', 0, 0, 'vector', 103, '2024-07-09 17:12:34', '1', '1', '2025-04-07 21:44:11', 'Ms. Smith, the AI-powered Language Teacher, is a revolutionary GPT-based bot that offers personalized language learning experiences in over 20 languages, including Spanish, German, French, English, Chinese, Korean, Japanese, and more\n', NULL, '0', '127.0.0.1', 0, 'deepseek-r1:1.5b', '你是一位精通各国语言的翻译大师\r\n\r\n请将用户输入词语翻译成英文或中文\r\n\r\n==示例输出==\r\n**原文** : <这里显示要翻译的原文信息>\r\n**翻译** : <这里显示翻译成英语的结果>\r\n==示例结束==\r\n\r\n注意:请严格按示例进行输出,返回markdown格式'); -INSERT INTO `ruoyi-ai`.`chat_gpts` (`id`, `gid`, `name`, `logo`, `info`, `author_id`, `author_name`, `use_cnt`, `bad`, `type`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`, `model_name`, `system_prompt`) VALUES (1811668415990931458, 'gpt-4-gizmo-g-XbReEL4Uq', '清北全科医生', 'https://external-content.duckduckgo.com/ip3/chat.openai.com.ico', '富有同情心的全科医生提供健康指导', NULL, NULL, 0, 0, NULL, 103, '2024-07-12 15:46:24', '1', '1', '2024-07-12 15:46:24', NULL, NULL, '0', NULL, 0, 'deepseek-r1:1.5b', '富有同情心的全科医生提供健康指导'); -INSERT INTO `ruoyi-ai`.`chat_gpts` (`id`, `gid`, `name`, `logo`, `info`, `author_id`, `author_name`, `use_cnt`, `bad`, `type`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`, `model_name`, `system_prompt`) VALUES (1811670922074988545, 'gpt-4-gizmo-g-AphhNRLxt', '提示词优化', 'https://external-content.duckduckgo.com/ip3/chat.openai.com.ico', '擅长为Prompt 提升清晰度和创造力的大师', NULL, NULL, 0, 0, NULL, 103, '2024-07-12 15:56:22', '1', '1', '2024-07-12 15:56:22', NULL, NULL, '0', NULL, 0, 'deepseek-r1:1.5b', '擅长为Prompt 提升清晰度和创造力的大师'); -INSERT INTO `ruoyi-ai`.`chat_gpts` (`id`, `gid`, `name`, `logo`, `info`, `author_id`, `author_name`, `use_cnt`, `bad`, `type`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`, `model_name`, `system_prompt`) VALUES (1811815442062188545, 'gpt-4-gizmo-g-ThuHxKi7e', '小红书文案生成器', 'https://external-content.duckduckgo.com/ip3/chat.openai.com.ico', '小红书文案生成器', NULL, NULL, 0, 0, NULL, 103, '2024-07-13 01:30:38', '1', '1', '2024-07-13 01:30:38', NULL, NULL, '0', NULL, 0, 'deepseek-r1:1.5b', '小红书文案生成器'); -INSERT INTO `ruoyi-ai`.`chat_gpts` (`id`, `gid`, `name`, `logo`, `info`, `author_id`, `author_name`, `use_cnt`, `bad`, `type`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`, `model_name`, `system_prompt`) VALUES (1811817605668741121, 'gpt-4-gizmo-g-AsQCd3k8', '中国法律助手', 'https://external-content.duckduckgo.com/ip3/chat.openai.com.ico', '全面掌握中国法律的智能助手,可帮助起草文书,分析案件,进行法律咨询', NULL, NULL, 0, 0, NULL, 103, '2024-07-13 01:39:14', '1', '1', '2024-07-13 01:39:14', NULL, NULL, '2', NULL, 0, 'deepseek-r1:1.5b', '全面掌握中国法律的智能助手,可帮助起草文书,分析案件,进行法律咨询'); -INSERT INTO `ruoyi-ai`.`chat_gpts` (`id`, `gid`, `name`, `logo`, `info`, `author_id`, `author_name`, `use_cnt`, `bad`, `type`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`, `model_name`, `system_prompt`) VALUES (1811817605668741122, 'gpt-4-gizmo-g-IXwub6dJu', '英语老师', 'https://external-content.duckduckgo.com/ip3/chat.openai.com.ico', '英语学习GPT是一个专门设计来帮助用户提高他们的英语技能的人工智能助手', NULL, NULL, 0, 0, NULL, NULL, NULL, '', '', NULL, NULL, NULL, '0', NULL, 0, 'deepseek-r1:1.5b', '英语学习GPT是一个专门设计来帮助用户提高他们的英语技能的人工智能助手'); - -SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file diff --git a/script/sql/update/updatdata20250407.sql b/script/sql/update/updatdata20250407.sql index a40a8396..151fddce 100644 --- a/script/sql/update/updatdata20250407.sql +++ b/script/sql/update/updatdata20250407.sql @@ -1,4 +1,4 @@ -INSERT INTO `ruoyi-ai`.`chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907575746601119746, '000000', 'vector', 'text-embedding-3-small', 'text-embedding-3-small', 0, '2', '0', NULL, 'https://api.pandarobot.chat/', 'sk-cdBlIaZcufccm2RaDe547cBd054d49C7B0782eCa72A0052b', 103, 1, '2025-04-03 07:27:54', 1, '2025-04-03 07:27:54', 'text-embedding-3-small'); -INSERT INTO `ruoyi-ai`.`chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907576007017066497, '000000', 'vector', 'quentinz/bge-large-zh-v1.5', 'bge-large-zh-v1.5', 0, '2', '0', NULL, 'https://api.pandarobot.chat/', 'cdBlIaZcufccm2RaDe547cBd054d49C7B0782eCa72A0052b', 103, 1, '2025-04-03 07:28:56', 1, '2025-04-03 07:28:56', 'bge-large-zh-v1.5'); -INSERT INTO `ruoyi-ai`.`chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907576806191362049, '000000', 'vector', 'nomic-embed-text', 'nomic-embed-text', 0, '2', '0', NULL, 'http://127.0.0.1:11434/', 'nomic-embed-text', 103, 1, '2025-04-03 07:32:06', 1, '2025-04-03 07:32:06', 'nomic-embed-text'); -INSERT INTO `ruoyi-ai`.`chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907577073490161665, '000000', 'vector', 'snowflake-arctic-embed', 'snowflake-arctic-embed', 0, '2', '0', NULL, 'http://127.0.0.1:11434/', 'snowflake-arctic-embed', 103, 1, '2025-04-03 07:33:10', 1, '2025-04-03 07:33:10', 'snowflake-arctic-embed'); +INSERT INTO `chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907575746601119746, '000000', 'vector', 'text-embedding-3-small', 'text-embedding-3-small', 0, '2', '0', NULL, 'https://api.pandarobot.chat/', 'sk-cdBlIaZcufccm2RaDe547cBd054d49C7B0782eCa72A0052b', 103, 1, '2025-04-03 07:27:54', 1, '2025-04-03 07:27:54', 'text-embedding-3-small'); +INSERT INTO `chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907576007017066497, '000000', 'vector', 'quentinz/bge-large-zh-v1.5', 'bge-large-zh-v1.5', 0, '2', '0', NULL, 'https://api.pandarobot.chat/', 'cdBlIaZcufccm2RaDe547cBd054d49C7B0782eCa72A0052b', 103, 1, '2025-04-03 07:28:56', 1, '2025-04-03 07:28:56', 'bge-large-zh-v1.5'); +INSERT INTO `chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907576806191362049, '000000', 'vector', 'nomic-embed-text', 'nomic-embed-text', 0, '2', '0', NULL, 'http://127.0.0.1:11434/', 'nomic-embed-text', 103, 1, '2025-04-03 07:32:06', 1, '2025-04-03 07:32:06', 'nomic-embed-text'); +INSERT INTO `chat_model` (`id`, `tenant_id`, `category`, `model_name`, `model_describe`, `model_price`, `model_type`, `model_show`, `system_prompt`, `api_host`, `api_key`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1907577073490161665, '000000', 'vector', 'snowflake-arctic-embed', 'snowflake-arctic-embed', 0, '2', '0', NULL, 'http://127.0.0.1:11434/', 'snowflake-arctic-embed', 103, 1, '2025-04-03 07:33:10', 1, '2025-04-03 07:33:10', 'snowflake-arctic-embed');