/* * MIT License * * Copyright (c) 2023 OrdinaryRoad * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION 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; } }