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