/* * MIT License * * Copyright (c) 2023 OrdinaryRoad * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: SCWebLiveWatchingUsers.proto package tech.ordinaryroad.live.chat.client.kuaishou.protobuf; public final class SCWebLiveWatchingUsersOuterClass { private SCWebLiveWatchingUsersOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface SCWebLiveWatchingUsersOrBuilder extends // @@protoc_insertion_point(interface_extends:SCWebLiveWatchingUsers) com.google.protobuf.MessageOrBuilder { /** * repeated .WebWatchingUserInfo watchingUser = 1; */ java.util.List getWatchingUserList(); /** * repeated .WebWatchingUserInfo watchingUser = 1; */ tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getWatchingUser(int index); /** * repeated .WebWatchingUserInfo watchingUser = 1; */ int getWatchingUserCount(); /** * repeated .WebWatchingUserInfo watchingUser = 1; */ java.util.List getWatchingUserOrBuilderList(); /** * repeated .WebWatchingUserInfo watchingUser = 1; */ tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder getWatchingUserOrBuilder( int index); /** * string displayWatchingCount = 2; * @return The displayWatchingCount. */ java.lang.String getDisplayWatchingCount(); /** * string displayWatchingCount = 2; * @return The bytes for displayWatchingCount. */ com.google.protobuf.ByteString getDisplayWatchingCountBytes(); /** * uint64 pendingDuration = 3; * @return The pendingDuration. */ long getPendingDuration(); } /** * Protobuf type {@code SCWebLiveWatchingUsers} */ public static final class SCWebLiveWatchingUsers extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SCWebLiveWatchingUsers) SCWebLiveWatchingUsersOrBuilder { private static final long serialVersionUID = 0L; // Use SCWebLiveWatchingUsers.newBuilder() to construct. private SCWebLiveWatchingUsers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SCWebLiveWatchingUsers() { watchingUser_ = java.util.Collections.emptyList(); displayWatchingCount_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SCWebLiveWatchingUsers(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.Builder.class); } public static final int WATCHINGUSER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List watchingUser_; /** * repeated .WebWatchingUserInfo watchingUser = 1; */ @java.lang.Override public java.util.List getWatchingUserList() { return watchingUser_; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ @java.lang.Override public java.util.List getWatchingUserOrBuilderList() { return watchingUser_; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ @java.lang.Override public int getWatchingUserCount() { return watchingUser_.size(); } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getWatchingUser(int index) { return watchingUser_.get(index); } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder getWatchingUserOrBuilder( int index) { return watchingUser_.get(index); } public static final int DISPLAYWATCHINGCOUNT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object displayWatchingCount_ = ""; /** * string displayWatchingCount = 2; * @return The displayWatchingCount. */ @java.lang.Override public java.lang.String getDisplayWatchingCount() { java.lang.Object ref = displayWatchingCount_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayWatchingCount_ = s; return s; } } /** * string displayWatchingCount = 2; * @return The bytes for displayWatchingCount. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayWatchingCountBytes() { java.lang.Object ref = displayWatchingCount_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayWatchingCount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PENDINGDURATION_FIELD_NUMBER = 3; private long pendingDuration_ = 0L; /** * uint64 pendingDuration = 3; * @return The pendingDuration. */ @java.lang.Override public long getPendingDuration() { return pendingDuration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < watchingUser_.size(); i++) { output.writeMessage(1, watchingUser_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayWatchingCount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayWatchingCount_); } if (pendingDuration_ != 0L) { output.writeUInt64(3, pendingDuration_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < watchingUser_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, watchingUser_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayWatchingCount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayWatchingCount_); } if (pendingDuration_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, pendingDuration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers)) { return super.equals(obj); } tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers other = (tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers) obj; if (!getWatchingUserList() .equals(other.getWatchingUserList())) return false; if (!getDisplayWatchingCount() .equals(other.getDisplayWatchingCount())) return false; if (getPendingDuration() != other.getPendingDuration()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getWatchingUserCount() > 0) { hash = (37 * hash) + WATCHINGUSER_FIELD_NUMBER; hash = (53 * hash) + getWatchingUserList().hashCode(); } hash = (37 * hash) + DISPLAYWATCHINGCOUNT_FIELD_NUMBER; hash = (53 * hash) + getDisplayWatchingCount().hashCode(); hash = (37 * hash) + PENDINGDURATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPendingDuration()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code SCWebLiveWatchingUsers} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SCWebLiveWatchingUsers) tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_fieldAccessorTable .ensureFieldAccessorsInitialized( tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.class, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.Builder.class); } // Construct using tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (watchingUserBuilder_ == null) { watchingUser_ = java.util.Collections.emptyList(); } else { watchingUser_ = null; watchingUserBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); displayWatchingCount_ = ""; pendingDuration_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.internal_static_SCWebLiveWatchingUsers_descriptor; } @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers getDefaultInstanceForType() { return tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.getDefaultInstance(); } @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers build() { tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers buildPartial() { tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result) { if (watchingUserBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { watchingUser_ = java.util.Collections.unmodifiableList(watchingUser_); bitField0_ = (bitField0_ & ~0x00000001); } result.watchingUser_ = watchingUser_; } else { result.watchingUser_ = watchingUserBuilder_.build(); } } private void buildPartial0(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.displayWatchingCount_ = displayWatchingCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.pendingDuration_ = pendingDuration_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers) { return mergeFrom((tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers other) { if (other == tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers.getDefaultInstance()) return this; if (watchingUserBuilder_ == null) { if (!other.watchingUser_.isEmpty()) { if (watchingUser_.isEmpty()) { watchingUser_ = other.watchingUser_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWatchingUserIsMutable(); watchingUser_.addAll(other.watchingUser_); } onChanged(); } } else { if (!other.watchingUser_.isEmpty()) { if (watchingUserBuilder_.isEmpty()) { watchingUserBuilder_.dispose(); watchingUserBuilder_ = null; watchingUser_ = other.watchingUser_; bitField0_ = (bitField0_ & ~0x00000001); watchingUserBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWatchingUserFieldBuilder() : null; } else { watchingUserBuilder_.addAllMessages(other.watchingUser_); } } } if (!other.getDisplayWatchingCount().isEmpty()) { displayWatchingCount_ = other.displayWatchingCount_; bitField0_ |= 0x00000002; onChanged(); } if (other.getPendingDuration() != 0L) { setPendingDuration(other.getPendingDuration()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo m = input.readMessage( tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.parser(), extensionRegistry); if (watchingUserBuilder_ == null) { ensureWatchingUserIsMutable(); watchingUser_.add(m); } else { watchingUserBuilder_.addMessage(m); } break; } // case 10 case 18: { displayWatchingCount_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { pendingDuration_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List watchingUser_ = java.util.Collections.emptyList(); private void ensureWatchingUserIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { watchingUser_ = new java.util.ArrayList(watchingUser_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder> watchingUserBuilder_; /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public java.util.List getWatchingUserList() { if (watchingUserBuilder_ == null) { return java.util.Collections.unmodifiableList(watchingUser_); } else { return watchingUserBuilder_.getMessageList(); } } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public int getWatchingUserCount() { if (watchingUserBuilder_ == null) { return watchingUser_.size(); } else { return watchingUserBuilder_.getCount(); } } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo getWatchingUser(int index) { if (watchingUserBuilder_ == null) { return watchingUser_.get(index); } else { return watchingUserBuilder_.getMessage(index); } } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder setWatchingUser( int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo value) { if (watchingUserBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWatchingUserIsMutable(); watchingUser_.set(index, value); onChanged(); } else { watchingUserBuilder_.setMessage(index, value); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder setWatchingUser( int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder builderForValue) { if (watchingUserBuilder_ == null) { ensureWatchingUserIsMutable(); watchingUser_.set(index, builderForValue.build()); onChanged(); } else { watchingUserBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder addWatchingUser(tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo value) { if (watchingUserBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWatchingUserIsMutable(); watchingUser_.add(value); onChanged(); } else { watchingUserBuilder_.addMessage(value); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder addWatchingUser( int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo value) { if (watchingUserBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWatchingUserIsMutable(); watchingUser_.add(index, value); onChanged(); } else { watchingUserBuilder_.addMessage(index, value); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder addWatchingUser( tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder builderForValue) { if (watchingUserBuilder_ == null) { ensureWatchingUserIsMutable(); watchingUser_.add(builderForValue.build()); onChanged(); } else { watchingUserBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder addWatchingUser( int index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder builderForValue) { if (watchingUserBuilder_ == null) { ensureWatchingUserIsMutable(); watchingUser_.add(index, builderForValue.build()); onChanged(); } else { watchingUserBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder addAllWatchingUser( java.lang.Iterable values) { if (watchingUserBuilder_ == null) { ensureWatchingUserIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, watchingUser_); onChanged(); } else { watchingUserBuilder_.addAllMessages(values); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder clearWatchingUser() { if (watchingUserBuilder_ == null) { watchingUser_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { watchingUserBuilder_.clear(); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public Builder removeWatchingUser(int index) { if (watchingUserBuilder_ == null) { ensureWatchingUserIsMutable(); watchingUser_.remove(index); onChanged(); } else { watchingUserBuilder_.remove(index); } return this; } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder getWatchingUserBuilder( int index) { return getWatchingUserFieldBuilder().getBuilder(index); } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder getWatchingUserOrBuilder( int index) { if (watchingUserBuilder_ == null) { return watchingUser_.get(index); } else { return watchingUserBuilder_.getMessageOrBuilder(index); } } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public java.util.List getWatchingUserOrBuilderList() { if (watchingUserBuilder_ != null) { return watchingUserBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(watchingUser_); } } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder addWatchingUserBuilder() { return getWatchingUserFieldBuilder().addBuilder( tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.getDefaultInstance()); } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder addWatchingUserBuilder( int index) { return getWatchingUserFieldBuilder().addBuilder( index, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.getDefaultInstance()); } /** * repeated .WebWatchingUserInfo watchingUser = 1; */ public java.util.List getWatchingUserBuilderList() { return getWatchingUserFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder> getWatchingUserFieldBuilder() { if (watchingUserBuilder_ == null) { watchingUserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfo.Builder, tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.WebWatchingUserInfoOrBuilder>( watchingUser_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); watchingUser_ = null; } return watchingUserBuilder_; } private java.lang.Object displayWatchingCount_ = ""; /** * string displayWatchingCount = 2; * @return The displayWatchingCount. */ public java.lang.String getDisplayWatchingCount() { java.lang.Object ref = displayWatchingCount_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayWatchingCount_ = s; return s; } else { return (java.lang.String) ref; } } /** * string displayWatchingCount = 2; * @return The bytes for displayWatchingCount. */ public com.google.protobuf.ByteString getDisplayWatchingCountBytes() { java.lang.Object ref = displayWatchingCount_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayWatchingCount_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string displayWatchingCount = 2; * @param value The displayWatchingCount to set. * @return This builder for chaining. */ public Builder setDisplayWatchingCount( java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayWatchingCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string displayWatchingCount = 2; * @return This builder for chaining. */ public Builder clearDisplayWatchingCount() { displayWatchingCount_ = getDefaultInstance().getDisplayWatchingCount(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string displayWatchingCount = 2; * @param value The bytes for displayWatchingCount to set. * @return This builder for chaining. */ public Builder setDisplayWatchingCountBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayWatchingCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long pendingDuration_ ; /** * uint64 pendingDuration = 3; * @return The pendingDuration. */ @java.lang.Override public long getPendingDuration() { return pendingDuration_; } /** * uint64 pendingDuration = 3; * @param value The pendingDuration to set. * @return This builder for chaining. */ public Builder setPendingDuration(long value) { pendingDuration_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * uint64 pendingDuration = 3; * @return This builder for chaining. */ public Builder clearPendingDuration() { bitField0_ = (bitField0_ & ~0x00000004); pendingDuration_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:SCWebLiveWatchingUsers) } // @@protoc_insertion_point(class_scope:SCWebLiveWatchingUsers) private static final tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers(); } public static tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SCWebLiveWatchingUsers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public tech.ordinaryroad.live.chat.client.kuaishou.protobuf.SCWebLiveWatchingUsersOuterClass.SCWebLiveWatchingUsers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_SCWebLiveWatchingUsers_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SCWebLiveWatchingUsers_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\034SCWebLiveWatchingUsers.proto\032\031WebWatch" + "ingUserInfo.proto\"{\n\026SCWebLiveWatchingUs" + "ers\022*\n\014watchingUser\030\001 \003(\0132\024.WebWatchingU" + "serInfo\022\034\n\024displayWatchingCount\030\002 \001(\t\022\027\n" + "\017pendingDuration\030\003 \001(\004B6\n4tech.ordinaryr" + "oad.live.chat.client.kuaishou.protobufb\006" + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.getDescriptor(), }); internal_static_SCWebLiveWatchingUsers_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_SCWebLiveWatchingUsers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SCWebLiveWatchingUsers_descriptor, new java.lang.String[] { "WatchingUser", "DisplayWatchingCount", "PendingDuration", }); tech.ordinaryroad.live.chat.client.kuaishou.protobuf.WebWatchingUserInfoOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }